~/talk

Protect Your PostgreSQL Passwords: How SCRAM Works & Why You Need It

Talkat PGCon 2020 · 2020-05-26..05-29· [security, databases]
links:none on file
slides:none on file

Explains how PostgreSQL replaces MD5/plaintext with scram-sha-256: server stores a salted verifier (salt + 4096 PBKDF2-like iterations), plus a stored_key and server_key so client and server prove knowledge of the password without ever sending it. Shows attack examples where pg_dump or logs leak MD5 hashes, details the SCRAM exchange and channel binding to stop TLS MITM, and gives upgrade steps: set password_encryption = scram-sha-256, regenerate verifiers (psql \password or client-side), then switch pg_hba to scram on PostgreSQL 10+ (13 can require channel binding).

AI-written summary · about

  1. 0:00Introduction
  2. 1:02About the speaker
  3. 2:30Understanding Postgres logins
  4. 3:28Insecure authentication
  5. 6:11Securing connections with TLS
  6. 8:57MD5 authentication
  7. 11:14Weaknesses of MD5
  8. 13:40Introduction to SCRAM
  9. 15:22Creating a SCRAM verifier
  10. 17:04Normalizing passwords
  11. 19:27Generating salted passwords
  12. 21:09Building the stored key
  13. 23:10Building the server key
  14. 25:09SCRAM authentication flow
  15. 30:13Client and server proofs
  16. 34:33SCRAM security benefits
  17. 35:54Preventing man-in-the-middle
  18. 40:07Upgrading to SCRAM
  19. 42:36Conclusion
  20. 44:55Q&A Session
  21. 50:20IRC Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.