Skip to content
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
06c69d9
Extend ChefAPI with the secret_file option
kamilbednarz Oct 17, 2013
9e5a2f2
Add encryption exceptions
kamilbednarz Oct 17, 2013
5fc609d
Add a class for encrypted data bag item
Oct 17, 2013
ee1035c
Add data bag decryptor for version 2
kamilbednarz Oct 22, 2013
97c6372
Add Encryptor version 1
kamilbednarz Nov 25, 2013
2aad60a
Add support for choosing encryption version
kamilbednarz Dec 31, 2013
98c0944
Add Encryptor version 2
kamilbednarz Dec 31, 2013
e8cc248
Remove reading secret_file knife config from knife.rb
kamilbednarz Jan 1, 2014
86b8761
Update encryption get_version method to support both string and int p…
kamilbednarz Jan 1, 2014
61a4629
Add EncryptedDataBagItem to chef module
kamilbednarz Jan 1, 2014
1e42daa
Add test for reading data bag encryption version from config file
kamilbednarz Jan 1, 2014
cda71f0
Add specs for EncryptedDataBagItem class
kamilbednarz Jan 1, 2014
61e039a
Fix issue with failing Api test
kamilbednarz Jan 1, 2014
11ecdf7
Fix paths to files in specs for EncryptedDataBagItem
kamilbednarz Jan 1, 2014
9863d29
Remove trash file
kamilbednarz Jan 1, 2014
8468559
Reworked AES implementation - use ctypes instead of m2crypto
kamilbednarz Jan 3, 2014
08980f5
Refactored aes cipher class
kamilbednarz Jan 7, 2014
8add770
Replaced encrypted_data_bag_item AES encryption method to AES256Cipher
kamilbednarz Jan 7, 2014
ef9962a
Replace direct usage of simplejson with the one from chef.utils
kamilbednarz Jan 7, 2014
347d9ad
Import needed class instead of the whole module
kamilbednarz Jan 11, 2014
30621ed
Removed stripping padding chars in decrypted strings
kamilbednarz Jan 11, 2014
6157360
Use itertools for HMAC validation
kamilbednarz Jan 12, 2014
a019733
Add error messages for decryption exceptions
kamilbednarz Jan 12, 2014
4a17b79
AES256Cipher inherits from object
kamilbednarz Jan 12, 2014
a40bb6f
Remove manuall deleting encryptors/decryptors
kamilbednarz Jan 12, 2014
8f792a4
Refactor HMAC validation
kamilbednarz Jan 12, 2014
12f2969
encrypted_data_bag_item module refactored. Removed nested classes
kamilbednarz Jan 12, 2014
5a94382
Py3 support for encrypted databags code
fpedrini Sep 4, 2018
1801c55
Add docs for encrypted_databag
fpedrini Sep 4, 2018
ef67bc0
Add ability to pass encryption key as string to ChefApi
fpedrini Sep 4, 2018
4374d70
Merge branch 'feature/encrypted-data-bags' into encrypted_databags
kamilbednarz Sep 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions chef/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Exception hierarchy for chef
# Copyright (c) 2010 Noah Kantrowitz <noah@coderanger.net>


class ChefError(Exception):
"""Top-level Chef error."""


class ChefServerError(ChefError):
"""An error from a Chef server. May include a HTTP response code."""

Expand All @@ -23,11 +21,9 @@ def from_error(message, code=None):
}.get(code, ChefServerError)
return cls(message, code)


class ChefServerNotFoundError(ChefServerError):
"""A 404 Not Found server error."""


class ChefAPIVersionError(ChefError):
"""An incompatible API version error"""

Expand All @@ -41,4 +37,3 @@ def __init__(self, version):

class ChefDecryptionError(ChefError):
"""Error decrypting data bag value. Most likely the provided key is incorrect"""