-
Notifications
You must be signed in to change notification settings - Fork 1.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
add functionality to re-read config file, certificate #2274
Comments
just came across this, if you're still having this issue i'd recommend https://github.com/stakater/Reloader |
Thanks! I will check it, it looks a viable workaround also. |
I think #2964 didn't fully fix the cert issue, at least in Kubernetes. We had a cert renewed by cert-manager, and confirmed that the updated cert is available in the container filesystem, however Dex did not pick it up. This article probably explains why. Excerpt:
In this case the watch was applied to the directory, which is good, but
... is continuing the loop if the event does not apply to a secret file being watched. However, due to the way kubernetes handles secret changes (per linked article), the event in question would actually apply to the ..data intermediate link, not the secret file itself. |
Preflight Checklist
Problem Description
We use dex with tls certificates which needs to be expired and rotated every 60 days. After we replace the tls certificates on disk (in kubernetes secret), the dex still presenting the old cert and eventually will present the service with expired cert.
Our current method is to manually restart the application before the 60 days expiration time.
As we use cert-manager.io to automatically renew the tls certificates it would be great if dex itself can detect the changed config files and use the new certs without full application restart.
Proposed Solution
Please include a feature in dex to detect changes in certificates or config files in general and apply the related changes without manual restart.
Alternatives Considered
Currently we restart the application with external methods (script, cronjob, modify kubernetes deployment, etc.) so we have workaround but it's not ideal.
Additional Information
No response
The text was updated successfully, but these errors were encountered: