Reduce the TLS common name length (#115)

---

*Motivation*

Reduce the TLS command name to avoid getting a too long name
that could not generate a certificate.
This commit is contained in:
Yong Zhang 2021-04-23 12:43:44 +08:00 committed by GitHub
parent ba356e5df7
commit 0816ac2dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ spec:
{{ toYaml .Values.tls.common.organization | indent 2 }} {{ toYaml .Values.tls.common.organization | indent 2 }}
# The use of the common name field has been deprecated since 2000 and is # The use of the common name field has been deprecated since 2000 and is
# discouraged from being used. # discouraged from being used.
commonName: "*.{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}" commonName: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
isCA: false isCA: false
keySize: {{ .Values.tls.common.keySize }} keySize: {{ .Values.tls.common.keySize }}
keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }} keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }}
@ -77,7 +77,7 @@ spec:
{{ toYaml .Values.tls.common.organization | indent 2 }} {{ toYaml .Values.tls.common.organization | indent 2 }}
# The use of the common name field has been deprecated since 2000 and is # The use of the common name field has been deprecated since 2000 and is
# discouraged from being used. # discouraged from being used.
commonName: "*.{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}" commonName: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
isCA: false isCA: false
keySize: {{ .Values.tls.common.keySize }} keySize: {{ .Values.tls.common.keySize }}
keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }} keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }}
@ -119,7 +119,7 @@ spec:
{{ toYaml .Values.tls.common.organization | indent 2 }} {{ toYaml .Values.tls.common.organization | indent 2 }}
# The use of the common name field has been deprecated since 2000 and is # The use of the common name field has been deprecated since 2000 and is
# discouraged from being used. # discouraged from being used.
commonName: "*.{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}" commonName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
isCA: false isCA: false
keySize: {{ .Values.tls.common.keySize }} keySize: {{ .Values.tls.common.keySize }}
keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }} keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }}
@ -160,7 +160,7 @@ spec:
{{ toYaml .Values.tls.common.organization | indent 2 }} {{ toYaml .Values.tls.common.organization | indent 2 }}
# The use of the common name field has been deprecated since 2000 and is # The use of the common name field has been deprecated since 2000 and is
# discouraged from being used. # discouraged from being used.
commonName: "*.{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}" commonName: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
isCA: false isCA: false
keySize: {{ .Values.tls.common.keySize }} keySize: {{ .Values.tls.common.keySize }}
keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }} keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }}
@ -198,7 +198,7 @@ spec:
{{ toYaml .Values.tls.common.organization | indent 2 }} {{ toYaml .Values.tls.common.organization | indent 2 }}
# The use of the common name field has been deprecated since 2000 and is # The use of the common name field has been deprecated since 2000 and is
# discouraged from being used. # discouraged from being used.
commonName: "*.{{ template "pulsar.fullname" . }}-{{ .Values.toolset.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}" commonName: "{{ template "pulsar.fullname" . }}-{{ .Values.toolset.component }}"
isCA: false isCA: false
keySize: {{ .Values.tls.common.keySize }} keySize: {{ .Values.tls.common.keySize }}
keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }} keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }}
@ -236,7 +236,7 @@ spec:
{{ toYaml .Values.tls.common.organization | indent 2 }} {{ toYaml .Values.tls.common.organization | indent 2 }}
# The use of the common name field has been deprecated since 2000 and is # The use of the common name field has been deprecated since 2000 and is
# discouraged from being used. # discouraged from being used.
commonName: "*.{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}.{{ template "pulsar.namespace" . }}.svc.{{ .Values.clusterDomain }}" commonName: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"
isCA: false isCA: false
keySize: {{ .Values.tls.common.keySize }} keySize: {{ .Values.tls.common.keySize }}
keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }} keyAlgorithm: {{ .Values.tls.common.keyAlgorithm }}