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

Quote password in the PostgreSQL string #455

Closed
pt-cervest opened this issue Aug 31, 2022 · 0 comments
Closed

Quote password in the PostgreSQL string #455

pt-cervest opened this issue Aug 31, 2022 · 0 comments

Comments

@pt-cervest
Copy link
Contributor

Hello!

First of all, thanks a lot for providing this awesome lib. Really appreciate it! 🙏🏽

In my recent attempt to deploy the API on k8s, I encountered a Postgres error and the reason being the password containing special characters. A simple fix is to import from urllib.parse import quote and wrap quote(self.postgres_pass) in stac_fastapi/pgstac/stac_fastapi/pgstac/config.py.

I'm happy to make a subsequent PR - if folks here think it's valuable.

Cheers,
Prayag

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

No branches or pull requests

1 participant