Skip to content

Add SCRAM-SHA-256-PLUS support#776

Open
Snehil-Shah wants to merge 2 commits into
elixir-ecto:masterfrom
Snehil-Shah:channel-binding
Open

Add SCRAM-SHA-256-PLUS support#776
Snehil-Shah wants to merge 2 commits into
elixir-ecto:masterfrom
Snehil-Shah:channel-binding

Conversation

@Snehil-Shah

Copy link
Copy Markdown
Contributor

This adds channel binding support for SCRAM auth handshake, enabling better security with servers that support SCRAM-SHA-256-PLUS.

Also adds a channel_binding knob with three modes: :prefer, :require, and :disable. (all self-explanatory)

I tested the flow locally on PG 16 with SSL enabled and SCRAM auth (so server advertises SCRAM-SHA-256-PLUS) in all three of the above modes, works as expected.

Proposal: https://groups.google.com/g/elixir-ecto/c/Flxp0Krz6hY

Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant