Skip to content

Commit

Permalink
Merge pull request #277 from aws-solutions/release_candidate/v1.1.10
Browse files Browse the repository at this point in the history
Update to version v1.1.10
  • Loading branch information
bassemwanis authored Nov 22, 2024
2 parents 84540f1 + d9f573b commit 10863ae
Show file tree
Hide file tree
Showing 25 changed files with 1,337 additions and 288 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.10] - 2024-11-22

### Security
- `cross-spawn` to mitigate [CVE-2024-21538]

### Updated
- Migrate Python dependency manager from pip to Poetry.


## [1.1.9] - 2024-11-01

### Security
Expand Down
20 changes: 15 additions & 5 deletions deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ while getopts ':h' OPTION; do
h)
echo
echo "script usage: $(basename $0) DIST_OUTPUT_BUCKET SOLUTION_NAME VERSION"
echo "example usage: ./$(basename $0) mybucket virtual-waiting-room-on-aws v1.1.9"
echo "example usage: ./$(basename $0) mybucket virtual-waiting-room-on-aws v1.1.10"
echo
echo "If no arguments are passed in, the following default values are used:"
echo "DIST_OUTPUT_BUCKET=rodeolabz"
echo "SOLUTION_NAME=virtual-waiting-room-on-aws"
echo "VERSION=v1.1.9"
echo "VERSION=v1.1.10"
echo
echo "You may export export these variables in your environment and call the script using those variables:"
echo "./$(basename $0) \$DIST_OUTPUT_BUCKET \$SOLUTION_NAME \$VERSION"
Expand Down Expand Up @@ -79,16 +79,16 @@ fi

if [ -z "$3" ]
then
echo "Setting default version to v1.1.9"
VERSION='v1.1.9'
echo "Setting default version to v1.1.10"
VERSION='v1.1.10'
fi

template_dir="$PWD" # /deployment
template_dist_dir="$template_dir/global-s3-assets"
build_dist_dir="$template_dir/regional-s3-assets"
pkg_dir="$template_dir/pkg"
source_dir="$template_dir/../source"
common_version=1.1.9
common_version=1.1.10

echo "------------------------------------------------------------------------------"
echo "[Init] Clean old dist, node_modules and bower_components folders"
Expand Down Expand Up @@ -153,6 +153,7 @@ echo Custom Resources
cd $source_dir/core-api/custom_resources
rm -rf error.txt package
mkdir package
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./package -r requirements.txt 2> error.txt
RETVAL=$?
if [ "$RETVAL" -ne "0" ]; then
Expand Down Expand Up @@ -193,6 +194,7 @@ cd $source_dir/openid-waitingroom/custom_resources
rm -rf error.txt package tmp
mkdir -p package
mkdir -p tmp
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./package -r requirements.txt 2> error.txt
RETVAL=$?
if [ "$RETVAL" -ne "0" ]; then
Expand Down Expand Up @@ -224,6 +226,8 @@ mkdir -p tmp
# install the common package into vendor
rm -rf vendor
mkdir -p vendor
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./vendor -r requirements.txt 2> error.txt
pip install $pkg_dir/virtual_waiting_room_on_aws_common-$common_version-py3-none-any.whl --target vendor
# generate the template and zip
chalice package --merge-template merge_template.json tmp/
Expand All @@ -249,6 +253,8 @@ mkdir -p tmp/
# install the common package into vendor
rm -rf vendor
mkdir -p vendor
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./vendor -r requirements.txt 2> error.txt
pip install $pkg_dir/virtual_waiting_room_on_aws_common-$common_version-py3-none-any.whl --target vendor
# generate the template and zip
chalice package --merge-template merge_template.json tmp/
Expand All @@ -272,6 +278,7 @@ cd $source_dir/core-api-authorizers-sample/custom_resources
rm -rf error.txt package tmp
mkdir -p package
mkdir -p tmp
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./package -r requirements.txt 2> error.txt
RETVAL=$?
if [ "$RETVAL" -ne "0" ]; then
Expand Down Expand Up @@ -315,6 +322,8 @@ cp virtual-waiting-room-on-aws-sample-custom-resources.zip $build_dist_dir/virtu
cd $source_dir/core-api-authorizers-sample/chalice
rm -rf tmp
mkdir -p tmp/
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./tmp -r requirements.txt 2> error.txt
chalice package --merge-template merge_template.json tmp/
RETVAL=$?
if [ "$RETVAL" != "0" ]; then
Expand All @@ -334,6 +343,7 @@ echo "--------------------------------------------------------------------------
cd $source_dir/sample-inlet-strategies
rm -rf error.txt package
mkdir -p package
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install --upgrade --force-reinstall --target ./package -r requirements.txt 2> error.txt
RETVAL=$?
if [ "$RETVAL" -ne "0" ]; then
Expand Down
16 changes: 0 additions & 16 deletions deployment/requirements.txt

This file was deleted.

6 changes: 1 addition & 5 deletions deployment/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ VENV=$(mktemp -d) && echo "$VENV"
python3 -m venv "$VENV"
source "$VENV"/bin/activate

# Install the common package into the virtual envronment before running
pip install ./pkg/virtual_waiting_room_on_aws_common-1.1.9-py3-none-any.whl || pip install -e ./../source/shared/virtual-waiting-room-on-aws-common
cd ./../deployment

# install dependencies
pip install -r requirements.txt

poetry install
# Get reference for all important folders
template_dir="$PWD"
echo "template_dir" $template_dir
Expand Down
130 changes: 3 additions & 127 deletions source/control-panel/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions source/control-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@
"postcss": "^8.4.31",
"semver": "^7.5.2",
"word-wrap": "^1.2.4",
"send": "0.19.0"
"send": "0.19.0",
"cross-spawn": "7.0.6"
},
"resolutions": {
"postcss": "^8.4.31",
"semver": "^7.5.2",
"word-wrap": "^1.2.4"
"word-wrap": "^1.2.4",
"send": "0.19.0",
"cross-spawn": "7.0.6"
},
"browserslist": [
"> 1%",
Expand Down
7 changes: 7 additions & 0 deletions source/core-api-authorizers-sample/chalice/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions source/core-api-authorizers-sample/chalice/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
name = "chalice"
version = "1.1.10"
description = "Chalice Code"
authors = ["Amazon Web Services"]
package-mode = false


[tool.poetry.dependencies]
python = ">3.9"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Loading

0 comments on commit 10863ae

Please sign in to comment.