-
Notifications
You must be signed in to change notification settings - Fork 146
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
K8SPSMDB-956: fix problems with TLS certificate renewal #1287
Conversation
e2e-tests/tls-issue-cert-manager/run
Outdated
. "${test_dir}/../functions" | ||
set_debug | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pooknull please check tls-issue-cert-manager test
deploy/rbac.yaml
Outdated
@@ -100,6 +100,7 @@ rules: | |||
resources: | |||
- issuers | |||
- certificates | |||
- certificates/status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also update the bundle.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not have it at all. It is needed only for test.
commit: 021f368 |
https://jira.percona.com/browse/K8SPSMDB-956
DESCRIPTION
Problem:
Certificate rotation brings the sharded cluster down.
Cause:
Cert-Manager detects certs would expire soon and triggers certificate rotation. The operator starts smartUpdate, which fails and leaves the mongos in the
CrashLoopBackoff
state.Solution:
We should switch from self-signed certificates to CA-signed ones. The operator should create a self-signed issuer, a self-signed certificate, and use that certificate to create a CA issuer, which will be used to create certificates.
Additional fixes:
github.com/jetstack/cert-manager v1.6.1
togithub.com/cert-manager/cert-manager v1.12.3
tls-issue-cert-manager
testisCA: true
from mongo certificatesCHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
compare/*-oc.yml
)?Config/Logging/Testability