kbalk
17e9a37c81
Add validation of tags to TaggingService ( #4253 )
...
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-09-01 07:07:01 +01:00
Bert Blommers
07bb843214
Fix regex URLs so that a dot is actually interpreted as a dot ( #4110 )
2021-08-28 13:42:45 +01:00
Waldemar Hummer
35d0ddef24
Add support for KMS update-alias ( #4143 )
2021-08-07 08:07:40 +01:00
Anton Grübel
788b8e617d
Update ecr ( #4128 )
...
* Add ecr.list_tags_for_resource
* Add ecr.tag_resource
* Add ecr.untag_resource
* Add default KMS key policy, if not specified
2021-08-03 16:21:15 +01:00
Bert Blommers
7693d77333
Remove Py2 support ( #3915 )
2021-07-26 07:40:39 +01:00
Bert Blommers
db1d7123f6
List dependencies for services - add integration test to verify
2020-09-13 16:08:23 +01:00
Adam Richie-Halford
9a9a1d8413
Decentralize cloudformation naming responsibilities ( #3201 )
...
* #3127 - Decentralize CF naming responsibilities
* Decentralize CloudFormation naming responsibilities
* Update URLs in cloudformation_resource_type functions
* Fix flake8 errors
* Black formatting
* Add a bunch of imports to populate CloudFormationModel.__subclasses__
* Add noqa to s3 models import statement in cloudformation/parsing.py
* Black formatting
* Remove debugging print statement
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2020-08-01 15:23:36 +01:00
Brady
1221d2653a
fix test cases, bug when no tags are present and conflict
2020-02-21 15:21:41 -05:00
Bryan Alexander
1432e82606
fixes kms/models create_key parameters
2020-02-18 14:01:15 -06:00
Bryan Alexander
d1efedec29
updates kms to use tagging service and support untag_resource
2020-02-18 13:40:34 -06:00
Bryan Alexander
445f474534
merging from master
2020-02-18 10:47:05 -06:00
gruebel
4833419499
Fix CreationDate handling
2020-02-07 15:38:37 +01:00
gruebel
5d05044491
Add CustomerMasterKeySpec parameter handling
2020-02-06 17:57:00 +01:00
gruebel
40bd4f1603
Fix kms.create_key default output
2020-01-31 17:16:42 +01:00
Bryan Alexander
85207b885b
updates KMS service to use TaggingService
2020-01-16 12:10:38 -06:00
gruebel
9d9b620878
Fixed linter errors
2019-12-26 21:03:49 +01:00
gruebel
d7ba355a65
Add missing regions to all services
2019-12-26 17:12:22 +01: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
dd63cebf81
add kms:ReEncrypt invalid destination key test
2019-08-27 20:49:47 -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
mattsb42-aws
7eeead8a37
add encrypt/decrypt utility functions with appropriate exceptions and tests
2019-08-26 23:24:31 -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
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