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

Fix webhook certificates not being reloaded on change #470

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

daniel-weisse
Copy link
Member

When installing the MarbleRun webhook using Helm, the certificates are set up using cert-manager.
These certificates will be renewed after some time (or manually using cmctl renew), causing all connections to the webhook to fail with remote error: tls: bad certificate.
To prevent this issue, webhook certificates should be loaded as needed, instead of once for the life time of the pod.

Proposed changes

  • Load webhook certificate and key dynamically on receiving a request

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
@netlify
Copy link

netlify bot commented Aug 24, 2023

Deploy Preview for marblerun-docs canceled.

Name Link
🔨 Latest commit 5a63179
🔍 Latest deploy log https://app.netlify.com/sites/marblerun-docs/deploys/64e7593b79abb700085cbb52

@daniel-weisse daniel-weisse merged commit 589ecb2 into master Aug 24, 2023
7 checks passed
@daniel-weisse daniel-weisse deleted the fix/injector/tls-cert-refresh branch August 24, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants