You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Devika7733 (via GitHub)" <gi...@apache.org> on 2025/10/07 07:11:19 UTC
[I] Cannot override admin credentials [superset]
Devika7733 opened a new issue, #35550:
URL: https://github.com/apache/superset/issues/35550
### Bug description
Hi Team,
I am trying to override the default admin password for Superset by setting ADMIN_PASSWORD in extraEnv, but it still uses the default password.
Even after a clean database installation, the issue persists. Please let me know if any additional configuration is required for the application to use the password I have defined.
### Screenshots/recordings
_No response_
### Superset version
5.0.0
### Python version
3.11
### Node version
18 or greater
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-3544279172
@Devika7733 are you still facing this one?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "peterpans2013 (via GitHub)" <gi...@apache.org>.
peterpans2013 commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-3931791572
@Devika7733 Have you tried this:
```
initscript: |-
#!/bin/sh
set -eu
echo "Upgrading DB schema..."
superset db upgrade
echo "Initializing roles..."
superset init
{{ 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 ${ADMIN_PASSWORD} \
|| true
{{- end }}
{{ if .Values.init.loadExamples }}
echo "Loading examples..."
superset load_examples
{{- end }}
if [ -f "{{ .Values.extraConfigMountPath }}/import_datasources.yaml" ]; then
echo "Importing database connections.... "
superset import_datasources -p {{ .Values.extraConfigMountPath }}/import_datasources.yaml
fi
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #35550: Cannot override admin credentials
URL: https://github.com/apache/superset/issues/35550
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-3402842998
I believe that the original init script sets it. The only time I've been able to change the password on my local is to log into the database and change it there. I don't really think this is really a bug and I think what @dosubot suggested may be correct. Have you tried that @Devika7733 ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-4748482959
In Helm deployments the admin password is set via init.adminUser.password in values.yaml (the init job ignores ADMIN_PASSWORD in extraEnv). This is a configuration matter rather than a Superset defect, so I'll close it. Please reopen if the documented approach doesn't work for you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-3402857277
<!-- Answer -->
Yes, the admin password in Helm deployments must be set using `init.adminUser.password` in your `values.yaml`, not via `ADMIN_PASSWORD` in `extraEnv`—the init job uses only the value from `values.yaml` when creating the admin user ([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/values.yaml)). If you’ve already tried updating this value and redeploying, can you confirm if the init job ran successfully and whether your database was reset? If the admin user already exists, changing the password in `values.yaml` won’t update it unless you reset the database or delete and recreate the user.
If you need step-by-step instructions for resetting the admin password in Helm, let me know your deployment details (persistent volumes, database type, etc.) and I can walk you through it. If you’re still stuck after trying these steps, please share any logs or error messages you’re seeing.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/54d9a917-6125-484d-b76c-7ea1a44b9c33?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35550)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Cannot override admin credentials [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #35550:
URL: https://github.com/apache/superset/issues/35550#issuecomment-3375508782
<!-- Answer -->
In Superset 5.0.0, setting ADMIN_PASSWORD in extraEnv works for Docker-based deployments because the container's initialization script reads this environment variable to set the admin password during user creation. However, if you're deploying with the Helm chart, the admin password is actually set from the value at `init.adminUser.password` in your `values.yaml` file, not directly from the ADMIN_PASSWORD environment variable—even if you inject it via extraEnv. So, to override the admin password in a Helm deployment, you need to set your desired password under `init.adminUser.password` in your Helm values, not just in extraEnv. The default remains "admin" unless you change this value. See the Helm chart's admin user creation logic for details:
[helm/superset/values.yaml](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/helm/superset/values.yaml)
If you want to ensure your password is applied, update `init.adminUser.password` and redeploy, making sure the init job runs and isn't skipped or cached. If you’re using Docker directly (not Helm), setting ADMIN_PASSWORD in the environment should work as expected, as shown in the container's entrypoint script:
[docker-init.sh](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/docker-init.sh)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2de7c930-2046-49d3-abb6-26a0889a7550?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35550)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org