Skip to content

Implement SCRAM-SHA-256 #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 19, 2022
Merged

Implement SCRAM-SHA-256 #76

merged 5 commits into from
Jun 19, 2022

Conversation

levkk
Copy link
Contributor

@levkk levkk commented Jun 19, 2022

Finally gave up and implemented (copy/pasted largely from rust-postgres) SCAM-SHA-256 server authentication. PG14 switch to SCRAM by default forced my hand, but this was long overdue for sure. On a more personal note, I don't think ironically that SASL is simple at all.

2022-06-19T01:33:54Z TRACE pgcat::server] Sending StartupMessage
[2022-06-19T01:33:54Z TRACE pgcat::server] Message: R
[2022-06-19T01:33:54Z TRACE pgcat::server] Auth: 10
[2022-06-19T01:33:54Z DEBUG pgcat::server] Starting SASL authentication
[2022-06-19T01:33:54Z DEBUG pgcat::server] Using SCRAM-SHA-256
[2022-06-19T01:33:54Z TRACE pgcat::server] Message: R
[2022-06-19T01:33:54Z TRACE pgcat::server] Auth: 11
[2022-06-19T01:33:54Z TRACE pgcat::server] Continuing SASL
[2022-06-19T01:33:54Z TRACE pgcat::server] Message: R
[2022-06-19T01:33:54Z TRACE pgcat::server] Auth: 12
[2022-06-19T01:33:54Z TRACE pgcat::server] Final SASL
[2022-06-19T01:33:54Z DEBUG pgcat::server] SASL authentication successful
[2022-06-19T01:33:54Z TRACE pgcat::server] Message: R
[2022-06-19T01:33:54Z TRACE pgcat::server] Auth: 0

@levkk levkk merged commit d412238 into main Jun 19, 2022
@levkk levkk deleted the levkk-scram branch June 19, 2022 01:36
jmeagher pushed a commit to jmeagher/pgcat that referenced this pull request Feb 17, 2023
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