Skip to content

Commit f9d61c6

Browse files
Added ability for the operator to trust self-signed certs
1 parent 84dd56a commit f9d61c6

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

charts/connect/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ helm install --set connect.applicationName=connect connect ./connect
157157
| operator.watchNamespace | list | `[]` | A list of namespaces for the 1Password Operator to watch and manage. Use the empty list to watch all namespaces. |
158158
| operator.resources | object | `{}` | The resources requests/limits for the 1Password Operator pod |
159159
| operator.customEnvVars | array | `[]` | Custom environment variables for the 1Password Operator container that are not specified in this helm chart. |
160+
| operator.tls.trust.secret | string | `op-connect-tls` | The name of the secret containing the TLS certificate (tls.crt) used by the 1Password Connect API. This is used if that cert is a self-signed cert that needs to be trusted by the Operator. |
160161

161162
#### Custom Environment Variables
162163

charts/connect/templates/operator-deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ spec:
4646
tolerations:
4747
{{- toYaml .Values.operator.tolerations | nindent 8 }}
4848
serviceAccountName: {{ .Values.operator.serviceAccount.name }}
49+
volumes:
50+
{{- if .Values.operator.tls.trust.secret }}
51+
- name: tls-trust
52+
secret:
53+
secretName: {{ .Values.operator.tls.trust.secret }}
54+
{{- end }}
4955
containers:
5056
- name: {{ .Values.connect.applicationName }}
5157
image: {{ .Values.operator.imageRepository }}:{{ .Values.operator.version | default "latest" }}
@@ -83,8 +89,17 @@ spec:
8389
- name: {{ .name }}
8490
value: {{ .value }}
8591
{{- end }}
92+
{{- if .Values.operator.tls.trust.secret }}
93+
- name: SSL_CERT_FILE
94+
value: /tls/trust/tls.crt
95+
{{- end }}
8696
resources:
8797
{{- toYaml .Values.operator.resources | nindent 12 }}
98+
volumeMounts:
99+
{{- if .Values.operator.tls.trust.secret }}
100+
- mountPath: /tls/trust
101+
name: tls-trust
102+
{{- end}}
88103
{{- with .Values.operator.imagePullSecrets }}
89104
imagePullSecrets:
90105
{{- range . }}

charts/connect/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,15 @@ operator:
378378
# value: VARIABLE_VALUE
379379
customEnvVars: []
380380

381+
# 1Password Operator TLS settings
382+
tls:
383+
384+
# 1Password Operator TLS trust settings
385+
trust: {}
386+
387+
# 1Password operator should trust the certificate in this secret
388+
# secret:
389+
381390
# 1Password Acceptance Tests Functionality
382391
acceptanceTests:
383392
enabled: false

0 commit comments

Comments
 (0)