-
Notifications
You must be signed in to change notification settings - Fork 392
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
Settings status code for ExtAuth when used with SecurityPolicy #5214
Comments
hey closing this one as a dup of #5180, lets discuss this issue there |
Just to make sure if I was understood correctly, since I think I didnt discribe it well. We are using ext auth on gateway to decode JWTs and want to return 401 when the JWT is invalid. According to the GRPC spec, this should work since: Im returning the response for 401 like this:
where
The HTTP Mapping seems like the 401 should be returned to the user no? |
I have just tested it using envoy proxy locally with these steps:
Now when I curl the httpbin which is proxied by EnvoyProxy
the response is still 403, even tho I have returned the code: 16 which has mapping to 401 I can see in extAuth log
@arkodg this leads me that its problem of EnvoyProxy ? |
hey @zilinjak can you raise an issue in https://github.com/envoyproxy/envoy/issues if this is specific to envoy proxy ? |
Nevermind, sorry for spam, with envoy proxy this seems to be working ->
|
Hi,
Im using SecurityPolicy with ExtAuth ref to our GRPC service. We would like to return to the users status code
401
.The filter which is used by Envoy Proxy has that option to set -
status_on_error
- docs, which default to403
.The SecurityPolicy seems to be lacking this settings, which means that I can't set the status code returned by Envoy Proxy. Hence is there any other way how to set the
status_on_error
+ I need the ext auth to be enabled on whole Gateway and all routes created in it. If not are there any plans on creating this option ?Thanks
The text was updated successfully, but these errors were encountered: