-
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
ingress.kubernetes.io/secure-verify-ca-secret annotation not working for nginx 0.12.0 #2680
Comments
@stanltam please check the flags in the ingress controller deployment. If you have something like --annotations-prefix=nginx.ingress.kubernetes.io then you need to add nginx. as prefix |
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. |
Closing. Please update to the latest release and reopen if the issue persists |
Hi, I've noticed the same thing. On version 0.24.1 (but looking at the code, there doesn't seem to have been any changes to it in 0.25, I'd still be happy to try on 0.25 if requested.) Basically specifying a secret in secure-verify-ca-secret does not appear to make any difference at all except a log
Specifying any certificate in the secure-verify-ca-secret annotation and then having the same backend serve up a completely different (self-signed) certificate does not lead to any errors at all. The now-deleted documentation said
Not sure what an invalid secret might look like, I've been using I am confident my annotation prefix is correct, as changing other annotations (e.g. auth-realm) behaves correctly. Any ideas? Should I open a new ticket? |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
NGINX Ingress controller version:
Kubernetes version (use
kubectl version
):Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0+icp-ee", GitCommit:"9cb64de4ca4d039c35f4a29721aa5cf787648a15", GitTreeState:"clean", BuildDate:"2018-04-27T06:32:18Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Environment:
uname -a
):Linux devops-sfs-uat 4.4.0-116-generic proposal: application health check #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
helm chart
What happened:
I want to have ingress controller to verify the certificate of upstream is trusted or not.
As suggested from https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#secure-backends, i tried to use ingress.kubernetes.io/secure-verify-ca-secret annotation, but I found that there is no changes in nginx.conf in the controller pod and so no effect ....
Please find the attached nginx conf and ingress yaml
Issue.zip
What you expected to happen:
The ingress.kubernetes.io/secure-verify-ca-secret annotation will take effect and will check the upstream certificate
How to reproduce it (as minimally and precisely as possible):
Create the ingress using the yaml provided
Anything else we need to know:
The text was updated successfully, but these errors were encountered: