SCRAM authentication
SCRAM-SHA-256 SASL password authentication, channel binding, and making it the default password_encryption. Introduced in PostgreSQL 10.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · worked-on · improved · moderate
- PostgreSQL 17 · worked-on · improved · moderate
- PostgreSQL 16 · worked-on · improved · moderate
Threads
- libpq: SCRAM client proofs serialize across threads on OpenSSL 3 (re-init of the HMAC per PBKDF2 iteration)
- [PATCH] Fix SASLprep validation after NFKC normalization
- [PATCH] Fix incorrect Unicode code point in saslprep.c comment
- new connection establishment (pgbench --connect) slow with pgbouncer due to libpq/OpenSSL global thread contention
- Tighten SCRAM iteration parsing and bound libpq PBKDF2 work
- Non-compliant SASLprep implementation for ASCII characters
- RFC 9266: Channel Bindings for TLS 1.3 support
- Channel binding for post-quantum cryptography
- BUG #19092: scram_free() will free on address which was not malloc()-ed in pg_scram_mech
- BUG #19050: psql: could not find digest for NID UNDEF
- fix notes about password encryption in pg_authid docs
- Fix infinite loop from setting scram_iterations to INT_MAX
- Optimize scram_SaltedPassword performance
- Outdated comment on scram_build_secret
- [PATCH] Fix small overread during SASLprep
- Reg: Alternate way of hashing database role passwords
- BUG #18388: Server freezes after AuthenticationSASLFinal message
- scram_iterations is undocumented GUC_REPORT
- User functions for building SCRAM secrets
- lost status 'STATUS_EOF' for authentication when using 'MD5' or 'scram-sha-256'
- [PATCH] Add CHECK_FOR_INTERRUPTS in scram_SaltedPassword loop.
- Docs: Encourage strong server verification with SCRAM
- Raising the SCRAM iteration count
- BUG #17760: SCRAM authentication fails with "modern" (rsassaPss signature) server certificate
- Refactor SCRAM code to dynamically handle hash type and key length
- BUG #17719: scram-sha-256 is not working on PostgreSQL 11.18
- Remove SHA256_HMAC_B from scram-common.h
- Support tls-exporter as channel binding for TLSv1.3
- BUG #17593: min key size 112 bits from FIPS SP800-131 requirement for HMAC-SHA raises exception in SCRAM-SHA-256
- RFC 9266: Channel Bindings for TLS 1.3 support
- Should we really recommend "-A md5 or -A password"?
- Improve error handling of HMAC computations and SCRAM
- scram-sha-256 authentication
- Missing compiled default for channel_binding param from PQconndefaults
- scram-sha-256 broken with FIPS and OpenSSL 1.0.2
- BUG #16736: SCRAM authentication is not supported by this driver
- pgsql: Change SHA2 implementation based on OpenSSL to use EVP digest ro
- password_encryption default
- BUG #16239: It is not possible to upgrade the password from md5 to SCRAM
- use of the term "verifier" with SCRAM
- SSL tests failing for channel_binding with OpenSSL <= 1.0.1
- Add "password_protocol" connection parameter to libpq
- some SCRAM read_any_attr() confusion
- Possible to store invalid SCRAM-SHA-256 Passwords
- change password_encryption default to scram-sha-256?
- Channel binding
- Defaulting to password_encryption = scram-sha-256
- BUG #15367: Crash in pg_fe_scram_free when using foreign tables
- Negotiating the SCRAM channel binding type
- Handling better supported channel binding types for SSL implementations
- Supporting tls-server-end-point as SCRAM channel binding for OpenSSL 1.0.0 and 1.0.1
- Update encryption options doc for SCRAM-SHA-256
- BUG #15035: scram-sha-256 blocks all logins
- pg_hba_file_rules: "scram-sha256" instead of "scram-sha-256"
- pgsql: Implement channel binding tls-server-end-point for SCRAM
- Channel binding support for SCRAM-SHA-256
- Allowing SSL connection of v11 client to v10 server with SCRAM channel binding
- Re: SCRAM in the PG 10 release notes
- SCRAM protocol documentation
- Authentication mechanisms categorization
- SCRAM salt length
- SCRAM auth and Pgpool-II
- Authentification method on client side checking
- [PATCH] Fixed malformed error message on malformed SCRAM message.
- Server ignores contents of SASLInitialResponse
- SCRAM RFC
- Some thoughts about SCRAM implementation
- Removal of plaintext password type references
- BUG #14661: authentication behavior(SCRAM-MD5)
- password_encryption, default and 'plain' support
- scram and \password
- Implementation of SASLprep for SCRAM-SHA-256