Skip to content

Commit

Permalink
ci: cleanup awslc-fips versioning;bump awslc ver to v1.47.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Feb 28, 2025
1 parent 5479708 commit 6caeb8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
13 changes: 5 additions & 8 deletions codebuild/bin/install_awslc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ set -eu
pushd "$(pwd)"

usage() {
echo "install_awslc.sh build_dir install_dir is_fips"
echo -e "\tinstall_awslc.sh build_dir install_dir\n"
echo -e "\tIf you need FIPS, use the FIPS specific install script.\n"
exit 1
}

Expand All @@ -26,7 +27,6 @@ fi

BUILD_DIR=$1
INSTALL_DIR=$2
IS_FIPS=$3

if [[ ! -f "$(which clang)" ]]; then
echo "Could not find clang"
Expand All @@ -35,12 +35,9 @@ fi

# These tags represents the latest versions that S2N is compatible
# with. It prevents our build system from breaking when AWS-LC
# is updated, last done on 2023-02-22.
if [ "$IS_FIPS" == "1" ]; then
AWSLC_VERSION=AWS-LC-FIPS-1.0.3
else
AWSLC_VERSION=v1.36.0
fi
# is updated.
AWSLC_VERSION=v1.47.0

mkdir -p "$BUILD_DIR"||true
cd "$BUILD_DIR"
echo "Checking out tag=$AWSLC_VERSION"
Expand Down
8 changes: 6 additions & 2 deletions codebuild/bin/install_awslc_fips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,17 @@ INSTALL_DIR=$2
VERSION=$3

# Map version to a specific feature branch/tag.
# Note: since the next FIPS validation will be split off from main
# building main with FIPS enabled is essentially the next FIPS release.
case $VERSION in
"2022")
AWSLC_BRANCH=AWS-LC-FIPS-2.0.17
AWSLC_BRANCH=fips-2024-09-27
;;
"2024")
AWSLC_BRANCH=AWS-LC-FIPS-3.0.0
AWSLC_BRANCH=fips-2022-11-02
;;
"next")
AWSLC_BRANCH=main
*)
echo "Unknown version: $VERSION"
usage
Expand Down

0 comments on commit 6caeb8b

Please sign in to comment.