Commit Graph

24 Commits

Author SHA1 Message Date
William Rubel
4c6f08d463 Update kms and lambda to work with terraform 2019-02-16 09:27:23 -06:00
Jon Beilke
181e9690b8 need os for checking server mode env variable 2018-10-08 08:38:49 -05:00
Jon Beilke
c2595b2eef cant manipulate time in server mode tests 2018-10-08 08:29:21 -05:00
Jon Beilke
76baab74ad missing tzlocal 2018-10-06 01:33:02 -05:00
Jon Beilke
9b25d56a35 need datetime for tests since thats what boto3 returns and add default for PendingWindowInDays 2018-10-06 01:18:26 -05:00
Jon Beilke
59c233f431 avoid needing to import datetime and dealing with timezone vs naive datetimes in tests 2018-10-06 00:33:23 -05:00
Jon Beilke
21c8914efe include pending days input for schedule key deletion and update tests since boto client returns DeletionDate as datetime 2018-10-06 00:13:47 -05:00
Jon Beilke
6277983e3f missed some KeyMetadata and need to transform datetime for testing 2018-10-05 23:48:19 -05:00
Jon Beilke
f596069dab use initial KeyMetadata for identifying keys in KMS tests 2018-10-05 23:35:34 -05:00
Jon Beilke
786b9ca519 need region for kms client 2018-10-05 22:17:48 -05:00
Jon Beilke
a29daf411b fix invalid variables used in kms testing 2018-10-05 21:56:32 -05:00
Jon Beilke
7e96203020 add freezegun and test DeletionDate for chedule_key_deletion 2018-10-05 16:21:16 -05:00
Jon Beilke
60ec840eef add disable_key, enable_key, cancel_key_deletion, and schedule_key_deletion actions to KMS endpoint 2018-10-05 15:55:47 -05:00
Kai Xia(夏恺)
9e1a233549 fix KeyError in delete_alias in the KmsBackend. (#1359)
* fix KeyError in delete_alias in the KmsBackend.

If there're several aliases in the backend, previously we will bump into
a KeyError here.

Signed-off-by: Kai Xia <xiaket@gmail.com>

* add doc to make travis try one more time.

Signed-off-by: Kai Xia <xiaket@gmail.com>
a

* add another key and alias before the deletion of an alias.

This was done to make sure that we can correctly handle the deletion
when there are more than one alias defined.

Signed-off-by: Kai Xia <xiaket@gmail.com>
2017-11-27 10:36:25 +00:00
Steve Pulec
09a4d177f5 Add kms boto3 test. 2017-03-14 23:42:52 -04:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Jack Danger
53fbd7dca0 KMS encryption under Python 3 (#826)
This upgrades the KMS encrypt and decrypt endpoints to work
under both Python 2 and 3
2017-02-09 22:36:24 -05:00
Jack Danger Canty
ea24376131 Implementing KMS encrypt/decrypt
This adds support for testing the /encrypt and /decrypt endpoints
of Amazon KMS
2016-10-14 01:04:14 -07:00
rocky4570fft
3a7fec4032 Add ARN and Alias functionality to KMS 2016-10-03 01:33:59 +11:00
Andrew Garrett
136f622b3b Add KMS policy actions
Adds the following to the KMS service
* PutKeyPolicy
* GetKeyPolicy
* ListKeyPolicies

Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2015-11-25 19:50:55 +00:00
Andrew Garrett
f1566cecf4 Add support for KMS key rotation operations
This adds support for the following KMS endpoints:

* EnableKeyRotation
* DisableKeyRotation
* GetKeyRotationStatus

Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2015-11-24 23:44:55 +00:00
Simon-Pierre Gingras
6b501a39a7 KMS: aliases 2015-07-23 10:56:33 -04:00
Steve Pulec
70aafc1fd3 Add basic KMS key endpoints. 2015-06-30 05:44:39 -04:00