-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
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
gRPC: header specified in auth-response-headers is not rewritten #3914
Comments
There is no support for gRPC auth, the annotation only works for HTTP |
A workaround for this bug is to manually add the missing line with a configuration snippet annotation: nginx.ingress.kubernetes.io/configuration-snippet: |
grpc_set_header 'Authorization' $authHeader0; |
Why is this kind/feature? The docs don't mention anything about this combination being mutually exclusive, and the code attempts to configure external auth with gRPC backends, it just does it wrong. Since the implementation exists, but is broken, it should be classified as a bug. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.): no
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.): grpc
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version: 0.21
What happened:
When using a gRPC backend, external auth, and auth-response-headers, the specified header is not rewritten with the one from the auth response. The original request header is passed through unmodified.
What you expected to happen:
Headers defined in auth-response-headers should be rewritten from the auth response.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
This is caused because the auth-response-header template uses
proxy_set_header
instead ofgrpc_set_header
.Here is an example from the generated nginx conf:
We can see that
Authorization
usesproxy_set_header
while the other headers correctly usegrpc_set_header
.The text was updated successfully, but these errors were encountered: