-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Unable to use "ssl_verify_client optional_no_ca" with the current implementation of "auth-tls-verify-client" annotation #2922
Comments
Quick update. It is possible to work around this issue by adding a custom snippet to your server block.
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale Prepping PR to fix this. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Finally got around to return to this issue. New PR will be coming next. /reopen |
@juliohm1978: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Does the workaround specified here actually work? When using it I get this:
|
It works for me. Did you also keep the |
Thanks for the quick reply! I did so that was my issue with the workaround. But it actually looks like this works:
I noticed this in the source:
|
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): bug
NGINX Ingress controller version: 0.17.1
Kubernetes version (use
kubectl version
): 1.10Environment:
Kernel (e.g.
uname -a
): Linux k8s-master01-dev 4.15.0-29-generic Add healthz checker #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxInstall tools: Kubespray 2.5.0
What happened:
I'm glad that nginx-ingress supports client certificate authentication, but the current implementation of the
nginx.ingress.kubernetes.io/auth-tls-verify-client
annotation does not allow the use ofoptional_no_ca
. The only effective values that work areon
oroff
.While PR 1359 nicely added this feature, it doesn't account for an empty
CAFileName
. If you don't provide a certificate authority, the code that includes ssl_verify_client is skiped entirely, which rendersoptional_no_ca
ineffective.Current master branch still holds the same implementation.
What you expected to happen:
A way to configure
nginx.ingress.kubernetes.io/auth-tls-verify-client: "optional_no_ca"
and have the ingress controller accept any CA, without needing to include a specific CA certificate.The text was updated successfully, but these errors were encountered: