Skip to content

Commit

Permalink
Merge pull request #7634 from DIRACGridBot/cherry-pick-2-84005f5c2-in…
Browse files Browse the repository at this point in the history
…tegration

[sweep:integration] Fix clear text password printout
  • Loading branch information
fstagni committed May 31, 2024
2 parents 3497e5f + e91e133 commit 39fc1bc
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 @@ -44,7 +44,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 39fc1bc

Please sign in to comment.