Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLA-368: clean the DSN when logging #17

Merged
merged 1 commit into from
Jan 10, 2023
Merged

PLA-368: clean the DSN when logging #17

merged 1 commit into from
Jan 10, 2023

Conversation

JamesReate
Copy link
Member

Proposed Changes

  • add function to clean the DSN password when logging it with tests

Impacted Packages

Caveats

@JamesReate JamesReate requested a review from a team as a code owner January 10, 2023 02:58
@linear
Copy link

linear bot commented Jan 10, 2023

PLA-368 Don't log the pwd in connection string upon database error & migrate to shared library

The database wrapper dumps an error containing the connection string, and in particular the database password, when connecting to Postgres fails.

It's helpful to see if the connection is misconfigured, but is there any way to mask out the password?

Acceptance:

  • mask out the password when logging connection string in shared library code
  • review all repos that use the database, and move them to use share library

@JamesReate JamesReate merged commit d8a91f3 into main Jan 10, 2023
@JamesReate JamesReate deleted the clean-dsn branch January 10, 2023 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant