~/talk

Get Your Insecure PostgreSQL Passwords to SCRAM!

Talkat PGConf NYC 2021 · 2021-12-02..12-03· [databases]
links:none on file
slides:none on file

Shows why PostgreSQL passwords must move to SCRAM and demonstrates the actual upgrade steps and failures avoided: building a SCRAM verifier with a 16 byte salt, using PBKDF2 and 4096 iterations, creating stored and server keys, exchanging client proof and server signature so secrets never travel, and adding TLS channel binding. Notes PostgreSQL 10/11/13/14 behavior, driver and libpq support, proxy (PgBouncer) implications, and that an on-the-spot upgrade to SCRAM-SHA-256 succeeds.

AI-written summary · about

  1. 0:00Intro
  2. 0:34aka "A Tale of Two Hippos"
  3. 0:45Guest Starring Blue Elephant
  4. 3:10How Do Passwords Work in PostgreSQL?
  5. 4:34PostgreSQL Plaintext Passwords
  6. 5:35Plaintext Password Authentication Flow
  7. 6:41Transport Layer Security
  8. 9:08PostgreSQL MD5 Password Authentication
  9. 9:53MD5 Authentication Flow
  10. 14:33Salted Challenge Response Authentication Mechanism
  11. 17:14Creating a Password For SCRAM
  12. 18:05Building a SCRAM Secret - DIGEST
  13. 18:34Building a SCRAM Secret - ITERATIONS
  14. 19:55Building a SCRAM Secret - SASLPrep the Password
  15. 20:48Building a SCRAM Secret - Generate the Salted Password
  16. 22:59Building a SCRAM Secret - SERVER KEY
  17. 23:25Building a SCRAM Secret - "Easy Button"
  18. 28:39SCRAM Authentication Flow: Generating Proof
  19. 29:28Recall: Client Key
  20. 30:59Client Signature
  21. 32:20SCRAM Authentication Flow: Server Verification
  22. 34:34Server Signature
  23. 35:23SCRAM Authentication Flow: Client Verification
  24. 37:09Case #1: Server "Claims" To Know Secret
  25. 38:01Case #2: Elephant-in-the-Middle Attack
  26. 38:58Channel Binding
  27. 41:57Upgrading to SCRAM
  28. 43:17Driver Support for 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.