cockroachdb / cockroachdb/helm-charts

Cert-manager managed CA certificate Duration & ExpiryWindow

Open
#397 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
105
Forks
152
Avg merge
4d 23h
Merged PRs (30d)
5

Description

### Request

We request the ability to modify the [CA certificate](https://github.com/cockroachdb/helm-charts/blob/master/cockroachdb/templates/certificate.ca.yaml)'s Duration and ExpiryWindow in the Helm chart, similar to how we can modify these values for [node](https://github.com/cockroachdb/helm-charts/blob/31f086fb896d53658bf29e51fdc61a2b45a6efb3/cockroachdb/values.yaml#L528) and [client](https://github.com/cockroachdb/helm-charts/blob/31f086fb896d53658bf29e51fdc61a2b45a6efb3/cockroachdb/values.yaml#L524) certificates.
### Why this feature is needed

The [default duration is 90 days](https://cert-manager.io/v1.2-docs/faq/#if-renewbefore-or-duration-is-not-defined-what-will-be-the-default-value). When the node certificates have a duration exceeding 90 days, the nodes fail to authenticate because the CA certificate used to create them must remain valid for the node certificate to be valid. Therefore, it is essential to have a CA certificate duration longer than the node certificate duration. Since the [default value for node certificate duration](https://github.com/cockroachdb/helm-charts/blob/31f086fb896d53658bf29e51fdc61a2b45a6efb3/cockroachdb/values.yaml#L528) is 8760h, they become invalid before getting expire. This feature is necessary to ensure seamless authentication without any manual intervention.

Jira issue: HELM-12

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with cockroachdb/templates/certificate.ca.yaml and the certificate duration settings in values.yaml, comparing the existing node and client certificate options. Expose CA Duration and ExpiryWindow consistently with those settings, then verify the rendered CA certificate uses the configured values.】【。

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.