Skip to content

Conversation

@conradludgate
Copy link
Contributor

Postgres supports "channel bindings" for SCRAM-SHA-256 authentication. This prevents certain MITM attacks. This authentication is known as "SCRAM-SHA-256-PLUS".

Postgres supports the "tls-server-end-point" channel binding form which is derived by hashing the raw bytes of the first certificate sent by the server in the TLS handshake.

Postgres also supports "requiring" channel binding. This additionally prevents a MITM sending cleartext the chosen authentication mechanism.

Related to #1145

@Neustradamus

This comment was marked as spam.

@arp242 arp242 added new-feature needs-test Needs a test before it can be merged labels Dec 31, 2025
@arp242 arp242 force-pushed the conrad/scram-sha-256-plus branch from cff584e to f316640 Compare January 3, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-test Needs a test before it can be merged new-feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants