-
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 and lua filters in one filter chain #8250
Comments
Is you config missing an |
Hi Stephan, envoy.router is in my config. I've solved my issue yesterday by moving ext_authz filter after lua. So, my full filter chain is like: lua ->cors -> jwt -> ext_authz. It seems like workaround though - executing lua code before authenticating seems a little bit overheading, but it's acceptable for us. Also, I've attached a log, where ext_authz filter is on top of a filter chain. I'm not sure, but maybe if routes have cluster_header, envoy determines that lua should be executed first and then ext_auth is skipped because it's on top? |
If you look at the "decode headers called" lines (which come after the filter is invoked), I believe ext_authz is being called before lua. It's just not doing anything. There is an if statement in that filter's decodeHeader implementation that skips work without logging if there's no route or cluster. Thus, if you have |
Thanks for your answers, Stephan. I'll close the issue. |
Issue is solved |
Hi guys,
I'm trying to add ext_authz filter to the existing filter chain that already have LUA filter. I've faced with a problem, that my auth filter is not invoked. If I change cluster_header to cluster in routes config, ext_authz works. Is there any way to make them work togother? I just want to invoke my auth service before futher processing.
Here is my config snippet:
The text was updated successfully, but these errors were encountered: