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

[helm-chart] Include webhook client configuration CA only when certificates are not managed by the operator or cert-manager #6642

Conversation

thbkrkr
Copy link
Contributor

@thbkrkr thbkrkr commented Apr 3, 2023

This includes the webhook client configuration CA only when certificates are managed by the user, not when they are managed by the operator or cert-manager.

Currently, when certificates are managed by the operator or cert-manager, the webhook manifest is generated with client configuration CA set to Cg==. As soon as the webhook is created, the operator or cert-manager will generate a cert and update the client configuration CA. This is an issue when deploying ECK with tools like ArgoCD because the tool will indefinitely be in conflict with the operator or cert-manager by always resetting the generated CA.

Resolves #6641.

@thbkrkr thbkrkr added >bug Something isn't working v2.8.0 labels Apr 3, 2023
@thbkrkr thbkrkr force-pushed the do-not-manage-webhook-caBundle-when-manageCerts-true branch from bae86fd to aae8980 Compare April 3, 2023 19:38
…s are not managed by the operator

Signed-off-by: Thibault Richard <[email protected]>
@thbkrkr thbkrkr force-pushed the do-not-manage-webhook-caBundle-when-manageCerts-true branch from aae8980 to 60009c7 Compare April 3, 2023 19:39
Copy link
Contributor

@naemono naemono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, otherwise 👍

@@ -12,7 +12,9 @@ metadata:
{{- end }}
webhooks:
- clientConfig:
{{- if not .Values.webhook.manageCerts }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# caBundle is the PEM-encoded CA trust bundle for the webhook certificate. Only required if manageCerts is false and certManagerCert is null.

Should we also include the check to ensure that certManagerCert is null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely.

@thbkrkr thbkrkr force-pushed the do-not-manage-webhook-caBundle-when-manageCerts-true branch from 66f657a to 8b92fd0 Compare April 4, 2023 15:19
@thbkrkr thbkrkr changed the title [helm-chart] Include webhook client configuration CA only when certificates are not managed by the operator [helm-chart] Include webhook client configuration CA only when certificates are not managed by the operator or cert-manager Apr 4, 2023
@thbkrkr thbkrkr merged commit 1887a5c into elastic:main Apr 4, 2023
@thbkrkr thbkrkr deleted the do-not-manage-webhook-caBundle-when-manageCerts-true branch April 13, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[deploy/eck-operator] Don't deploy CA bundle if manageCerts is true
2 participants