From Cleartext to Encrypted: Adding Data at Rest Encryption to Apache Kudu
summary
Adds file‑level encryption to Kudu using AES-CTR with zero IV for random access, stores each file’s ephemeral file key in a 64‑byte preamble encrypted by a server key, and protects server keys by offloading cluster key operations to Ranger/Hadoop KMS (HSM-compatible) so Kudu never sees the cluster key. Handles hole‑punching by treating all‑zero blocks as plaintext, adapts tools like kudu_wal_dump to request KMS unwraps, ships in Kudu 1.16/1.17 and runs in production.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 1:14What is Apache Kudu
- 4:05Encryption challenges and limitations
- 8:17Encryption modes and design choices
- 13:36File encryption and key hierarchy
- 20:58Key management and server startup
- 23:26Handling hole punching in encrypted files
- 26:41Debugging encrypted clusters
- 28:08Migrating to encrypted clusters
- 30:35Implementation timeline and community contributions
- 31:58Key lessons and takeaways
- 37:14Q&A and open gaps
