Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Feature/encrypted data bags #82

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

kamilbednarz
Copy link

Hey @coderanger ,

It's another attempt to get the Encrypted Data bag items support merged in. 💯

I updated my ancient (4-year old) branch with the latest upstream master code, so should be easy to merge.

Also, thanks to @fpedrini we also have a few additions here:

  • Python 3 support
  • ability to pass encryption key as string to ChefApi

FYI: It's an enhanced clone of #27

Let me know what do you think and if you still maintain this repo.

All the best,
-Kamil

kamilbednarz and others added 30 commits January 1, 2014 11:57
@coderanger
Copy link
Owner

"maintain" is a relative term. Given that encrypted data bags are very bad and no one should use them, I'm not really chomping at the bit to spend time supporting them, but I'll look when I get a chance.

@kamilbednarz
Copy link
Author

Thanks, LMK if I can help somehow.

if os.path.exists(self.secret_file):
self.encryption_key = open(self.secret_file).read().strip()
if secret_key is not None:
if encryption_key is not None:
Copy link

@code-haven code-haven Jan 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should check self.encryption_key instead - as encryption_key is not defined

@code-haven
Copy link

@kamilbednarz Thanks for this. We are using the changes in this PR in a local fork and it works just fine!

@andreibelov
Copy link

Any updates on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants