You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding/updating a SQL-layer, the authentication configuration gets expanded in the createSqlVectorLayer-implementations of the database providers. This is critical as it leads to leaking the datasource password to the project file, even though the datasource is configured and used via the authentication manager.
This behavior was observed with a PostGIS database, but it seems that the following providers are affected:
Not sure if #58020 is the best approach, since uri() with expandAuthConfig defaulted to true is used in other functions of those QgsAbstractDatabaseProviderConnections..?
What is the bug or the crash?
When adding/updating a SQL-layer, the authentication configuration gets expanded in the
createSqlVectorLayer
-implementations of the database providers. This is critical as it leads to leaking the datasource password to the project file, even though the datasource is configured and used via the authentication manager.This behavior was observed with a PostGIS database, but it seems that the following providers are affected:
QgsPostgresProviderConnection
QgsSpatiaLiteProviderConnection
QgsOracleProviderConnection
QgsHanaProviderConnection
Steps to reproduce the issue
.qgs
file<datasource>
in the.qgs
fileauthcfg
👍Versions
79285c27c2ce342ab1267c72d2b02b767d4b32e4
Supported QGIS version
New profile
Additional context
NOTE: Will create a PR with
expandAuthConfig
set tofalse
when creating theQgsVectorLayer
in the providers listed aboveThe text was updated successfully, but these errors were encountered: