-
Notifications
You must be signed in to change notification settings - Fork 213
Mention knife-solo_data_bag gem in the docs #83
Comments
Check out the last couple comments on #22. I'd be happy to incorporate -Mat On Aug 7, 2012, at 5:42 PM, Fabrizio Regini notifications@github.com I've been working on a similar project lately, then I saw yours and I'm My idea is basically to assume an encryption key file to be present in root What do you think about it? — |
I put together a rough script to edit data bags. I was about to create a few knife commands for it but I came across knife-solo_data_bag. I'll probably stick to the script for now so I don't have to have two different solo.rb's. This is the script if anyone is interested: |
Why did you need two solo.rb's? -Mat On Nov 20, 2012, at 23:41, Aaron Jensen notifications@github.com wrote: I put together a rough script to edit data bags. I was about to create a This is the script if anyone is interested: https://gist.github.com/4123044 — |
Maybe I was doing something wrong but it uses your local solo.rb to find Also, it seemed like the resulting data bag was serialized incorrectly. It Aaron On Nov 21, 2012, at 7:37 AM, Mat Schaffer notifications@github.com wrote: Why did you need two solo.rb's? -Mat On Nov 20, 2012, at 23:41, Aaron Jensen notifications@github.com wrote: I put together a rough script to edit data bags. I was about to create a This is the script if anyone is interested: https://gist.github.com/4123044 — — |
Hrm... interesting. Thanks for the info. I've actually be wondering if we If you're interested in helping out ping me on #chet sometime! On Wed, Nov 21, 2012 at 10:51 AM, Aaron Jensen notifications@github.comwrote:
|
I see currently no way of working with encrypted databags in a chef 11 solo environment since https://github.com/thbishop/knife-solo_data_bag doesn't work anymore (due to the rewrites in chef11). |
Really? I have integration tests on that that have been passing. We don't specify a chef version in those so it should be using the latest. Guess it's time to look for some false positives. |
nevermind...the error was another one. sorry for the confusion. |
hmm having trouble getting decryption to happen. i can see the key and data_bags rsync'ed successfully. i was able to use knife-solo_data_bag to create and edit the data bags. all the non-encrypted values in my data_bags are accessible from the data_bag and data_bag_item resources in my recipes. but when i try to access an encrypted data_bag_item it does not give me the decrypted value
is this a knife-solo limitation? |
@sbimikesmullin which Chef version do you have in the node? That data bag encrypted in the new format which requires at least v10.18.0 to decrypt. knife-solo only uploads the data bags and key and passes options to chef-solo. So the problem is with the encryption or compatibility with chef-solo. |
ah thx. it turns out the from IRC:
|
Btw, I'm with Mat in that knife-solo_data_bag is much better as a separate project. Pull requests for linking to it in the documentation are warmly welcome. =) |
knife-solo_data_bag should handle any data bag related stuff but we should update the docs to tell people how to do that.
(original report)
I've been working on a similar project lately, then I saw yours and I'm evaluating to switch and possibly contribute to it. The main difference I see is the lack of a built-in utility to manipulate encrypted data bags (encrypt and decrypt them). If there's any plan for this feature to be introduced, I may provide a possible solution in a pull request.
My idea is basically to assume an encryption key file to be present in root or data_bags folder, and encrypt any *.rb file in data_bags folder to the corresponding json file (and vice versa for decryption).
What do you think about it?
The text was updated successfully, but these errors were encountered: