-
Notifications
You must be signed in to change notification settings - Fork 203
K8SPXC-1494: add .spec.tls.certValidityDuration field
#2127
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
base: main
Are you sure you want to change the base?
Conversation
egegunes
left a comment
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 add PR description and check golangci-lint errors
pkg/controller/pxc/tls.go
Outdated
| Group: issuerGroup, | ||
| }, | ||
| Duration: &metav1.Duration{Duration: pxctls.DefaultValidity}, | ||
| Duration: duration, |
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.
so when i set validity duration all certs will be valid for this duration, including CA. i wonder if this will make rotation harder when these certs are expired. in PSMDB operator, we don't use this field for CA cert and hardcode 365 days for its validity duration (i don't think that approach is correct either bc what happens if user specifies 366 days for cert validity?). maybe we need to have a separate field for CA validity duration?
@hors wdyt?
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.
I am ok to add a separate field for CA validity duration
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.
https://perconadev.atlassian.net/browse/K8SPXC-1494
DESCRIPTION
This PR adds a
.spec.tls.certValidityDurationand.spec.tls.caValidityDurationfields to thecr.yaml. These fields control the validity period of the TLS certificates generated by the operatorCHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability