Repository navigation
Conversation
|
I realise this will probably need some extra work for Cloudflare on the hash/digest method. |
4fd011e to
a92f470
Compare
4a0fe34 to
3a43815
Compare
|
@porsager Any thoughts on adding support for channel binding (SCRAM-SHA-256-PLUS) — based on this PR or otherwise? node-postgres merged this a while back: It's currently behind a custom config flag there, but it would be nicer to support |
|
Thanks! This is part of v4 (06cf284), so I am closing it here. The changelog has the details: https://github.com/porsager/postgres/blob/master/CHANGELOG.md |
Hello. I hope you'll consider this patch, which adds support for SCRAM-SHA-256-PLUS authentication.
SCRAM-SHA-256-PLUS in Postgres enables
tls-server-end-pointchannel binding, where the client sends the server a hash of the certificate it received as part of the TLS handshake. This prevents some kinds of MITM attacks where the attacker obtains a certificate that appears valid for the server, but is not actually the server's.So far I've tested it working against Neon (who support SCRAM-SHA-256-PLUS) and Supabase (who don't).
Feel free to make any changes you think appropriate.