Skip to content

Commit a18e0a3

Browse files
authored
Merge pull request #62 from aws-solutions/feature/v2.6.4
updated to feature v2.6.4
2 parents 45a5940 + 2e6a0d6 commit a18e0a3

File tree

10 files changed

+68
-55
lines changed

10 files changed

+68
-55
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.6.4] - 2023-10
8+
### Fixed
9+
- Updated @babel/traverse to mitigate [CVE-2023-45133](https://github.com/aws-solutions/cost-optimizer-for-amazon-workspaces/pull/61)
10+
- Updated urllib3 to mitigate [CVE-2023-45803](https://github.com/aws-solutions/cost-optimizer-for-amazon-workspaces/pull/59)
11+
- Updated the base python image in the Dockerfile used to fix the following CVEs: [CVE-2023-29491](https://nvd.nist.gov/vuln/detail/CVE-2023-29491), [CVE-2023-4911](https://nvd.nist.gov/vuln/detail/CVE-2023-4911), [CVE-2023-36054](https://nvd.nist.gov/vuln/detail/CVE-2023-36054), [CVE-2023-3446](https://nvd.nist.gov/vuln/detail/CVE-2023-3446), [CVE-2023-3817](https://nvd.nist.gov/vuln/detail/CVE-2023-3817).
12+
713
## [2.6.3] - 2023-09
814
### Fixed
915
- Added the bugfix to skip the processing of the workspaces in error state.

source/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
FROM public.ecr.aws/docker/library/python:3.11.5-slim-bullseye
1+
FROM public.ecr.aws/docker/library/python:3.11.6-slim-bullseye
22
COPY workspaces_app /workspaces_app
33

44
WORKDIR /workspaces_app
5-
65
RUN adduser -uid 1001 nonroot
76
USER nonroot
87

98
RUN pip install -r ./setup_requirements.txt
109
RUN pip install -r ./requirements.txt
11-
1210
CMD python3 ./main.py

source/lambda/account_registration_provider/account_registration_provider.py

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

1313
logger = logging.getLogger(__name__)
1414
log_level = getattr(logging, str(os.getenv('LOG_LEVEL', 'INFO')))
15-
logging.basicConfig(stream=sys.stdout, format='%(levelname)s: %(message)s', level=log_level)
15+
logging.basicConfig(stream=sys.stdout, format='%(levelname)s: %(message)s', level=log_level) # NOSONAR
1616

1717
boto_config = botocore.config.Config(
1818
retries={

source/lambda/uuid_generator/uuid_generator.py

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

1313
logger = logging.getLogger(__name__)
1414
log_level = getattr(logging, str(os.getenv('LOG_LEVEL', 'INFO')))
15-
logging.basicConfig(stream=sys.stdout, format='%(levelname)s: %(message)s', level=log_level)
15+
logging.basicConfig(stream=sys.stdout, format='%(levelname)s: %(message)s', level=log_level) # NOSONAR
1616
boto_config = botocore.config.Config(user_agent_extra=os.getenv('USER_AGENT_STRING'))
1717
cfn_client = boto3.client('cloudformation', config=boto_config)
1818

source/package-lock.json

Lines changed: 48 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@types/sinon": "^10.0.16",
2828
"aws-cdk": "^2.94.0",
2929
"jest": "^29.6.4",
30-
"sinon": "^16.0.0",
30+
"sinon": "^17.0.0",
3131
"ts-jest": "^29.1.1",
3232
"ts-node": "^10.9.1",
3333
"typescript": "^5.2.2",

source/testing_requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ pytest>=7.2.0
33
pytest-mock==3.10.0
44
coverage==7.2.0
55
requests==2.31.0
6-
boto3==1.26.48
6+
boto3==1.28.68
77
attrs==v23.1.0
8-
botocore==1.29.48
8+
botocore==1.31.68
99
certifi==2023.7.22
1010
charset-normalizer==2.1.1
1111
idna==3.4
@@ -15,8 +15,8 @@ packaging==23.0
1515
pluggy==1.0.0
1616
pyparsing==3.0.9
1717
python-dateutil==2.8.2
18-
s3transfer==0.6.0
18+
s3transfer==0.7.0
1919
six==1.16.0
2020
tomli==2.0.1
21-
urllib3==1.26.14
21+
urllib3==2.0.7
2222
freezegun==1.2.2

source/workspaces_app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
def configure_logging() -> None:
3434
"""Configure root logger level based on `LogLevel` environment variable."""
3535
log_level = getattr(logging, str(os.getenv('LogLevel', 'INFO')))
36-
logging.basicConfig(stream=sys.stdout, format='%(levelname)s: %(message)s', level=log_level)
36+
logging.basicConfig(stream=sys.stdout, format='%(levelname)s: %(message)s', level=log_level) # NOSONAR
3737

3838

3939
def ecs_handler() -> None:
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
boto3==1.26.48
2-
botocore==1.29.48
1+
boto3==1.28.68
2+
botocore==1.31.68
33
certifi==2023.7.22
44
charset-normalizer==2.1.1
55
idna==3.4
66
jmespath==1.0.1
77
python-dateutil==2.8.2
88
requests==2.31.0
9-
s3transfer==0.6.0
9+
s3transfer==0.7.0
1010
six==1.16.0
11-
urllib3==1.26.14
11+
urllib3==2.0.7

source/workspaces_app/workspaces_app/workspaces_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def get_workspaces_for_directory(self, directory_id: str) -> typing.List[dict]:
161161
except botocore.exceptions.ClientError as e:
162162
log.error(f'Error while getting the list of workspace for directory ID '
163163
f'{directory_id}: Error: {e}')
164-
log.debug(f'Returning the list of directories as {list_workspaces}')
164+
log.debug(f'Returning the list of workspaces as {list_workspaces}')
165165
return list_workspaces
166166

167167
def get_termination_status(self, workspace_id, billable_time, tags):

0 commit comments

Comments
 (0)