~/talk

ActiveRecord::Encryption; Stop Hackers from...

Talkat RailsConf 2023 · 2023-04-24..04-26· [security, ruby-on-rails]
links:none on file
slides:none on file

GitHub adopts ActiveRecord::Encryption, implements a custom key provider that reads semicolon‑delimited base keying material from Vault, derives AES‑GCM‑256 keys salted by table and column plus current year to reduce nonce exhaustion, and monkey‑patches to a monkey‑patched encrypts API that only encrypts one column per call. A reusable transition migrates plain text and legacy encrypted rows; rollout uses feature flags and batches. Deterministic encryption is disabled; encrypted columns grow from about 5 to 15 in the first week after rollout.

AI-written summary · about

  1. 0:00ActiveRecord::Encryption intro
  2. 2:27Encrypting database columns
  3. 6:43Migrating encryption strategy
  4. 10:35Custom key provider
  5. 16:41Upgrading records
  6. 21:33Rollouts and feature flags
  7. 25:43Disabling compression
  8. 26:04Key takeaways
  9. 27:10Q&A
~/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.