Skip to content

Commit 70d1364

Browse files
authored
chore(keyring examples): refactor keyring examples and move master key provider examples to legacy (#678)
1 parent 986f54c commit 70d1364

File tree

69 files changed

+138
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+138
-107
lines changed

examples/src/__init__.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License"). You
4-
# may not use this file except in compliance with the License. A copy of
5-
# the License is located at
6-
#
7-
# http://aws.amazon.com/apache2.0/
8-
#
9-
# or in the "license" file accompanying this file. This file is
10-
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11-
# ANY KIND, either express or implied. See the License for the specific
12-
# language governing permissions and limitations under the License.
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
133
"""Stub module indicator to make linter configuration simpler."""

examples/src/keyrings/aws_kms_discovery_keyring_example.py renamed to examples/src/aws_kms_discovery_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
DiscoveryFilter,
4444
)
4545
from aws_cryptographic_materialproviders.mpl.references import IKeyring
46-
from typing import Dict
46+
from typing import Dict # noqa pylint: disable=wrong-import-order
4747

4848
import aws_encryption_sdk
4949
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/aws_kms_discovery_multi_keyring_example.py renamed to examples/src/aws_kms_discovery_multi_keyring_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
DiscoveryFilter,
4141
)
4242
from aws_cryptographic_materialproviders.mpl.references import IKeyring
43-
from typing import Dict
43+
from typing import Dict # noqa pylint: disable=wrong-import-order
4444

4545
import aws_encryption_sdk
4646
from aws_encryption_sdk import CommitmentPolicy
@@ -56,7 +56,7 @@
5656
def encrypt_and_decrypt_with_keyring(
5757
kms_key_id: str,
5858
aws_account_id: str,
59-
aws_regions: list[str]
59+
aws_regions: list
6060
):
6161
"""Demonstrate an encrypt/decrypt cycle using an AWS KMS Discovery Multi Keyring.
6262

examples/src/keyrings/aws_kms_keyring_example.py renamed to examples/src/aws_kms_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
2525
from aws_cryptographic_materialproviders.mpl.models import CreateAwsKmsKeyringInput
2626
from aws_cryptographic_materialproviders.mpl.references import IKeyring
27-
from typing import Dict
27+
from typing import Dict # noqa pylint: disable=wrong-import-order
2828

2929
import aws_encryption_sdk
3030
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/aws_kms_mrk_discovery_keyring_example.py renamed to examples/src/aws_kms_mrk_discovery_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
DiscoveryFilter,
4646
)
4747
from aws_cryptographic_materialproviders.mpl.references import IKeyring
48-
from typing import Dict
48+
from typing import Dict # noqa pylint: disable=wrong-import-order
4949

5050
import aws_encryption_sdk
5151
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/aws_kms_mrk_discovery_multi_keyring_example.py renamed to examples/src/aws_kms_mrk_discovery_multi_keyring_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
DiscoveryFilter,
4848
)
4949
from aws_cryptographic_materialproviders.mpl.references import IKeyring
50-
from typing import Dict
50+
from typing import Dict # noqa pylint: disable=wrong-import-order
5151

5252
import aws_encryption_sdk
5353
from aws_encryption_sdk import CommitmentPolicy
@@ -64,7 +64,7 @@ def encrypt_and_decrypt_with_keyring(
6464
mrk_key_id_encrypt: str,
6565
mrk_encrypt_region: str,
6666
aws_account_id: str,
67-
aws_regions: list[str]
67+
aws_regions: list
6868
):
6969
"""Demonstrate decryption using an AWS KMS MRK Discovery Multi keyring.
7070

examples/src/keyrings/aws_kms_mrk_keyring_example.py renamed to examples/src/aws_kms_mrk_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
2929
from aws_cryptographic_materialproviders.mpl.models import CreateAwsKmsMrkKeyringInput
3030
from aws_cryptographic_materialproviders.mpl.references import IKeyring
31-
from typing import Dict
31+
from typing import Dict # noqa pylint: disable=wrong-import-order
3232

3333
import aws_encryption_sdk
3434
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/aws_kms_mrk_multi_keyring_example.py renamed to examples/src/aws_kms_mrk_multi_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
3535
from aws_cryptographic_materialproviders.mpl.models import CreateAwsKmsMrkKeyringInput, CreateAwsKmsMrkMultiKeyringInput
3636
from aws_cryptographic_materialproviders.mpl.references import IKeyring
37-
from typing import Dict
37+
from typing import Dict # noqa pylint: disable=wrong-import-order
3838

3939
import aws_encryption_sdk
4040
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/aws_kms_multi_keyring_example.py renamed to examples/src/aws_kms_multi_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
4444
from aws_cryptographic_materialproviders.mpl.models import CreateAwsKmsKeyringInput, CreateAwsKmsMultiKeyringInput
4545
from aws_cryptographic_materialproviders.mpl.references import IKeyring
46-
from typing import Dict
46+
from typing import Dict # noqa pylint: disable=wrong-import-order
4747

4848
import aws_encryption_sdk
4949
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/aws_kms_rsa_keyring_example.py renamed to examples/src/aws_kms_rsa_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
2222
from aws_cryptographic_materialproviders.mpl.models import CreateAwsKmsRsaKeyringInput
2323
from aws_cryptographic_materialproviders.mpl.references import IKeyring
24-
from typing import Dict
24+
from typing import Dict # noqa pylint: disable=wrong-import-order
2525

2626
import aws_encryption_sdk
2727
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/branch_key_id_supplier_example.py renamed to examples/src/branch_key_id_supplier_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from aws_cryptographic_materialproviders.mpl.models import GetBranchKeyIdInput, GetBranchKeyIdOutput
66
from aws_cryptographic_materialproviders.mpl.references import IBranchKeyIdSupplier
7-
from typing import Dict
7+
from typing import Dict # noqa pylint: disable=wrong-import-order
88

99

1010
class ExampleBranchKeyIdSupplier(IBranchKeyIdSupplier):

examples/src/keyrings/file_streaming_example.py renamed to examples/src/file_streaming_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
3232
from aws_cryptographic_materialproviders.mpl.models import AesWrappingAlg, CreateRawAesKeyringInput
3333
from aws_cryptographic_materialproviders.mpl.references import IKeyring
34-
from typing import Dict
34+
from typing import Dict # noqa pylint: disable=wrong-import-order
3535

3636
import aws_encryption_sdk
3737
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/hierarchical_keyring_example.py renamed to examples/src/hierarchical_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
DefaultCache,
4848
)
4949
from aws_cryptographic_materialproviders.mpl.references import IBranchKeyIdSupplier, IKeyring
50-
from typing import Dict
50+
from typing import Dict # noqa pylint: disable=wrong-import-order
5151

5252
import aws_encryption_sdk
5353
from aws_encryption_sdk import CommitmentPolicy
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/src/legacy/pylintrc

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[MESSAGE CONTROL]
2+
# Disabling messages that either we don't care about we intentionally break.
3+
disable =
4+
invalid-name, # we prefer long, descriptive, names for examples
5+
bad-continuation, # we let black handle this
6+
ungrouped-imports, # we let isort handle this
7+
no-member, # breaks with attrs
8+
no-self-use, # interesting to keep in mind for later refactoring, but not blocking
9+
useless-object-inheritance, # we need to support Python 2, so no, not useless
10+
duplicate-code, # some examples may be similar
11+
too-few-public-methods, # does not allow value stores
12+
too-many-locals, # examples may sometimes have more locals defined for clarity than would be appropriate in code
13+
no-else-return, # we omit this on purpose for brevity where it would add no value
14+
attribute-defined-outside-init, # breaks with attrs_post_init
15+
abstract-method, # throws false positives on io.BaseIO grandchildren
16+
redefined-outer-name, # we do this on purpose in multiple places
17+
consider-using-f-string # disable until 2022-05-05; 6 months after 3.5 deprecation
18+
19+
[BASIC]
20+
# Allow function names up to 50 characters
21+
function-rgx = [a-z_][a-z0-9_]{2,50}$
22+
# Allow method names up to 50 characters
23+
method-rgx = [a-z_][a-z0-9_]{2,50}$
24+
# Allow class attribute names up to 50 characters
25+
# Whitelist class attribute names: iv
26+
class-attribute-rgx = (([A-Za-z_][A-Za-z0-9_]{2,50}|(__.*__))$)|(^iv$)
27+
# Whitelist attribute names: iv
28+
attr-rgx = ([a-z_][a-z0-9_]{2,30}$)|(^iv$)
29+
# Whitelist argument names: iv, b
30+
argument-rgx = ([a-z_][a-z0-9_]{2,30}$)|(^iv$)|(^b$)
31+
# Whitelist variable names: iv, b, _b, x, y, r, s
32+
variable-rgx = ([a-z_][a-z0-9_]{2,30}$)|(^iv$)|(^b$)|(^_b$)|(^x$)|(^y$)|(^r$)|(^s$)
33+
34+
[VARIABLES]
35+
additional-builtins = raw_input
36+
37+
[DESIGN]
38+
max-args = 10
39+
40+
[FORMAT]
41+
max-line-length = 120
42+
43+
[REPORTS]
44+
msg-template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg}

examples/src/keyrings/migration_set_commitment_policy_example.py renamed to examples/src/migration_set_commitment_policy_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
2828
from aws_cryptographic_materialproviders.mpl.models import CreateAwsKmsKeyringInput
2929
from aws_cryptographic_materialproviders.mpl.references import IKeyring
30-
from typing import Dict
30+
from typing import Dict # noqa pylint: disable=wrong-import-order
3131

3232
import aws_encryption_sdk
3333
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/multi_keyring_example.py renamed to examples/src/multi_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
CreateRawAesKeyringInput,
5050
)
5151
from aws_cryptographic_materialproviders.mpl.references import IKeyring
52-
from typing import Dict
52+
from typing import Dict # noqa pylint: disable=wrong-import-order
5353

5454
import aws_encryption_sdk
5555
from aws_encryption_sdk import CommitmentPolicy

examples/src/pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[MESSAGE CONTROL]
22
# Disabling messages that either we don't care about we intentionally break.
33
disable =
4+
import-error, # ignore mpl import errors
45
invalid-name, # we prefer long, descriptive, names for examples
56
bad-continuation, # we let black handle this
67
ungrouped-imports, # we let isort handle this

examples/src/keyrings/raw_aes_keyring_example.py renamed to examples/src/raw_aes_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
3030
from aws_cryptographic_materialproviders.mpl.models import AesWrappingAlg, CreateRawAesKeyringInput
3131
from aws_cryptographic_materialproviders.mpl.references import IKeyring
32-
from typing import Dict
32+
from typing import Dict # noqa pylint: disable=wrong-import-order
3333

3434
import aws_encryption_sdk
3535
from aws_encryption_sdk import CommitmentPolicy

examples/src/keyrings/raw_rsa_keyring_example.py renamed to examples/src/raw_rsa_keyring_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from cryptography.hazmat.backends import default_backend as crypto_default_backend
4343
from cryptography.hazmat.primitives import serialization as crypto_serialization
4444
from cryptography.hazmat.primitives.asymmetric import rsa
45-
from typing import Dict
45+
from typing import Dict # noqa pylint: disable=wrong-import-order
4646

4747
import aws_encryption_sdk
4848
from aws_encryption_sdk import CommitmentPolicy
@@ -240,7 +240,7 @@ def encrypt_and_decrypt_with_keyring(public_key_file_name=None, private_key_file
240240

241241
# 10. Test decrypt for the original ciphertext using raw_rsa_keyring_bob
242242
try:
243-
plaintext_bytes_bob, _ = client.decrypt(
243+
plaintext_bytes_bob, _ = client.decrypt( # pylint: disable=unused-variable
244244
source=ciphertext,
245245
keyring=raw_rsa_keyring_bob
246246
)

examples/src/keyrings/required_encryption_context_cmm.py renamed to examples/src/required_encryption_context_cmm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
CreateRequiredEncryptionContextCMMInput,
2020
)
2121
from aws_cryptographic_materialproviders.mpl.references import ICryptographicMaterialsManager, IKeyring
22-
from typing import Dict, List
22+
from typing import Dict, List # noqa pylint: disable=wrong-import-order
2323

2424
import aws_encryption_sdk
2525
from aws_encryption_sdk import CommitmentPolicy
@@ -53,7 +53,8 @@ def encrypt_and_decrypt_with_keyring(
5353
# Most encrypted data should have an associated encryption context
5454
# to protect integrity. This sample uses placeholder values.
5555
# For more information see:
56-
# blogs.aws.amazon.com/security/post/Tx2LZ6WBJJANTNW/How-to-Protect-the-Integrity-of-Your-Encrypted-Data-by-Using-AWS-Key-Management # noqa: E501
56+
# pylint: disable=line-too-long
57+
# blogs.aws.amazon.com/security/post/Tx2LZ6WBJJANTNW/How-to-Protect-the-Integrity-of-Your-Encrypted-Data-by-Using-AWS-Key-Management
5758
encryption_context: Dict[str, str] = {
5859
"key1": "value1",
5960
"key2": "value2",

examples/src/keyrings/set_encryption_algorithm_suite_example.py renamed to examples/src/set_encryption_algorithm_suite_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
from aws_cryptographic_materialproviders.mpl.config import MaterialProvidersConfig
4646
from aws_cryptographic_materialproviders.mpl.models import AesWrappingAlg, CreateRawAesKeyringInput
4747
from aws_cryptographic_materialproviders.mpl.references import IKeyring
48-
from typing import Dict
48+
from typing import Dict # noqa pylint: disable=wrong-import-order
4949

5050
import aws_encryption_sdk
5151
from aws_encryption_sdk import CommitmentPolicy

examples/test/__init__.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License"). You
4-
# may not use this file except in compliance with the License. A copy of
5-
# the License is located at
6-
#
7-
# http://aws.amazon.com/apache2.0/
8-
#
9-
# or in the "license" file accompanying this file. This file is
10-
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11-
# ANY KIND, either express or implied. See the License for the specific
12-
# language governing permissions and limitations under the License.
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
133
"""Stub module indicator to make linter configuration simpler."""
File renamed without changes.

examples/test/examples_test_utils.py renamed to examples/test/legacy/examples_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import sys
1616

1717
os.environ["AWS_ENCRYPTION_SDK_EXAMPLES_TESTING"] = "yes"
18-
sys.path.extend([os.sep.join([os.path.dirname(__file__), "..", "..", "test", "integration"])])
18+
sys.path.extend([os.sep.join([os.path.dirname(__file__), "..", "..", "..", "test", "integration"])])
1919

2020
static_plaintext = (
2121
b"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "

examples/test/legacy/pylintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[MESSAGES CONTROL]
2+
# Disabling messages that we either don't care about for tests or are necessary to break for tests.
3+
disable =
4+
invalid-name, # we prefer long, descriptive, names for tests
5+
missing-docstring, # we don't write docstrings for tests
6+
wrong-import-position, # similar to E0401, pylint does not appear to identify
7+
# unknown modules as non-standard-library. flake8 tests for this as well
8+
# and does treat them properly
9+
duplicate-code, # tests for similar things tend to be similar
10+
consider-using-f-string # disable until 2022-05-05; 6 months after 3.5 deprecation
11+
12+
[VARIABLES]
13+
additional-builtins = raw_input
14+
15+
[DESIGN]
16+
max-args = 10
17+
18+
[FORMAT]
19+
max-line-length = 120
20+
21+
[REPORTS]
22+
msg-template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg}

examples/test/test_i_basic_encryption.py renamed to examples/test/legacy/test_i_basic_encryption.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
import botocore.session
1515
import pytest
1616

17-
from ..src.basic_encryption import cycle_string
17+
from ...src.legacy.basic_encryption import cycle_string
1818
from .examples_test_utils import get_cmk_arn, static_plaintext
1919

20-
2120
pytestmark = [pytest.mark.examples]
2221

2322

examples/test/test_i_basic_file_encryption_with_multiple_providers.py renamed to examples/test/legacy/test_i_basic_file_encryption_with_multiple_providers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
import botocore.session
1818
import pytest
1919

20-
from ..src.basic_file_encryption_with_multiple_providers import cycle_file
21-
from .examples_test_utils import get_cmk_arn
22-
from .examples_test_utils import static_plaintext
23-
20+
from ...src.legacy.basic_file_encryption_with_multiple_providers import cycle_file
21+
from .examples_test_utils import get_cmk_arn, static_plaintext
2422

2523
pytestmark = [pytest.mark.examples]
2624

examples/test/test_i_basic_file_encryption_with_raw_key_provider.py renamed to examples/test/legacy/test_i_basic_file_encryption_with_raw_key_provider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616

1717
import pytest
1818

19-
from ..src.basic_file_encryption_with_raw_key_provider import cycle_file
19+
from ...src.legacy.basic_file_encryption_with_raw_key_provider import cycle_file
2020
from .examples_test_utils import static_plaintext
2121

22-
2322
pytestmark = [pytest.mark.examples]
2423

2524

examples/test/test_i_data_key_caching_basic.py renamed to examples/test/legacy/test_i_data_key_caching_basic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
"""Unit test suite for the basic data key caching example in the AWS-hosted documentation."""
1414
import pytest
1515

16-
from ..src.data_key_caching_basic import encrypt_with_caching
16+
from ...src.legacy.data_key_caching_basic import encrypt_with_caching
1717
from .examples_test_utils import get_cmk_arn
1818

19-
2019
pytestmark = [pytest.mark.examples]
2120

2221

examples/test/test_i_discovery_kms_provider.py renamed to examples/test/legacy/test_i_discovery_kms_provider.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
import botocore.session
1616
import pytest
1717

18-
from ..src.discovery_kms_provider import encrypt_decrypt
19-
from .examples_test_utils import get_cmk_arn
20-
from .examples_test_utils import static_plaintext
21-
18+
from ...src.legacy.discovery_kms_provider import encrypt_decrypt
19+
from .examples_test_utils import get_cmk_arn, static_plaintext
2220

2321
pytestmark = [pytest.mark.examples]
2422

examples/test/test_i_mrk_aware_kms_provider.py renamed to examples/test/legacy/test_i_mrk_aware_kms_provider.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414

1515
import pytest
1616

17-
from ..src.mrk_aware_kms_provider import encrypt_decrypt
18-
from .examples_test_utils import get_mrk_arn, get_second_mrk_arn
19-
from .examples_test_utils import static_plaintext
20-
17+
from ...src.legacy.mrk_aware_kms_provider import encrypt_decrypt
18+
from .examples_test_utils import get_mrk_arn, get_second_mrk_arn, static_plaintext
2119

2220
pytestmark = [pytest.mark.examples]
2321

0 commit comments

Comments
 (0)