Skip to content

Commit 0d815dd

Browse files
author
Philip Hurst
committed
added comment describing MD5/SCRAM requirements
1 parent c76ce14 commit 0d815dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/pgbouncer/reconcile.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ func Secret(ctx context.Context,
5555
initialize.Map(&outSecret.Data)
5656

5757
// Use the existing password and verifier. Generate when one is missing.
58+
// PgBouncer can login to PostgreSQL using either MD5 or SCRAM-SHA-256.
59+
// When using MD5, the (hashed) verifier can be stored in PgBouncer's
60+
// authentication file. When using SCRAM, the plaintext password must be
61+
// stored.
62+
// - https://www.pgbouncer.org/config.html#authentication-file-format
63+
// - https://github.com/pgbouncer/pgbouncer/issues/508#issuecomment-713339834
5864
// NOTE(cbandy): We don't have a function to compare a plaintext password
5965
// to a SCRAM verifier.
6066
password := string(inSecret.Data[passwordSecretKey])

0 commit comments

Comments
 (0)