superset import_datasources
does not encrypt DB password
#31983
Labels
superset import_datasources
does not encrypt DB password
#31983
Bug description
When using
superset import_datasources
thesqlalchemy_uri
is imported as-is, without encrypting the password, keeping it as clear text.Steps to Reproduce
/app/configs/import_datasources.yaml
(e.g. usingextraConfigs
).Include the full
sqlalchemy_uri
with clear text password.init.initScript
or manually:Expectation
sqlalchemy_uri
field in thedbs
table is redacted, as if editing via the web UI.Example:
postgresql://user:[email protected]:5432/superset_data
password
field in thedbs
table is set to the respective encrypted password.Actual
sqlalchemy_uri
field in thedbs
table is kept as-is, readable in clear text, even in the web UI.Example:
postgresql://user:[email protected]:5432/superset_data
password
field in thedbs
table is kept asNULL
.Screenshots/recordings
Superset version
4.1.1
Python version
Not applicable
Node version
Not applicable
Browser
Not applicable
Additional context
Use Case / Justification
Automatically setting up data sources as part of a Helm chart deployment.
Checklist
The text was updated successfully, but these errors were encountered: