Commit Graph

36 Commits

Author SHA1 Message Date
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
Bryan Alexander
445f474534 merging from master 2020-02-18 10:47:05 -06:00
gruebel
5d05044491 Add CustomerMasterKeySpec parameter handling 2020-02-06 17:57:00 +01:00
Bryan Alexander
85207b885b updates KMS service to use TaggingService 2020-01-16 12:10:38 -06:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
mattsb42-aws
4f34af95bc remove dead code
because the key ID validation is now centralized,
by the time this code would have been reached,
we know that the key ID exists,
so a KeyError will never be thrown
2019-09-13 13:35:55 -07:00
mattsb42-aws
a2c2a83198 fix linting issues 2019-09-12 18:04:18 -07:00
mattsb42-aws
f4c5dfbdfb reorganize and centralize key ID validation 2019-09-12 17:42:40 -07:00
mattsb42-aws
819d354af3 fix linting issues 2019-08-28 00:48:53 -07:00
mattsb42-aws
f7043e1eaf add kms:GenerateRandom and tests 2019-08-27 20:55:58 -07:00
mattsb42-aws
9ffb9d3d0a add kms:ReEncrypt and tests 2019-08-27 20:24:57 -07:00
mattsb42-aws
98581b9196 add proper KMS encrypt, decrypt, and generate_data_key functionality and tests 2019-08-27 13:42:36 -07:00
Earl Robinson
5347a577da restore KeyId to kms decrypt response
regression introduced in #2071 "KMS generate_data_key"
2019-08-14 08:24:05 -04:00
Jack Danger
348dc54e6a
Supporting tags in KMS (#2332)
The CreateKey API method accepts tags but does not return them.
2019-07-24 19:15:43 -07: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
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
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
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
cad185c74d Cleanup headers and encoding. 2017-02-16 22:51:04 -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
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
70aafc1fd3 Add basic KMS key endpoints. 2015-06-30 05:44:39 -04:00