Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've built a small MutatingAdmissionWebhook controller [0] that handles this, via a pod annotation whose value is a secret with `ca.crt` inside, and it uses the (mostly) de facto standard openssl variables to configure the libraries, so that it works across pretty much everything I've tried it with off the shelf.

I build a bundle (though I may just move to trust-manager [1]) and replicate it into all namespaces with kubernetes-replicator [2], and then I can annotate any pod with

[0] https://github.com/microcumulus/ca-injector

[1] https://github.com/cert-manager/trust-manager

[2] https://github.com/mittwald/kubernetes-replicator



*...with the name of that secret and SSL works for almost everything out of the box. As I've found things that don't work (nodejs was one), I've just updated that code and it's made life pretty great for anywhere I'm running a CA in vault etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: