Skip to content

Commit 9518f36

Browse files
committed
ci: cleanup awslc-fips versioning;bump awslc ver to v1.47.0
1 parent 5479708 commit 9518f36

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

codebuild/bin/install_awslc.sh

+5-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ set -eu
1616
pushd "$(pwd)"
1717

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

@@ -26,7 +27,6 @@ fi
2627

2728
BUILD_DIR=$1
2829
INSTALL_DIR=$2
29-
IS_FIPS=$3
3030

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

3636
# These tags represents the latest versions that S2N is compatible
3737
# with. It prevents our build system from breaking when AWS-LC
38-
# is updated, last done on 2023-02-22.
39-
if [ "$IS_FIPS" == "1" ]; then
40-
AWSLC_VERSION=AWS-LC-FIPS-1.0.3
41-
else
42-
AWSLC_VERSION=v1.36.0
43-
fi
38+
# is updated.
39+
AWSLC_VERSION=v1.47.0
40+
4441
mkdir -p "$BUILD_DIR"||true
4542
cd "$BUILD_DIR"
4643
echo "Checking out tag=$AWSLC_VERSION"

codebuild/bin/install_awslc_fips.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ INSTALL_DIR=$2
5050
VERSION=$3
5151

5252
# Map version to a specific feature branch/tag.
53+
# Note: since the next FIPS validation will be split off from main
54+
# building main with FIPS enabled is essentially the next FIPS release.
5355
case $VERSION in
5456
"2022")
55-
AWSLC_BRANCH=AWS-LC-FIPS-2.0.17
57+
AWSLC_BRANCH=fips-2022-11-02
5658
;;
5759
"2024")
58-
AWSLC_BRANCH=AWS-LC-FIPS-3.0.0
60+
AWSLC_BRANCH=fips-2024-09-27
61+
;;
62+
"next")
63+
AWSLC_BRANCH=main
5964
;;
6065
*)
6166
echo "Unknown version: $VERSION"

0 commit comments

Comments
 (0)