-
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
Direct response/Redirect with ext_authz #14984
Comments
I took a look at this and figured out that the ext_authz filter is invoked in this case, but it does nothing because it cannot find a route entry:
To support direct replies, we'd need to also check for route->directResponseEntry(). I can't think of a reason why direct entries shouldn't work here so I think this is just a bug that should be fixed. Operators can still configure direct response entries that skip ext_authz by providing a per-route config that disables the filter. |
/assign |
This bit in the ext_authz.cc filter seems to do the trick:
|
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 "no stalebot" or other activity occurs. Thank you for your contributions. |
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" or "no stalebot". Thank you for your contributions. |
Can we unstale this and associate it with a work in progress #14989? |
This is fixed by #17546 |
Title: Unable to run ext_authz filter with direct response and redirect.
Description:
From how I read #8436 I should be able to set up a direct response and have it handled by the authorization filter. But when I set it up as follows no call is made to the ext_authz filter, and it just responds as specified
The text was updated successfully, but these errors were encountered: