[英]How can I store confidential S3 information for my dev env that is shared with production?
My dev bucket uses the same credentials as my production bucket. 我的开发存储桶使用与生产存储桶相同的凭据。
Since I am using Heroku, I have moved all these credentials into my Heroku Config. 自从我使用Heroku以来,我已经将所有这些凭据移到了我的Heroku Config中。 Which would work except for my development env since its on my local.
自从我的开发环境以来,这将起作用,因为它在我本地。
How can I store this information securely so that this data is not being seen on a public repo but is still accessible and instantiated to my local machine? 我如何安全地存储此信息,以使该数据不会在公共仓库中显示,但仍可被本地计算机访问并实例化?
Rails 4.1 can do this internally, but until then you might find these helpful: Rails 4.1可以在内部执行此操作,但是在此之前,您可能会发现以下帮助:
For info on 4.1, see the 'secrets.yml' section. 有关4.1的信息,请参见“ secrets.yml”部分。
http://edgeguides.rubyonrails.org/4_1_release_notes.html http://edgeguides.rubyonrails.org/4_1_release_notes.html
update: Appears I was mistaken about Rails 4.1. 更新:似乎我误认为了Rails 4.1。 While it has a secrets.yml file it's not encrypted.
尽管它具有secrets.yml文件,但未加密。 Wonder where I read that it was...
想知道我在哪里读的...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.