• Arturo Herrero's avatar
    Encrypt application setting tokens · a1e4bc7c
    Arturo Herrero authored
    This is the plan to encrypt the plaintext tokens:
    
    First release (this commit):
      1. Create new encrypted fields in the database.
      2. Start populating new encrypted fields, read the encrypted fields or
         fallback to the plaintext fields.
      3. Backfill the data removing the plaintext fields to the encrypted fields.
    
    Second release:
      4. Remove the virtual attribute (created in step 2).
      5. Drop plaintext columns from the database (empty columns after step 3).
    a1e4bc7c
20191120115530_encrypt_plaintext_attributes_on_application_settings.rb 3.37 KB