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

Use urllib encode to encode pg pass #3839

Merged
merged 6 commits into from
Aug 13, 2024
Merged

Conversation

conbrad
Copy link
Collaborator

@conbrad conbrad commented Aug 12, 2024

CrunchyDB generates password with special characters that end up being used in connection strings, this PR encodes them using https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote

Also adjusts the connection string referenced by alembic to escape % with %%. Pieced this together from issues here: sqlalchemy/alembic#1280 and here: mlflow/mlflow#1487

Test Links:

Landing Page
MoreCast
Percentile Calculator
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.31%. Comparing base (a8807f7) to head (72d9308).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3839   +/-   ##
=======================================
  Coverage   79.31%   79.31%           
=======================================
  Files         295      295           
  Lines       10874    10874           
  Branches      518      518           
=======================================
  Hits         8625     8625           
  Misses       2105     2105           
  Partials      144      144           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Aug 12, 2024

@conbrad conbrad requested review from dgboss and brettedw August 12, 2024 23:25
Copy link
Collaborator

@dgboss dgboss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It will be great to have this fixed!

@conbrad conbrad temporarily deployed to production August 12, 2024 23:50 Inactive
@conbrad conbrad merged commit 7e055ba into main Aug 13, 2024
28 checks passed
@conbrad conbrad deleted the task/urlencode-crunchy-pass branch August 13, 2024 00:00
dgboss pushed a commit that referenced this pull request Aug 14, 2024
CrunchyDB generates password with special characters that end up being used in connection strings, this PR encodes them using https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote

Also adjusts the connection string referenced by alembic to escape `%` with `%%`. Pieced this together from issues here: sqlalchemy/alembic#1280 and here: mlflow/mlflow#1487
vanislekahuna pushed a commit to vanislekahuna/wps that referenced this pull request Sep 19, 2024
CrunchyDB generates password with special characters that end up being used in connection strings, this PR encodes them using https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote

Also adjusts the connection string referenced by alembic to escape `%` with `%%`. Pieced this together from issues here: sqlalchemy/alembic#1280 and here: mlflow/mlflow#1487
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.

3 participants