Commit Graph

34 Commits

Author SHA1 Message Date
James Bungard
796dd71c0c Platform independent KMS timestamp generation (#2193)
* Platform independent KMS timestamp generation

Fixes #2192

* Switch to moto.core.unix_time

Fixes #2192
2019-05-21 17:46:22 +01:00
Terry Cain
4a286c4bc2
KMS generate_data_key (#2071)
* Added KMS.generate_data_key and KMS.generate_date_key_without_plaintext

Increase test coverage to cover Key not found

* Added test for kms.put_key_policy key not found
2019-04-26 20:52:24 +01:00
Earl Robinson
dbdc8925e3 add KeyId value to kms.responses.encrypt and kms.responses.decrypt 2019-03-29 21:07:32 -04:00
woohooyayaya
e6e7f235ac
fix creation date in create key response to unix timestamp type 2019-02-25 16:14:24 -08:00
William Rubel
0a3ff94e66 Update kms and lambda to work with terraform 2019-02-16 09:37:27 -06:00
William Rubel
4c6f08d463 Update kms and lambda to work with terraform 2019-02-16 09:27:23 -06:00
Jon Beilke
398dcd8230 transform DeletionDate in model instead to accomodate Key.to_dict 2018-10-06 01:47:22 -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
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
372f749831 format DeletionDate properly for JSON serialization 2018-10-05 22:46:19 -05:00
Jon Beilke
695b4349ba indentation fix 2018-10-05 21:43:12 -05:00
Jon Beilke
7e96203020 add freezegun and test DeletionDate for chedule_key_deletion 2018-10-05 16:21:16 -05:00
Jon Beilke
15c24e49f0 fix formatting for including DeletionDate in response 2018-10-05 16:00:20 -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
temyers
c3b690114c Add support for CloudFormation Fn::GetAtt to KMS Key (#1681) 2018-07-13 11:40:54 +01: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
6d422d1f37 Add BaseModel to all models. 2017-03-11 23:41:12 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
cad185c74d Cleanup headers and encoding. 2017-02-16 22:51:04 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Steve Pulec
d3df810065 Generalize decorator code. 2017-02-12 00:22:29 -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
0062c8da1a Fix up models to work with Python 3 2016-10-03 01:51:59 +11:00
rocky4570fft
3a7fec4032 Add ARN and Alias functionality to KMS 2016-10-03 01:33:59 +11:00
mnussbaum
01e5c3a384 Adds KMS support to mock_cloudformation 2016-05-13 21:36:24 +00:00
Steve Pulec
1bca6f2849 Merge pull request #473 from jszwedko/add-kms-policy-actions
Add KMS policy actions
2015-11-30 13:31:45 -05:00
Akira Chiku
0c910864d3 Use requests.header instead of plain dict 2015-11-28 19:26:17 +09: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
ff5161ebf9 Fix for py26. 2015-06-30 05:55:43 -04:00
Steve Pulec
70aafc1fd3 Add basic KMS key endpoints. 2015-06-30 05:44:39 -04:00