We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The JWT SecurityPolicy if enabled does not forward the Authorization header upstream.
Authorization
This is the default behaviour in Proxy if forward is not set to true: https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/jwt_authn_filter#jwtprovider
forward
Yet it is a weird behaviour for a gateway to temper headers from the original request.
https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/jwt_authn_filter#jwtprovider relevant code
gateway/internal/xds/translator/jwt.go
Lines 139 to 145 in f3e4e93
Adding Forward: true will result of not removing the Authorization header.
Forward: true
I'm not sure myself what would be a sane default, but this could become a parameter or at least documented in Gateway.
The text was updated successfully, but these errors were encountered:
Slack discussion https://envoyproxy.slack.com/archives/C03E6NHLESV/p1701708137782169
Sorry, something went wrong.
Thank you @akhenakh for raising this.
We have two options here:
SecurityPolicy
true
I am leaning towards option 2 because it doesn't harm to pass down the JWT token header. WDYT @arkodg @envoyproxy/gateway-maintainers
looks like we went ahead with 2. which was completed with #2300, can this be closed @zhaohuabing ?
Yes, this isssue can be closed.
We don't have to modify API with option 2. And if we need to give users the choice to move the token out later, we can add it to the API.
zhaohuabing
No branches or pull requests
The JWT SecurityPolicy if enabled does not forward the
Authorization
header upstream.This is the default behaviour in Proxy if
forward
is not set to true:https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/jwt_authn_filter#jwtprovider
Yet it is a weird behaviour for a gateway to temper headers from the original request.
https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/jwt_authn_filter#jwtprovider
relevant code
gateway/internal/xds/translator/jwt.go
Lines 139 to 145 in f3e4e93
Adding
Forward: true
will result of not removing theAuthorization
header.I'm not sure myself what would be a sane default, but this could become a parameter or at least documented in Gateway.
The text was updated successfully, but these errors were encountered: