[chef] Re: Re: Handling of encrypted data bag keys


Chronological Thread 
  • From: Thom May < >
  • To:
  • Subject: [chef] Re: Re: Handling of encrypted data bag keys
  • Date: Thu, 11 Apr 2013 13:13:49 +0100

thanks, but that's not really the problem I want to solve. 


On Thu, Apr 11, 2013 at 12:49 PM, Sachin Sagar Rai < " target="_blank"> > wrote:
You can put the following line in knife.rb file


encrypted_data_bag_secret "#{home_dir}/.chef/encrypted_data_bag_secret"


Now, whenever you bootstrap the node on ec2, it will be copied over the node automatically.

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.com
Sent with Sparrow

On Thursday, April 11, 2013 at 4:45 PM, Thom May wrote:

Hey,
how are people handling the distribution of encryption keys for data bags? It seems unfortunate to have to copy out the encryption key at bootstrap time, but having it as a cookbook file is daft.
So then I was thinking I'd have the key on a private s3 bucket, which could then be accessed with signed urls. 
But then I thought, if we're doing that, why bother putting the file on disk at all? Just download the contents at the start of the chef run, use it for the duration, and let the key go away when the chef process dies. 
Am I missing something?
-T





Archive powered by MHonArc 2.6.16.

§