GitHub user Randy-Coding created a discussion: HELM: We should be allowed to
set the admin passwird through the ADMIN_PASSWORD environment variable
Currently the only way to define admin credentials is to set it here:
```yaml
init:
createAdmin: true
adminUser:
username: admin
password: your-strong-password
```
However in docker you can set the password in an environment variable.
I think helm chart users should have this ability as well, as it lets us pass
admin credentials through kubernetes secrets instead of being forced to write
them in plaintext.
Currently in order to have this functionality we must override this initscript:
```bash
{{ if .Values.init.createAdmin }}
echo "Creating admin user..."
superset fab create-admin \
--username {{ .Values.init.adminUser.username }} \
--firstname {{ .Values.init.adminUser.firstname }} \
--lastname {{ .Values.init.adminUser.lastname }} \
--email {{ .Values.init.adminUser.email }} \
--password {{ .Values.init.adminUser.password }} \
|| true
{{- end }}
```
I believe a change to allow the admin user to be given a password through env
variables would be simple to add and would give end users more control over
where they place sensitive credentials.
GitHub link: https://github.com/apache/superset/discussions/38300
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]