aws / s2n-tls

An implementation of the TLS/SSL protocols
https://aws.github.io/s2n-tls/usage-guide/
Apache License 2.0
4.52k stars 704 forks source link

Add awslc-fips to fuzz batch list #4800

Open jouho opened 1 week ago

jouho commented 1 week ago

Problem:

While I was trying to run fuzz test with awslc-fips in #4795, there was compilation error:

CMake Error at /usr/local/awslc-fips/lib/crypto/cmake/crypto-config.cmake:8 (include):
--
56 | include could not find requested file:
57 |  
58 | /usr/local/awslc-fips/lib/crypto/cmake/static/crypto-targets.cmake
59 | Call Stack (most recent call first):
60 | CMakeLists.txt:245 (find_package)

Full log here.

It seems to be a cmake specific error, since all other tests that are build with awslc-fips/awslc-fips-2022 are built using make build system. We may need to implement a cmake specific logic to built with awslc-fips. I confirmed the docker image being used is installed with awslc-fips.

Solution:

Investigate why awslc-fips isn't compiling when built with cmake, find a solution to it, and add a new test to buildspec_fuzz_batch.yml that uses awslc-fips

Requirements / Acceptance Criteria:

Confirm that the fuzz tests are compiling/built with awslc-fips