How to keep your data confidential with Active Record Encryption

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 2

  • @EmmetGibney
    @EmmetGibney 2 года назад +1

    In Rails guides it says not to commit your master key. Is it safe to store this in your environment variables on Heroku for example?

    • @alberto_almagro
      @alberto_almagro  2 года назад +2

      Hi Emmet! You are right, you should not commit your master key to keep it safe. As you say, a good alternative is to store it as an ENV variable with the key RAILS_MASTER_KEY, provided that you keep access to it safe. Other alternatives are Hashicorp Vault and AWS Secrets Manager.