Skip to content

Commit 9d7584e

Browse files
texastonyalex-chewfarleyb-amazon
authored
feat: Improvements to the message decryption process (#22)
See GHSA-x5h4-9gqw-942j Co-authored-by: Alex Chew <[email protected]> Co-authored-by: Benjamin Farley <[email protected]>
1 parent 8e6b9e5 commit 9d7584e

Some content is hidden

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

53 files changed

+1212
-54897
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "test_vector_handlers/test/aws-crypto-tools-test-vector-framework"]
2+
path = test_vector_handlers/test/aws-crypto-tools-test-vector-framework
3+
url = https://github.com/awslabs/private-aws-crypto-tools-test-vector-framework-staging.git

buildspec.yml

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,67 +7,36 @@ batch:
77
buildspec: codebuild/py27/integ.yml
88
- identifier: py27_examples
99
buildspec: codebuild/py27/examples.yml
10-
- identifier: py27_awses_1_7_1
11-
buildspec: codebuild/py27/awses_1.7.1.yml
12-
- identifier: py27_awses_2_0_0
13-
buildspec: codebuild/py27/awses_2.0.0.yml
14-
- identifier: py27_awses_latest
15-
buildspec: codebuild/py27/awses_latest.yml
10+
- identifier: py27_awses_local
11+
buildspec: codebuild/py27/awses_local.yml
1612

1713
- identifier: py35_integ
1814
buildspec: codebuild/py35/integ.yml
1915
- identifier: py35_examples
2016
buildspec: codebuild/py35/examples.yml
21-
- identifier: py35_awses_1_7_1
22-
buildspec: codebuild/py35/awses_1.7.1.yml
23-
- identifier: py35_awses_2_0_0
24-
buildspec: codebuild/py35/awses_2.0.0.yml
25-
- identifier: py35_awses_latest
26-
buildspec: codebuild/py35/awses_latest.yml
17+
- identifier: py35_awses_local
18+
buildspec: codebuild/py35/awses_local.yml
2719

2820
- identifier: py36_integ
2921
buildspec: codebuild/py36/integ.yml
3022
- identifier: py36_examples
3123
buildspec: codebuild/py36/examples.yml
32-
- identifier: py36_awses_1_7_1
33-
buildspec: codebuild/py36/awses_1.7.1.yml
34-
- identifier: py36_awses_2_0_0
35-
buildspec: codebuild/py36/awses_2.0.0.yml
36-
- identifier: py36_awses_latest
37-
buildspec: codebuild/py36/awses_latest.yml
24+
- identifier: py36_awses_local
25+
buildspec: codebuild/py36/awses_local.yml
3826

3927
- identifier: py37_integ
4028
buildspec: codebuild/py37/integ.yml
4129
- identifier: py37_examples
4230
buildspec: codebuild/py37/examples.yml
43-
- identifier: py37_awses_1_7_1
44-
buildspec: codebuild/py37/awses_1.7.1.yml
45-
- identifier: py37_awses_2_0_0
46-
buildspec: codebuild/py37/awses_2.0.0.yml
47-
- identifier: py37_awses_latest
48-
buildspec: codebuild/py37/awses_latest.yml
31+
- identifier: py37_awses_local
32+
buildspec: codebuild/py37/awses_local.yml
4933

5034
- identifier: py38_integ
5135
buildspec: codebuild/py38/integ.yml
5236
- identifier: py38_examples
5337
buildspec: codebuild/py38/examples.yml
54-
- identifier: py38_awses_1_7_1
55-
buildspec: codebuild/py38/awses_1.7.1.yml
56-
- identifier: py38_awses_2_0_0
57-
buildspec: codebuild/py38/awses_2.0.0.yml
58-
- identifier: py38_awses_latest
59-
buildspec: codebuild/py38/awses_latest.yml
60-
61-
- identifier: py39_integ
62-
buildspec: codebuild/py39/integ.yml
63-
- identifier: py39_examples
64-
buildspec: codebuild/py39/examples.yml
65-
- identifier: py39_awses_1_7_1
66-
buildspec: codebuild/py39/awses_1.7.1.yml
67-
- identifier: py39_awses_2_0_0
68-
buildspec: codebuild/py39/awses_2.0.0.yml
69-
- identifier: py39_awses_latest
70-
buildspec: codebuild/py39/awses_latest.yml
38+
- identifier: py38_awses_local
39+
buildspec: codebuild/py38/awses_local.yml
7140

7241
- identifier: code_coverage
7342
buildspec: codebuild/coverage/coverage.yml

codebuild/py27/awses_latest.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

codebuild/py27/awses_1.7.1.yml renamed to codebuild/py27/awses_local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
TOXENV: "py27-awses_1.7.1"
5+
TOXENV: "py27-awses_local"
66
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
77
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
88
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-

codebuild/py35/awses_1.7.1.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

codebuild/py35/awses_latest.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

codebuild/py35/awses_2.0.0.yml renamed to codebuild/py35/awses_local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
TOXENV: "py35-awses_2.0.0"
5+
TOXENV: "py35-awses_local"
66
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
77
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
88
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-

codebuild/py36/awses_1.7.1.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

codebuild/py36/awses_latest.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

codebuild/py27/awses_2.0.0.yml renamed to codebuild/py36/awses_local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
TOXENV: "py27-awses_2.0.0"
5+
TOXENV: "py36-awses_local"
66
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
77
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
88
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-

codebuild/py37/awses_1.7.1.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

codebuild/py37/awses_latest.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

codebuild/py37/awses_2.0.0.yml renamed to codebuild/py37/awses_local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
TOXENV: "py37-awses_2.0.0"
5+
TOXENV: "py37-awses_local"
66
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
77
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
88
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-

codebuild/py38/awses_1.7.1.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

codebuild/py38/awses_2.0.0.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

codebuild/py38/awses_latest.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

codebuild/py36/awses_2.0.0.yml renamed to codebuild/py38/awses_local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
TOXENV: "py36-awses_2.0.0"
5+
TOXENV: "py38-awses_local"
66
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
77
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
88
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-

codebuild/release/prod-release.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,21 @@ env:
99

1010
phases:
1111
install:
12-
commands:
13-
- pip install tox
14-
- pip install --upgrade pip
1512
runtime-versions:
1613
python: latest
17-
pre_build:
18-
commands:
19-
- git checkout $COMMIT_ID
20-
- FOUND_VERSION=$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py)
21-
- |
22-
if expr ${FOUND_VERSION} != ${VERSION}; then
23-
echo "identifiers.py version (${FOUND_VERSION}) does not match expected version (${VERSION}), stopping"
24-
exit 1;
25-
fi
2614
build:
2715
commands:
16+
- pip install tox
17+
- git checkout $BRANCH
2818
- tox -e park
2919
- tox -e release
20+
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
21+
- cd busy-engineers-document-bucket/exercises/python/encryption-context-complete
22+
- sed -i "s/aws_encryption_sdk/aws_encryption_sdk==$VERSION/" requirements-dev.txt
23+
- tox -e test
24+
3025

3126
batch:
32-
fast-fail: true
33-
build-graph:
34-
- identifier: release_to_prod
35-
- identifier: validate_prod_release
36-
depend-on:
37-
- release_to_prod
38-
buildspec: codebuild/release/validate.yml
39-
env:
40-
variables:
41-
PIP_INDEX_URL: https://pypi.python.org/simple/
27+
fast-fail: false
28+
build-list:
29+
- identifier: prod_release

0 commit comments

Comments
 (0)