-
Notifications
You must be signed in to change notification settings - Fork 17
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
Dynamically get certificates from ingresses' TLS secrets #54
Comments
I don't think supporting both would be needed for a first pass, neither of us need that option so I would be keen not to over-engineer the solution yet leave it open enough to do that later if need be. How do you propose managing the secrets? You could go and fetch the secret on every sync but that could be quite inefficient at scale, you could end up making a lot of api calls, alternatively a store could be used but by default that would have all secrets in your cluster being store in yggdrasil, which doesn't seem ideal as you're only interested in the tls related ones. Also worth noting that by adding this it does make Yggdrasil more of a target for intruders as it will have access to all the secrets in all your clusters. |
Hello, sorry for the late reply to this issue. The synchronization flow was copied from the ingresses sync and definitely needs cleaning and improvement. Also I noticed some complexity issues in the way that the snapshots are done. Right now yggdrasil does a snapshot (here) at each and every resource addition/change/deletion so the startup phase with thousands of ingresses and secrets never ends :D About the security concerns of yggdrasil holding access to k8s secrets, it is an accepted risk on our side and the rights will not be needed for those who will not use this option. Do you think it is a good way to go for this new feature? |
Declaring all TLS certificates and managing them alongside Yggdrasil can be a challenge when working with many ingresses all using different certificates.
We would like to make Yggdrasil fetch (and watch) TLS secrets declared in ingresses'
spec.tls
and use them.To make this functionality transparent to those who don't need it, we can imagine simply adding a
syncSecrets
Yggdrasil configuration option (false by default) that would ignorecertificates
if true:=>
Any other approach in mind? Maybe one to be able to use both static certificates and TLS secrets at the same time?
The text was updated successfully, but these errors were encountered: