postgres_exporter icon indicating copy to clipboard operation
postgres_exporter copied to clipboard

Passwords with blanks are not working

Open ebini opened this issue 5 years ago • 1 comments

Trying to use a password (sentence with multiple blanks)

using wrouesnel/postgres_exporter:v0.8.0

Tried is with envirnoment variable, passwordfile or as datasource name, also with %20 instead of blanks. (changed username and replaced words) This try was with DATA_SOURCE_NAME replaced blanks with %20

malformed dsn \"dbname=changed host=changed.com password=foo\\\\ test\\\\ foo\\\\ test\\\\ foo\\\\ hello port=5431 user=abcd123\"" source="postgres_exporter.go:1474"

Thanks

ebini avatar Apr 29 '20 09:04 ebini

The following commit shows that blanks in password is not correctly handled: https://github.com/prometheus-community/postgres_exporter/commit/4716e767dca2e2c24372fda5918c18a1494166c2

pgiraud avatar Jul 29 '22 07:07 pgiraud