You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ignores any errors, so even if n.cfg.DefaultSSLCertificate is specified, but it can not be loaded for a reason or another, we silently fall back to the dummy certificate.
The text was updated successfully, but these errors were encountered:
akx
changed the title
--default-ssl-certificate does not raise an error if the certificate is not found
Bug: --default-ssl-certificate does not raise an error if the certificate is not found
Oct 23, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
k8s-ci-robot
added
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
and removed
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
labels
Feb 20, 2019
NGINX Ingress controller version:
0.20.0 git-e8d8103
Kubernetes version (use
kubectl version
):Environment:
What happened:
I set
--default-ssl-certificate
accidentally to point to a Certificate object created bycert-manager
, not the associated Secret.The controller started happily and served things with the default dummy self-signed certificate.
What you expected to happen:
An error to occur on startup, or a warning to be logged.
Changing the value to the correct secret reference fixes this, and I see
in the logs.
How to reproduce it (as minimally and precisely as possible):
Add
--default-ssl-certificate=default/jndfghkjs
or something.Anything else we need to know:
I may be wrong, but I assume this happens due to the way secrets are handled somewhere around
ingress-nginx/internal/ingress/controller/store/store.go
Lines 357 to 359 in 8eb47ad
Since no secret's name ever matches the
cfg.defaultSslCertificate
, that branch is never met, and the secret is never synced.This is exacerbated by the fact that the segment at
ingress-nginx/internal/ingress/controller/controller.go
Lines 752 to 761 in 8eb47ad
ignores any
err
ors, so even ifn.cfg.DefaultSSLCertificate
is specified, but it can not be loaded for a reason or another, we silently fall back to the dummy certificate.The text was updated successfully, but these errors were encountered: