【问题标题】:Difference between master.key and production.key and other {environment}.key files in railsrails 中 master.key 和 production.key 以及其他 {environment}.key 文件之间的区别
【发布时间】:2022-06-17 13:52:57
【问题描述】:

我在我的应用程序中使用 ActiveRecord 加密字段并使用以下命令生成凭据:rails credentials:edit --environment developmenttestproduction 相同)。

现在我有 4 个文件: config/credentials/development.key config/credentials/test.key config/credentials/production.key config/master.key

主密钥和所有环境密钥有什么区别?

【问题讨论】:

  • 一些很好的答案here

标签: ruby-on-rails encryption


【解决方案1】:

主密钥用于在所有环境中加密和解密凭据。环境密钥用于在各自的环境中加密和解密凭据。

【讨论】:

    猜你喜欢
    • 2012-01-28
    • 2013-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-07
    • 1970-01-01
    • 2012-12-04
    • 1970-01-01
    相关资源
    最近更新 更多