-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
ext_authz filter: failure_mode_allow not working #4124
Comments
@michalholecek could you please test if the following config works? http_filters:
- name: envoy.ext_authz
config:
http_service:
server_uri:
uri: 0.0.0.0:8080
cluster: ext-authz
timeout: 0.2s
failure_mode_allow: true It seems the |
Tried it, does not work either. |
OK, I think we probably can add a special handler for 5xx in here:
and tell the check request to return Hence, we honor the
@gsagula thoughts? |
@michalholecek Thanks for reporting it.
@dio If I remember correctly this logic has been implemented before my modifications, but I think the original intention here was to return Please, let me take a look at this issue. I will send a PR with the fix. |
Thanks, @gsagula!
Seems good, but IMO semantically, given this condition (the server is off), it is better to say that the auth server is in error state (since we know it can't be reached). But, I'm not sure what is the implication to the downstream (i.e. whether we should convey that info or not, if yes how). |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
… client error (#4199) Ext_Authz HTTP client has been modified so that 5xx errors received from the authorization server will set the filter response status to error instead of denied and HTTP status code field to Forbidden. The gRPC client has been also modified in order to return HTTP status code Forbidden whenever an error between the client and the authorization server occurs. Risk Level: low Testing: unit tests, manual tests. Docs Changes: not needed. Fixes issue: #4124. Signed-off-by: Gabriel <[email protected]>
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
… client error (envoyproxy#4199) Ext_Authz HTTP client has been modified so that 5xx errors received from the authorization server will set the filter response status to error instead of denied and HTTP status code field to Forbidden. The gRPC client has been also modified in order to return HTTP status code Forbidden whenever an error between the client and the authorization server occurs. Risk Level: low Testing: unit tests, manual tests. Docs Changes: not needed. Fixes issue: envoyproxy#4124. Signed-off-by: Gabriel <[email protected]>
Hi,
modifying this option does not change behaviour of the filter. If ext_authz service is not accessible auth filter rejects the request and envoy returns
503 Service Unavailable
, even if failure_mode_allow is set to true.Filter conf:
Envoy log:
The text was updated successfully, but these errors were encountered: