You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2026-10-23 12:08:57 +03:00
* Redact DSN secrets from logged errors Errors from the URL parser and the pq driver quote the connection string they were given, password included, and were logged verbatim alongside the already-redacted dsn field. Add config.RedactError to strip the password (including encoded forms and fragments of malformed key=value values) from such errors, and apply it at every log site that handles a DSN error in both the exporter and collector paths. Stop dsnFromURL and parseFingerprint from echoing their input. Fixes #1408 Signed-off-by: Joe Adams <github@joeadams.io> * Remove copyright dates Signed-off-by: Joe Adams <github@joeadams.io> * Update redact for newline support Signed-off-by: Joe Adams <github@joeadams.io> --------- Signed-off-by: Joe Adams <github@joeadams.io>