Skip to content
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

MAISTRA-2007 Use self-signed cert for webhook caBundle if present #633

Merged
merged 1 commit into from Dec 10, 2020

Conversation

dgn
Copy link
Contributor

@dgn dgn commented Nov 24, 2020

This changes the CABundleSource so that it'll first check whether there's a cacerts secret and use that if possible. If it's not present, it will use the istio-ca-secret just as before. I verified that this matches the behaviour of istiod: it will use cacerts if present, and if not it will create the self-signed istio-ca-secret secret.

I had to refactor quite a bit of code to make this work, most notably the WebhookCABundleManager doesn't know how to retrieve caBundles from a source anymore, but that logic has been moved into the CaBundleSource itself. This allows for a more flexible behaviour, we could e.g. implement a dynamic source in the future that fetches a ConfigMap or Secret, depending on SMCP config.

@dgn
Copy link
Contributor Author

dgn commented Nov 24, 2020

/retest

@maistra-bot maistra-bot merged commit 440d788 into maistra:maistra-2.0 Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants