GitHub
GitHub logoGitHub · Feature trail

ActiveRecord column encryption migration

2 posts · Oct 2022 – Nov 2022

What this trail covers

This feature thread tracks the evolution of encrypting sensitive database columns using ActiveRecord. Initially, the focus was on designing a paved path for easy-to-use column encryption. This post details the migration strategy for converting existing plaintext or previously encrypted data to the new ActiveRecord encryption standard, including handling key rotation and the use of a previous encryptor strategy and feature flags for safe rollout. It also introduces the MaintenanceTasks gem for better management.

All GitHub trails