Skip to content

Commit

Permalink
Added auth.passwordAuthSecret value for custom passworddb secret name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan0x44 authored and mosabua committed Nov 23, 2023
1 parent 7beaf33 commit b4fbf73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/trino/templates/deployment-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ spec:
{{- if eq .Values.server.config.authenticationType "PASSWORD" }}
- name: password-volume
secret:
{{- if and .Values.auth .Values.auth.passwordAuthSecret }}
secretName: {{ .Values.auth.passwordAuthSecret }}
{{- else }}
secretName: trino-password-authentication
{{- end }}
items:
- key: password.db
path: password.db
Expand Down
4 changes: 4 additions & 0 deletions charts/trino/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
apiVersion: v1
kind: Secret
metadata:
{{- if and .Values.auth .Values.auth.passwordAuthSecret }}
name: {{ .Values.auth.passwordAuthSecret }}
{{- else }}
name: trino-password-authentication
{{- end }}
labels:
{{- include "trino.labels" . | nindent 4 }}
data:
Expand Down
2 changes: 2 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ auth: {}
# Set username and password
# https://trino.io/docs/current/security/password-file.html#file-format
# passwordAuth: "username:encrypted-password-with-htpasswd"
# or set the name of a secret containing this file in the password.db key
# passwordAuthSecret: "trino-password-authentication"
# Set users' groups
# https://trino.io/docs/current/security/group-file.html#file-format
# refreshPeriod: 5s
Expand Down

0 comments on commit b4fbf73

Please sign in to comment.