Skip to content

Commit 2ca96b6

Browse files
authored
[bitnami/etcd] bugfix: skip TLS verification with self-signed certs (#32417)
1 parent 28a30f1 commit 2ca96b6

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed

bitnami/etcd/CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3-
## 11.1.4 (2025-03-11)
3+
## 11.1.5 (2025-03-12)
44

5-
* [bitnami/etcd] Release 11.1.4 ([#32397](https://github.com/bitnami/charts/pull/32397))
5+
* [bitnami/etcd] bugfix: skip TLS verification with self-signed certs ([#32417](https://github.com/bitnami/charts/pull/32417))
6+
7+
## <small>11.1.4 (2025-03-11)</small>
8+
9+
* [bitnami/etcd] Release 11.1.4 (#32397) ([0ce5db9](https://github.com/bitnami/charts/commit/0ce5db9b0e37162cec32789580d4892264783a88)), closes [#32397](https://github.com/bitnami/charts/issues/32397)
610

711
## <small>11.1.3 (2025-03-05)</small>
812

bitnami/etcd/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ maintainers:
3333
name: etcd
3434
sources:
3535
- https://github.com/bitnami/charts/tree/main/bitnami/etcd
36-
version: 11.1.4
36+
version: 11.1.5

bitnami/etcd/templates/NOTES.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To connect to your etcd server from outside the cluster execute the following co
8888
{{- if .Values.auth.client.secureTransport }}
8989
{{- if .Values.auth.client.useAutoTLS }}
9090

91-
* As TLS is enabled you should add the flag `--cert-file /bitnami/etcd/data/fixtures/client/cert.pem --key-file /bitnami/etcd/data/fixtures/client/key.pem` to the etcdctl commands.
91+
* As TLS is enabled you should add the flag `--cert-file /bitnami/etcd/data/fixtures/client/cert.pem --key-file /bitnami/etcd/data/fixtures/client/key.pem --insecure-skip-tls-verify` to the etcdctl commands.
9292

9393
{{- else }}
9494

bitnami/etcd/templates/_helpers.tpl

+5-2
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,20 @@ Return the proper etcdctl authentication options
5454
{{- define "etcd.authOptions" -}}
5555
{{- $rbacOption := "--user root:$ROOT_PASSWORD" -}}
5656
{{- $certsOption := " --cert $ETCD_CERT_FILE --key $ETCD_KEY_FILE" -}}
57-
{{- $autoCertsOption := " --cert /bitnami/etcd/data/fixtures/client/cert.pem --key /bitnami/etcd/data/fixtures/client/key.pem" -}}
57+
{{- $autoCertsOption := " --cert /bitnami/etcd/data/fixtures/client/cert.pem --key /bitnami/etcd/data/fixtures/client/key.pem --insecure-skip-tls-verify" -}}
5858
{{- $caOption := " --cacert $ETCD_TRUSTED_CA_FILE" -}}
59+
{{- $insecureTlsOption := " --insecure-skip-tls-verify" -}}
5960
{{- if or .Values.auth.rbac.create .Values.auth.rbac.enabled -}}
6061
{{- printf "%s" $rbacOption -}}
6162
{{- end -}}
6263
{{- if and .Values.auth.client.secureTransport .Values.auth.client.useAutoTLS -}}
6364
{{- printf "%s" $autoCertsOption -}}
6465
{{- else if and .Values.auth.client.secureTransport (not .Values.auth.client.useAutoTLS) -}}
6566
{{- printf "%s" $certsOption -}}
66-
{{- if .Values.auth.client.enableAuthentication -}}
67+
{{- if or .Values.auth.client.enableAuthentication .Values.auth.client.caFilename -}}
6768
{{- printf "%s" $caOption -}}
69+
{{- else -}}
70+
{{- printf "%s" $insecureTlsOption -}}
6871
{{- end -}}
6972
{{- end -}}
7073
{{- end -}}

bitnami/etcd/templates/cronjob-snapshotter.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ spec:
110110
value: "/opt/bitnami/etcd/certs/client/{{ .Values.auth.client.caFilename | default "ca.crt" }}"
111111
{{- else if .Values.auth.client.caFilename }}
112112
- name: ETCD_TRUSTED_CA_FILE
113-
value: "/opt/bitnami/etcd/certs/client/{{ .Values.auth.client.caFilename | default "ca.crt" }}"
113+
value: "/opt/bitnami/etcd/certs/client/{{ .Values.auth.client.caFilename }}"
114+
{{- else }}
115+
- name: ETCD_EXTRA_AUTH_FLAGS
116+
value: "--insecure-skip-tls-verify"
114117
{{- end }}
115118
{{- end }}
116119
{{- if or .Values.auth.rbac.create .Values.auth.rbac.enabled }}

bitnami/etcd/templates/preupgrade-hook-job.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ spec:
111111
value: "/opt/bitnami/etcd/certs/client/{{ .Values.auth.client.caFilename | default "ca.crt" }}"
112112
{{- else if .Values.auth.client.caFilename }}
113113
- name: ETCD_TRUSTED_CA_FILE
114-
value: "/opt/bitnami/etcd/certs/client/{{ .Values.auth.client.caFilename | default "ca.crt" }}"
114+
value: "/opt/bitnami/etcd/certs/client/{{ .Values.auth.client.caFilename }}"
115+
{{- else }}
116+
- name: ETCD_EXTRA_AUTH_FLAGS
117+
value: "--insecure-skip-tls-verify"
115118
{{- end }}
116119
{{- end }}
117120
{{- if .Values.extraEnvVars }}

0 commit comments

Comments
 (0)