简体   繁体   English

如何为我的开发环境存储与生产共享的机密S3信息?

[英]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.

相关问题 如何从本地开发应用程序引用S3存储桶中的图像? - How do I reference images in my S3 bucket from local dev app? 如果它在生产环境中启动,我怎么能运行Rack :: Static? - how can I run Rack::Static only if it starting in production env? 如何在DreamHost共享服务器上将RAILS_ENV设置为“Production”? - How do I set RAILS_ENV to 'Production' on a DreamHost shared server? Rails 3和Paperclip-我可以在S3或本地存储图像吗? - Rails 3 & Paperclip - Can I store images both on S3 & locally? 如何在上传到 S3 之前临时存储(缓存)图像? - How can I temporarily store (cache) images before uploading to S3? Rails 3 Devise或Authlogic-神秘的生产环境看不到宝石? 在Dev上工作 - Rails 3 Devise or Authlogic - Production Env Mysteriously Can't See Gem? Works on Dev 如何为所有后续rake命令将RAILS_ENV设置为生产? - How can I set RAILS_ENV to production for all subsequent rake commands? 如何创建Rails设置,在其中可以拥有JavaScript库的开发和生产版本? - How do I create a rails setup where I can have a dev and production version of a javascript library? 我怎样才能得到Rails.env.production的等价物? 在application.js中 - How can I get the equivalent of Rails.env.production? in application.js 如何使用Rails将图片从Amazon s3存储桶获取到本地系统? - How can I take image from the amazon s3 bucket to my local system using rails?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM