Skip to content

Commit

Permalink
Merge pull request #7631 from chaen/v8.0_FIX_sqlLeak
Browse files Browse the repository at this point in the history
[8.0] Fix clear text password printout
  • Loading branch information
fstagni authored May 31, 2024
2 parents 87e0d77 + 2f6f0cd commit 84005f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DIRAC/Core/Base/SQLAlchemyDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def _initializeConnection(self, dbPath):
raise Exception(f"Cannot get database parameters: {result['Message']}")

dbParameters = result["Value"]
self.log.debug(f"db parameters: {dbParameters}")
db_param_redacted = dbParameters.copy()
db_param_redacted["Password"] = "**REDACTED**"
self.log.debug(f"db parameters: {db_param_redacted}")
self.host = dbParameters["Host"]
self.port = dbParameters["Port"]
self.user = dbParameters["User"]
Expand Down

0 comments on commit 84005f5

Please sign in to comment.