Skip to content
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

Support for SCRAM Authentication #451

Closed
bernhardreiter opened this issue Aug 22, 2018 · 10 comments
Closed

Support for SCRAM Authentication #451

bernhardreiter opened this issue Aug 22, 2018 · 10 comments

Comments

@bernhardreiter
Copy link

It would be nice if pgx could support the SCRAM Authentication method offered by PostgreSQL
since version 10.

https://www.postgresql.org/docs/10/static/auth-methods.html#AUTH-PASSWORD

This method saves password in a more secure manner based on RFC7677, so that they are more safe
if the database gets copied from the server or found in a backup. According to https://pages.nist.gov/800-63-3/sp800-63b.html#sec5 that is recommended.

@jackc
Copy link
Owner

jackc commented Aug 25, 2018

I agree it'd be good to have, but it's not something I can tackle right now.

@bernhardreiter
Copy link
Author

@jackc still good that you signal agreement with the feature wish. Thanks for the reply. ;)

@kravietz
Copy link

kravietz commented Apr 8, 2019

SCRAM-SHA-256 is now the preferred authentication method from 10+ per Authentication Methods so not having it is a huge disadvantage.

@ptman
Copy link

ptman commented Apr 14, 2019

This is also something that lib/pq doesn't support and for which there are already patches for lib/pq, so maybe it wouldn't be too hard to port. See lib/pq#817

@davidfetter
Copy link

It's been merged into lib/pq. Bump :)

@jackc
Copy link
Owner

jackc commented Apr 17, 2019

Okay. Here it is: 5044e84

@jackc jackc closed this as completed Apr 17, 2019
@davidfetter
Copy link

Thanks!

@Neustradamus
Copy link

@bernhardreiter: Thanks a lot for all about SCRAM.

Linked to:

@bernhardreiter
Copy link
Author

@Neustradamus

@bernhardreiter: Thanks a lot for all about SCRAM.

The implementation was done by @jackc, he deserves all the credit. :)=
My contribution was to just open this issue.

@Neustradamus
Copy link

Ah sorry, thanks to @jackc for the commit and @bernhardreiter for the request!

Since PostgreSQL 13, there is SCRAM-SHA-256-PLUS, if you want to add :)

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

No branches or pull requests

6 participants