Skip to content

add proxy-friendly headers and address locking#291

Merged
jaylonmcshan19-x merged 2 commits intomainfrom
fix/nginx-underscore-headers
Mar 26, 2026
Merged

add proxy-friendly headers and address locking#291
jaylonmcshan19-x merged 2 commits intomainfrom
fix/nginx-underscore-headers

Conversation

@jaylonmcshan19-x
Copy link
Contributor

@jaylonmcshan19-x jaylonmcshan19-x commented Mar 3, 2026

PCI review checklist

This PR fixes #267 - TFE_TOKEN is rejected as header if MCP server is hosted behind nginx

This PR Adds adds support for supplying the Token via Authorization header:

  • Authorization: Bearer <token> (standard HTTP auth)

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@jaylonmcshan19-x jaylonmcshan19-x requested a review from a team as a code owner March 3, 2026 17:42
@jrhouston
Copy link
Contributor

We don't want to add TLS skip or the TFE endpoint as HTTP headers. Just supporting the token via Authorization: header is fine.

CHANGELOG.md Outdated

IMPROVEMENTS
* Add `Authorization: Bearer` header support for Terraform token in proxy environments
* Add `MCP_LOCK_TFE_ADDRESS` env var to prevent clients from overriding the TFE address when hosting MCP server centrally
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't in the PR, remove this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tackled!

@jrhouston jrhouston added this to the v0.5.0 milestone Mar 20, 2026
@jaylonmcshan19-x jaylonmcshan19-x force-pushed the fix/nginx-underscore-headers branch from da40ce0 to 78c20ef Compare March 26, 2026 16:28
@jaylonmcshan19-x jaylonmcshan19-x merged commit 6e3706d into main Mar 26, 2026
27 of 31 checks passed
@jaylonmcshan19-x jaylonmcshan19-x deleted the fix/nginx-underscore-headers branch March 26, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TFE_TOKEN is rejected as header if MCP server is hosted behind nginx

2 participants