Skip to content

fix: handle unescaped userinfo in postgres url #11396

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

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Jan 3, 2024

Closes #11388

I believe my attempt to parse and escape the password from the userinfo is valid and safe, but please feel free to speak up if there's something I'm missing that makes this a bad idea. The escaping is only triggered on a parse userinfo failure, so it will pass along the string otherwise.

@f0ssel f0ssel requested review from coadler and Emyrk January 3, 2024 20:42
@f0ssel f0ssel merged commit 5981abd into main Jan 4, 2024
@f0ssel f0ssel deleted the f0ssel/user-info branch January 4, 2024 13:46
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgres connection fails to escape password.
2 participants