Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 96c68cf

Browse files
authored
Update to version v1.4.2
- Upgraded requests to 2.31.0 that addresses the [unintended leak of proxy-authorization header in requests](GHSA-j8r2-6x86-q33q)
2 parents a33a12e + f4f913a commit 96c68cf

File tree

10 files changed

+19
-12
lines changed

10 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.4.2] - 2023-06-22
9+
10+
### Changed
11+
12+
- Upgraded requests to 2.31.0 that addresses the [unintended leak of proxy-authorization header in requests](https://github.com/advisories/GHSA-j8r2-6x86-q33q)
13+
814
## [1.4.1] - 2023-04-18
915

1016
### Changed
1117

12-
- Enabled Amazon S3 server access logging on the logging bucket
18+
- Updated the bucket policy on the logging bucket to grant access to the logging service principal (logging.s3.amazonaws.com) for access log delivery.
1319
- Upgraded CDK version to 2.75.0
1420

1521
## [1.4.0] - 2023-03-29

source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/solutions_metrics/src/custom_resources/metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
logger = logging.getLogger(__name__)
2424
helper = CfnResource(log_level=getenv("LOG_LEVEL", "WARNING"))
2525
METRICS_ENDPOINT = "https://metrics.awssolutionsbuilder.com/generic"
26+
REQUESTS_TIMEOUT = 10
2627

2728

2829
def _sanitize_data(event):
@@ -59,7 +60,7 @@ def send_metrics(event, _):
5960
}
6061

6162
logger.info(f"Sending payload: {payload}")
62-
response = requests.post(METRICS_ENDPOINT, json=payload, headers=headers)
63+
response = requests.post(METRICS_ENDPOINT, json=payload, headers=headers, timeout=REQUESTS_TIMEOUT)
6364
logger.info(f"Response from metrics endpoint: {response.status_code} {response.reason}")
6465
if "stackTrace" in response.text:
6566
logger.exception("Error submitting usage data: %s" % response.text)
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
requests==2.28.1
1+
requests==2.31.0
22
crhelper==2.0.11
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
aws-lambda-powertools==2.14.0
1+
aws-lambda-powertools==2.15.0
22
aws-xray-sdk==2.12.0

source/cdk_solution_helper_py/helpers_cdk/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_version():
5353
"aws_cdk_lib==2.75.0",
5454
"Click==8.1.3",
5555
"boto3==1.26.47",
56-
"requests==2.28.1",
56+
"requests==2.31.0",
5757
"crhelper==2.0.11",
5858
],
5959
entry_points="""

source/cdk_solution_helper_py/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aws_cdk_lib==2.75.0
22
aws-cdk.aws-servicecatalogappregistry-alpha==2.75.0a0
33
black
44
boto3==1.26.47
5-
requests==2.28.1
5+
requests==2.31.0
66
crhelper==2.0.11
77
Click
88
moto

source/infrastructure/cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"context": {
44
"SOLUTION_NAME": "Maintaining Personalized Experiences with Machine Learning",
55
"SOLUTION_ID": "SO0170",
6-
"SOLUTION_VERSION": "v1.4.1",
6+
"SOLUTION_VERSION": "v1.4.2",
77
"APP_REGISTRY_NAME": "personalized-experiences-ML",
88
"APPLICATION_TYPE": "AWS-Solutions",
99
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true

source/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ boto3==1.26.47
44
aws_cdk_lib==2.75.0
55
aws_solutions_constructs.aws_lambda_sns==2.38.0
66
aws-cdk.aws-servicecatalogappregistry-alpha==2.75.0a0
7-
requests==2.28.1
7+
requests==2.31.0
88
crhelper==2.0.11
99
cronex==0.1.3.1
1010
moto==2.3.0

source/scheduler/common/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def get_version():
4343
packages=setuptools.find_namespace_packages(exclude=["build*"]),
4444
install_requires=[
4545
"pip>=22.3.1",
46-
"aws-lambda-powertools==2.14.0",
46+
"aws-lambda-powertools==2.15.0",
4747
"aws-xray-sdk==2.12.0",
4848
"aws-solutions-python==2.0.0",
4949
"click==8.1.3",
5050
"cronex==0.1.3.1",
5151
"boto3==1.26.47",
52-
"requests==2.28.1",
52+
"requests==2.31.0",
5353
"crhelper==2.0.11",
5454
"rich==12.6.0",
5555
],

source/tests/aspects/test_personalize_app_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def test_service_catalog_registry_application(synth_template):
6767
"Tags": {
6868
"SOLUTION_ID": "SO0170",
6969
"SOLUTION_NAME": "Maintaining Personalized Experiences with Machine Learning",
70-
"SOLUTION_VERSION": "v1.4.1",
70+
"SOLUTION_VERSION": "v1.4.2",
7171
"Solutions:ApplicationType": "AWS-Solutions",
7272
"Solutions:SolutionID": "SO0170",
7373
"Solutions:SolutionName": "Maintaining Personalized Experiences with Machine Learning",
74-
"Solutions:SolutionVersion": "v1.4.1",
74+
"Solutions:SolutionVersion": "v1.4.2",
7575
},
7676
},
7777
)

0 commit comments

Comments
 (0)