Skip to content

Commit

Permalink
Merge pull request #461 from MichaelSasser/bugfix/#460-stop-logger-fr…
Browse files Browse the repository at this point in the history
…om-logging-db-password

Don't log the database password for synapse in debug mode
  • Loading branch information
MichaelSasser authored Dec 16, 2022
2 parents f28d626 + 9a88211 commit b469524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion matrixctl/handlers/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def secrets_filter(tree: dict[str, str], key: str) -> t.Any:
None
"""
if key in "token":
if key in {"token", "synapse_password"}:
return f"<redacted length={len(tree[key])}>"
return tree[key]

Expand Down
1 change: 1 addition & 0 deletions news/460.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure MatrixCtl does not log the database password for synapse in debug mode

0 comments on commit b469524

Please sign in to comment.