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

Provide ability to specify certificate key size #254

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cockroachdb/templates/certificate.client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ spec:
{{- if .Values.tls.certs.useCertManagerV1CRDs }}
privateKey:
algorithm: RSA
size: 2048
size: {{ .Values.tls.certs.certDetails.keySize }}
{{- else }}
keySize: 2048
keySize: {{ .Values.tls.certs.certDetails.keySize }}
keyAlgorithm: rsa
{{- end }}
commonName: root
Expand Down
4 changes: 2 additions & 2 deletions cockroachdb/templates/certificate.node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ spec:
{{- if .Values.tls.certs.useCertManagerV1CRDs }}
privateKey:
algorithm: RSA
size: 2048
size: {{ .Values.tls.certs.certDetails.keySize }}
{{- else }}
keySize: 2048
keySize: {{ .Values.tls.certs.certDetails.keySize }}
keyAlgorithm: rsa
{{- end }}
commonName: node
Expand Down
4 changes: 4 additions & 0 deletions cockroachdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ tls:
# Enable if the secret is a dedicated TLS.
# TLS secrets are created by cert-mananger, for example.
tlsSecret: false
# Fine Grain Cert details
certDetails:
# Certificate Key Size
keySize: 2048
# Enable if the you want cockroach db to create its own certificates
selfSigner:
# If set, the cockroach db will generate its own certificates
Expand Down