Skip to content

Support SCRAM authentication for PostgreSQL

Dear GitLab team,

In first, I wish you a Happy New Year!

Example with PostgreSQL:

  • SCRAM-SHA-256 has been added in PostgreSQL 10
  • SCRAM-SHA-256-PLUS variant (with TLS Binding) has been added in PostgreSQL 13
  • SCRAM-SHA-256 is selected by default in PostgreSQL 14

Note: There is not only "256", please look the list in the next link.

Can you look to add?

Thanks in advance.

Linked to (included: a big list with supported libs/softs):

Linked to PostgreSQL:


SCRAM

Can you add supports of :

  • SCRAM-SHA-1
  • SCRAM-SHA-1-PLUS
  • SCRAM-SHA-256
  • SCRAM-SHA-256-PLUS
  • SCRAM-SHA-512
  • SCRAM-SHA-512-PLUS
  • SCRAM-SHA3-512
  • SCRAM-SHA3-512-PLUS

You can add too:

  • SCRAM-SHA-224
  • SCRAM-SHA-224-PLUS
  • SCRAM-SHA-384
  • SCRAM-SHA-384-PLUS

"When using the SASL SCRAM mechanism, the SCRAM-SHA-256-PLUS variant SHOULD be preferred over the SCRAM-SHA-256 variant, and SHA-256 variants [RFC7677] SHOULD be preferred over SHA-1 variants [RFC5802]".

SCRAM-SHA-1(-PLUS):

SCRAM-SHA-256(-PLUS):

SCRAM-SHA-512(-PLUS):

SCRAM-SHA3-512(-PLUS):

SCRAM BIS: Salted Challenge Response Authentication Mechanism (SCRAM) SASL and GSS-API Mechanisms:

-PLUS variants:

IMAP:

LDAP:

  • RFC5803: Lightweight Directory Access Protocol (LDAP) Schema for Storing Salted: Challenge Response Authentication Mechanism (SCRAM) Secrets: https://tools.ietf.org/html/rfc5803

HTTP:

JMAP:

2FA:

IANA:

Edited by Balasankar 'Balu' C