Skip to content

Commit

Permalink
feat: helm deploys with a password (#9113)
Browse files Browse the repository at this point in the history
DET-10208 Helm deploys with the initialUserPassword or defaultPassword
  • Loading branch information
jesse-amano-hpe authored Apr 8, 2024
1 parent 8a7832a commit d5f807d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 153 deletions.
5 changes: 4 additions & 1 deletion docs/reference/deploy/helm-config-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,12 @@
automatically terminated. A TensorBoard instance is considered to be idle if it does not receive
any HTTP traffic. The default timeout is 300 (5 minutes).

- ``defaultPassword``: Specifies a string containing the default password for the admin and
- ``initialUserPassword``: Specifies a string containing the default password for the admin and
determined user accounts.

- ``defaultPassword``: (*Deprecated*) Specifies a string containing the default password for the
admin and determined user accounts. Use ``initialUserPassword`` instead.

- ``logging``: Configures where trial logs are stored. This section takes the same shape as the
logging configuration in the :ref:`cluster configuration <cluster-configuration>`, except that
names are changed to camel case to match Helm conventions (e.g., ``skip_verify`` would be
Expand Down
9 changes: 9 additions & 0 deletions docs/release-notes/helm-requires-user-password.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:orphan:

**Security Fixes**

- Helm: When deploying a new cluster with Helm, configuring an initial password for the "admin" and
"determined" users is required and is no longer a separate step. To specify an initial password
for these users, visit the helm/charts/determined/values.yaml file and use either
initialUserPassword (preferred) or defaultPassword (deprecated). For reference, visit
:ref:helm-config-reference.
107 changes: 0 additions & 107 deletions helm/charts/determined/scripts/k8s-password-change.py

This file was deleted.

44 changes: 0 additions & 44 deletions helm/charts/determined/templates/change-password.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion helm/charts/determined/templates/master-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ stringData:
security:
{{- if .Values.initialUserPassword }}
initial_user_password: {{ .Values.initialUserPassword | quote }}
initial_user_password: {{ coalesce .Values.initialUserPassword .Values.defaultPassword | quote }}
{{- end }}
{{- if .Values.tlsSecret }}
tls:
Expand Down

0 comments on commit d5f807d

Please sign in to comment.