~/talk

You Must Encrypt Database Data! How Do We Do It?

TalkinFrenchat PG Day France 2021 · 2021-06-16..06-17· [databases]
links:none on file
slides:none on file

Describes implementing column-level symmetric encryption in PostgreSQL using pgcrypto with PGP_SYM_ENCRYPT/DECRYPT, storing ciphertext in a private table and exposing decrypted columns via a view that reads a per-connection key set through pg_settings. Uses triggers to encrypt on insert/update and a custom uniqueness check that decrypts rows to enforce constraints; no application changes or extra services required, but applies to small datasets (~2,000 rows) and loses indexing/performance and can produce broken views if the wrong key is used.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Why encrypt database data
  3. 3:14Encryption types
  4. 5:01Disk encryption
  5. 6:45Transparent encryption
  6. 8:07Column encryption
  7. 9:09Application encryption
  8. 10:33Browser encryption
  9. 10:55Chosen solution and tools
  10. 12:21Views and triggers
  11. 13:44Secret key transfer
  12. 15:30Uniqueness constraints
  13. 16:35Method advantages
  14. 17:36Issues and limits
  15. 18:16Performance and Q&A
  16. 19:41Secure communications
  17. 20:46Key storage
  18. 21:11Alternatives and tests
  19. 21:52Data validation
  20. 22:17Conclusion
~/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.