Skip to content

Commit

Permalink
fix: helm prefers initialUserPassword over defaultPassword, never mak…
Browse files Browse the repository at this point in the history
…es a sidecar
  • Loading branch information
jesse-amano-hpe committed Apr 5, 2024
1 parent 2ef5ab9 commit 9034665
Show file tree
Hide file tree
Showing 5 changed files with 13 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,8 +228,11 @@
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).

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

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

- ``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
Expand Down
8 changes: 8 additions & 0 deletions docs/release-notes/helm-requires-user-password.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:orphan:

**Security Fixes**

- Helm: When deploying a new cluster with Helm, an initial password for the ``admin`` and
``determined`` users should be specified using either ``initialUserPassword`` or
``defaultPassword`` (see helm/charts/determined/values.yaml). Configuring a password is no
longer done as a separate step.
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 9034665

Please sign in to comment.