~/talk

Get Your Insecure PostgreSQL Passwords to SCRAM!

Talkat Percona Live 2022 · 2022-05-16..05-18· [security, databases]
links:none on file
slides:none on file

PostgreSQL stores passwords with SCRAM-SHA-256 using PBKDF2-style hashing (default iterations=4096 and a 16‑byte salt) so servers keep only stored and server keys instead of plaintext or MD5 hashes. Channel binding lands in newer releases and PostgreSQL 14 makes SCRAM the default; drivers can prehash and psql’s \password builds SCRAM secrets. Upgrades require setting password_encryption to scram-sha-256, rehashing user passwords (or forcing pg_hba.conf to SCRAM) and verifying TLS/channel binding.

AI-written summary · about

  1. 0:00Start
  2. 4:20Plaintext password authentication flow
  3. 10:08Does eavesdropping work?
  4. 12:38Salted Challenge Response Authentication Mechanism
  5. 14:11Creating a SCRAM secret
  6. 18:40Building a SCRAM secret -STORED KEY
  7. 20:19Building a SCRAM secret - SERVER KEY
  8. 21:52Do we care about eavesdropping?
  9. 25:16SCRAM authentication flow - setup
  10. 26:28Recall: CLIENT KEY
  11. 27:19CLIENT SIGNATURE
  12. 28:02SCRAM authentication flow - Generating client proof
  13. 30:40SERVER SIGNATURE
  14. 34:24Channel binding
  15. 36:01How to upgrade to use SCRAM
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.