-
Notifications
You must be signed in to change notification settings - Fork 689
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 support for External Auth is not working #5237
Comments
HTTPProxies with HTTP (no tls setting) virtualhosts do not support configuring external auth servers in-line, you must configure a global external auth server, see: https://projectcontour.io/docs/main/guides/external-authorization/#global-external-authorization (there is a note that |
we may want to decide to add an error condition to HTTPProxies with no TLS configuration that attempt to also configure the external auth server so that this confusion does not arise cc @clayton-gonsalves |
Sets Valid=false on an HTTP vhost with External Auth configured. Note that it is still valid to explicitly disable ExtAuth for an HTTP vhost. Closes projectcontour#5237. Signed-off-by: Steve Kriss <krisss@vmware.com>
…rojectcontour#5260) Sets Valid=false on an HTTP vhost with External Auth configured. Note that it is still valid to explicitly disable ExtAuth for an HTTP vhost. Closes projectcontour#5237. Signed-off-by: Steve Kriss <krisss@vmware.com>
What steps did you take and what happened:
I have set up authorization, but the backend service is accessible without querying authorization.
Of course, we monitored the authentication server packets, but none were received.
What did you expect to happen:
Authorization must work over HTTP.
#4994
What I tried.
Specifying a nonexistent ExtensionService in extensionRef passes without generating any error.
Of course, all requests are granted as if authentication does not exist.
There is a difference between the test code here and my run results and I am not sure what is causing it.
https://github.com/projectcontour/contour/pull/4994/files#diff-5c8caa7e2f07cab15315ea619d08ac64babb067f3aeafad2c4663fc2d30578ce
Anything else you would like to add:
Here's a yaml I tried.
Environment:
docker.io/kahiro/contour:3a85420d
I built this commit.kubectl version
): Server Version: version.Info{Major:"1", Minor:"25+", GitVersion:"v1.25.6-eks-48e63af", GitCommit:"9f22d4ae876173884749c0701f01340879ab3f95", GitTreeState:"clean", BuildDate:"2023-01-24T19:19:02Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}/etc/os-release
): Bottlerocket OS 1.12.0 (aws-k8s-1.25)The text was updated successfully, but these errors were encountered: