berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
231 stars 84 forks source link

allow data bag item attributes encryption (only v1) #263

Closed ghost closed 9 years ago

ghost commented 10 years ago

Allows creation of encrypted data bag items; at the moment only v1 is supported.

usage:

data_bag = Ridley.new(config).data_bag.find(data_bag_name)
item = data_bag.item.new(id:  'my_id', password: 'sekret')
item.encrypt_attributes
item.save

Thanks, Maciek

ivey commented 10 years ago

Mixed feelings here. Very useful feature, but I hate maintaining crypto code. selfie-0

Will let others weigh in.

sethvargo commented 10 years ago

Seems like this might be a good candidate for a plugin (like we did with Ridley connectors).

I'm also fairly certain the logic doesn't need to be this complex.

reset commented 10 years ago

@maciety really appreciate the PR.

This should definitely target V2 of data bags. We can definitely "fallback" for V1 but Ridley should work out of the box with the latest Chef Server.

reset commented 9 years ago

Closing this for now: this needs to target V2 of data bags