Skip to content

Commit 6c0b6f8

Browse files
remove deprecations
1 parent 6177753 commit 6c0b6f8

File tree

8 files changed

+6
-27
lines changed

8 files changed

+6
-27
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ which is automatically generated anywhere a caller provides a keyring.
9090

9191
Note: You must also install the `AWS Cryptographic Material Providers Library (MPL)`_
9292
to create and use CMMs that use keyrings.
93-
CMMs that use master key providers have been deprecated since v4 of this library.
93+
CMMs that use master key providers have been marked as legacy since v4 of this library.
9494

9595
Legacy Concepts
9696
===============
97-
These concepts mention components that have been deprecated since v4 of this library.
97+
This section describes legacy concepts used in earlier versions of this library.
9898
These components have been superseded by new components in the `AWS Cryptographic Material Providers Library (MPL)`_.
99-
Please avoid using these and instead use components in the MPL.
99+
Please avoid using these components, and instead use components in the MPL.
100100

101101
Master Key Providers
102102
--------------------
@@ -106,7 +106,7 @@ To encrypt data in this client, a ``MasterKeyProvider`` object must contain at l
106106

107107
``MasterKeyProvider`` objects can also contain other ``MasterKeyProvider`` objects.
108108

109-
NOTE: Master key providers are deprecated
109+
NOTE: Master key providers are legacy components
110110
and have been superseded by keyrings
111111
provided by the `AWS Cryptographic Material Providers Library (MPL)`_.
112112
Please install this library and migrate master key providers to keyring interfaces.
@@ -116,7 +116,7 @@ Master Keys
116116
Master keys generate, encrypt, and decrypt data keys.
117117
An example of a master key is an `AWS KMS key`_.
118118

119-
NOTE: Master keys are deprecated
119+
NOTE: Master keys are legacy constructs
120120
and have been superseded by keyrings
121121
provided by the `AWS Cryptographic Material Providers Library (MPL)`_.
122122
Please install this library and migrate master key providers to keyring interfaces.

src/aws_encryption_sdk/key_providers/base.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@
3232
_LOGGER = logging.getLogger(__name__)
3333

3434

35-
@deprecated("Use keyrings from the aws-cryptographic-material-providers library.")
3635
@attr.s(hash=True)
3736
class MasterKeyProviderConfig(object):
3837
"""Provides a common ancestor for MasterKeyProvider configuration objects
3938
and a stand-in point if common params are needed later.
4039
"""
4140

4241

43-
@deprecated("Use keyrings from the aws-cryptographic-material-providers library.")
4442
@six.add_metaclass(abc.ABCMeta)
4543
class MasterKeyProvider(object):
4644
"""Parent interface for Master Key Provider classes.
@@ -327,7 +325,6 @@ def decrypt_data_key_from_list(self, encrypted_data_keys, algorithm, encryption_
327325
return data_key
328326

329327

330-
@deprecated("Use keyrings from the aws-cryptographic-material-providers library.")
331328
@attr.s(hash=True)
332329
class MasterKeyConfig(object):
333330
"""Configuration object for MasterKey objects.
@@ -345,7 +342,6 @@ def __attrs_post_init__(self):
345342
raise TypeError('Instances of MasterKeyConfig must have a "provider_id" attribute defined.')
346343

347344

348-
@deprecated("Use keyrings from the aws-cryptographic-material-providers library.")
349345
@six.add_metaclass(abc.ABCMeta)
350346
class MasterKey(MasterKeyProvider):
351347
"""Parent interface for Master Key classes.

src/aws_encryption_sdk/key_providers/kms.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def _check_mrk_arns_equal(key1, key2):
129129
)
130130

131131

132-
@deprecated("Use DiscoveryFilter from the aws-cryptographic-material-providers library.")
133132
@attr.s(hash=True)
134133
class DiscoveryFilter(object):
135134
"""DiscoveryFilter to control accounts and partitions that can be used by a KMS Master Key Provider.
@@ -144,7 +143,6 @@ class DiscoveryFilter(object):
144143
partition = attr.ib(default=None, hash=True, validator=attr.validators.optional(attr.validators.instance_of(str)))
145144

146145

147-
@deprecated("Use KMS keyrings from the aws-cryptographic-material-providers library.")
148146
@attr.s(hash=True)
149147
class KMSMasterKeyConfig(MasterKeyConfig):
150148
"""Configuration object for KMSMasterKey objects.
@@ -173,7 +171,6 @@ def client_default(self):
173171
return boto3.session.Session(**kwargs).client("kms", config=botocore_config)
174172

175173

176-
@deprecated("Use KMS keyrings from the aws-cryptographic-material-providers library.")
177174
class KMSMasterKey(MasterKey):
178175
"""Master Key class for KMS CMKs.
179176
@@ -386,7 +383,6 @@ def _validate_allowed_to_decrypt(self, edk_key_id):
386383
)
387384

388385

389-
@deprecated("Use KMS MRK keyrings from the aws-cryptographic-material-providers library.")
390386
@attr.s(hash=True)
391387
class MRKAwareKMSMasterKeyConfig(MasterKeyConfig):
392388
"""Configuration object for MRKAwareKMSMasterKey objects. Mostly the same as KMSMasterKey, except the
@@ -410,7 +406,6 @@ class MRKAwareKMSMasterKeyConfig(MasterKeyConfig):
410406
)
411407

412408

413-
@deprecated("Use KMS MRK keyrings from the aws-cryptographic-material-providers library.")
414409
class MRKAwareKMSMasterKey(KMSMasterKey):
415410
"""Master Key class for KMS MRKAware CMKs. The logic for this class is almost entirely the same as a normal
416411
KMSMasterKey ("single-region key"). The primary difference is that this class is more flexible in what ciphertexts
@@ -520,7 +515,6 @@ def owns_data_key(self, data_key):
520515
return False
521516

522517

523-
@deprecated("Use KMS keyrings from the aws-cryptographic-material-providers library.")
524518
@attr.s(hash=True)
525519
class KMSMasterKeyProviderConfig(MasterKeyProviderConfig):
526520
"""Configuration object for KMSMasterKeyProvider objects.
@@ -557,7 +551,6 @@ class KMSMasterKeyProviderConfig(MasterKeyProviderConfig):
557551
)
558552

559553

560-
@deprecated("Use KMS keyrings from the aws-cryptographic-material-providers library.")
561554
@six.add_metaclass(abc.ABCMeta)
562555
class BaseKMSMasterKeyProvider(MasterKeyProvider):
563556
"""Master Key Provider for KMS.
@@ -747,7 +740,6 @@ def _new_master_key_impl(self, key_id):
747740
)
748741

749742

750-
@deprecated("Use KMS keyrings from the aws-cryptographic-material-providers library.")
751743
class StrictAwsKmsMasterKeyProvider(BaseKMSMasterKeyProvider):
752744
"""Strict Master Key Provider for KMS. It is configured with an explicit list of AWS KMS master keys that
753745
should be used for encryption and decryption. On encryption, the plaintext will be encrypted with all configured
@@ -814,7 +806,6 @@ def validate_config(self):
814806
)
815807

816808

817-
@deprecated("Use KMS MRK keyrings from the aws-cryptographic-material-providers library.")
818809
class MRKAwareStrictAwsKmsMasterKeyProvider(StrictAwsKmsMasterKeyProvider):
819810
"""A Strict Master Key Provider for KMS that has smarts for handling Multi-Region keys.
820811
@@ -884,7 +875,6 @@ def validate_unique_mrks(self):
884875
)
885876

886877

887-
@deprecated("Use KMS discovery keyrings from the aws-cryptographic-material-providers library.")
888878
class DiscoveryAwsKmsMasterKeyProvider(BaseKMSMasterKeyProvider):
889879
"""Discovery Master Key Provider for KMS. This can only be used for decryption. It is configured with an optional
890880
Discovery Filter containing AWS account ids and partitions that should be trusted for decryption. If a ciphertext
@@ -940,7 +930,6 @@ def validate_config(self):
940930
)
941931

942932

943-
@deprecated("Use KMS MRK keyrings from the aws-cryptographic-material-providers library.")
944933
class MRKAwareDiscoveryAwsKmsMasterKeyProvider(DiscoveryAwsKmsMasterKeyProvider):
945934
"""Discovery Master Key Provider for KMS that has smarts for handling Multi-Region keys
946935

src/aws_encryption_sdk/key_providers/raw.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
_LOGGER = logging.getLogger(__name__)
3030

3131

32-
@deprecated("Use raw keyrings from the aws-cryptographic-material-providers library.")
3332
@attr.s(hash=True)
3433
class RawMasterKeyConfig(MasterKeyConfig):
3534
"""Configuration object for RawMasterKey objects.
@@ -48,7 +47,6 @@ class RawMasterKeyConfig(MasterKeyConfig):
4847
wrapping_key = attr.ib(hash=True, validator=attr.validators.instance_of(WrappingKey))
4948

5049

51-
@deprecated("Use raw keyrings from the aws-cryptographic-material-providers library.")
5250
class RawMasterKey(MasterKey):
5351
"""Raw Master Key.
5452
@@ -191,7 +189,6 @@ def _decrypt_data_key(self, encrypted_data_key, algorithm, encryption_context):
191189
)
192190

193191

194-
@deprecated("Use raw keyrings from the aws-cryptographic-material-providers library.")
195192
@six.add_metaclass(abc.ABCMeta)
196193
class RawMasterKeyProvider(MasterKeyProvider):
197194
"""Raw Master Key Provider.

src/aws_encryption_sdk/materials_managers/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
@six.add_metaclass(abc.ABCMeta)
22-
@deprecated("Use CMMs from the aws-cryptographic-material-providers library.")
2322
class CryptoMaterialsManager(object):
2423
"""Parent interface for crypto material manager classes.
2524

src/aws_encryption_sdk/materials_managers/caching.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737

3838
@attr.s(hash=False)
39-
@deprecated("Use the hierarchical keyring from the aws-cryptographic-material-providers library.")
4039
class CachingCryptoMaterialsManager(CryptoMaterialsManager):
4140
"""Crypto material manager which caches results from an underlying material manager.
4241

src/aws_encryption_sdk/materials_managers/default.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333

3434
@attr.s(hash=False)
35-
@deprecated("Use CMMs from the aws-cryptographic-material-providers library.")
3635
class DefaultCryptoMaterialsManager(CryptoMaterialsManager):
3736
"""Default crypto material manager.
3837

0 commit comments

Comments
 (0)