-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
superset
Flask CLI fails to launch in Debug mode: Refusing to start due to insecure SECRET_KEY
#23288
Comments
UPDATE As a workaround when only using built-in Flask commands, substituting |
Refusing to start due to insecure SECRET_KEY Same issue when I run docker-compose -f docker-compose-non-dev.yml up |
Another more reliable workaround is to add |
Can you not just set the secret key to something more custom, as it's warning you to do? |
Assuming you have set your own example: export SUPERSET_CONFIG=superset_config; superset |
Nope. I am not setting my own The problem is that PR #23186 does not seem to work as advertised when running in Flask Debug mode. |
Seems like this is all good now and should've been closed. Let me know if I'm mistaken, and we can re-open with updated context. |
After #23186 , the
superset
Flask cli no longer starts unless a non-default SECRET_KEY is configured.How to reproduce the bug
export FLASK_DEBUG=True
superset --help
Refusing to start due to insecure SECRET_KEY
Expected results
superset
CLI prints out the help pageActual results
error:
Refusing to start due to insecure SECRET_KEY
Environment
(please complete the following information):
3.10
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: