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

If my password contains '{' or '}' it can't authenticate #1064

Open
aaii-z opened this issue Sep 7, 2024 · 0 comments
Open

If my password contains '{' or '}' it can't authenticate #1064

aaii-z opened this issue Sep 7, 2024 · 0 comments

Comments

@aaii-z
Copy link

aaii-z commented Sep 7, 2024

What did you do?
I tried to deploy postgres-exporter to connect to my postgres db.

What did you expect to see?
I expected to connect with that password also I tried to change { to %7D but didn't work too.
I used this environment for password POSTGRES_PASSWORD.
And for solving that problem I changed my postgres password and then It authenticated successfully.

  • Also I guess this problem is about when you want create DATA_SOURCE_NAME by merging these environment togethere: DATA_SOURCE_URI and DATA_SOURCE_USER and DATA_SOURCE_PASSWORD .

What did you see instead? Under which circumstances?
It didn't connect and I faced to that log I sent.

  • postgres_exporter version:

    postgres-exporter:v0.15.0

  • PostgreSQL version:

    15.3

  • Logs:

postgres_exporter  | ts=2024-09-07T13:55:48.449Z caller=collector.go:176 level=error msg="Error opening connection to database" err="error querying postgresql version: pq: password authentication failed for user \"postgres\""

I like to work on this bug and contribute to this project but I don't know from where I should search for this bug, maybe I need some help about it.

@aaii-z aaii-z changed the title If my password contains '{ If my password contains '{' or '}' it can't authenticate Sep 7, 2024
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