-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
http.ext_authz.v3.ExtAuthz doesn't work as described #36122
Comments
This appears to be the expected behavior of So I think the expectation here is that your auth server would match If you want to be able to auth using an http service and that model doesn't work for you, I think you'd have to modify the ext_authz filter - it's almost certainly easier to modify your auth service to accommodate these expectations. cc @esmet or @tyxia in case I'm wrong since this isn't really my area. |
Hi @ravenblackx ! Thanks for your reply. As I understand there is no way to keep auth url fixed? Even if I set Thanks for your advice to modify the ext_authz filter. I prefer to keep evnoy a kind of black box ) I'm new to it, and the auth server is inside our infrastructure. So for me it's easier to manipulate with it in case there is no way not to modify auth url - I mean just using the config. |
And one more question, please: in my test env I can configure cluster like
but prod one looks like |
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. |
Title: Authorization filter doesn't work with http auth
Description:
I want some my requests to be authorized. I have simple auth server, that can reply 200/403. I'd also like to use http requests instead of grpc. My auth server receives wrong-prepared urls, so it can't reply properly. Seems envoy brakes this auth url.
Repro steps:
I have 2 containers runned: envoy + auth. envoyproxy/envoy:contrib-dev image is used.
Auth server exposes 12346 port and provides /api/v1/idm/auth/auth_request url for auth requests.
Envoy exposes 10000 port and is configured for /hi url to be authed first and then passed to another server.
And I run such curl request to make this work:
curl -i -X POST --header 'Content-Type: application/json' localhost:10000/hi
In auth logs I see malformed request:
For some reasons "hi" is added to auth endpoint.
Config:
please don't refer for some blocks named grpc, this is a copy from examples
Logs:
Before submitting this issue I tried different compositions of cluster and http_service.path_prefix|uri, all without any success. Please help.
The text was updated successfully, but these errors were encountered: