Loading
Commits on Source 2
-
Stan Hu authored
A golang-fips toolchain regression shipped broken Gitaly TLS in every GitLab 19.2.x FIPS build: the binary compiled cleanly but panicked on the first inbound TLS 1.3 handshake. No build or test gate caught it, because none ran a TLS handshake against the toolchain that shipped. Add v2/cmd/fips-tls-probe, a dependency-free command that completes a real TLS 1.2 and TLS 1.3 handshake in-process and exits non-zero on failure, hang, or panic. Both connections and the final wait carry a deadline so a stuck handshake fails loudly instead of hanging. With -require-fips it asserts the FIPS backend is active, so a green run proves the toolchain's FIPS TLS works rather than merely that it links. Pipelines that build a FIPS toolchain (gitlab-build-images, gitlab-omnibus-builder, CNG) can run it right after the build. A fips-tagged test exercises the command in the existing test-fips and test-fips-native CI jobs. The test-fips job already activates the BoringCrypto backend at runtime via GOLANG_FIPS and OPENSSL_FORCE_FIPS_MODE, so the handshake runs through golang-fips rather than standard Go crypto. Part of gitaly#7373
-
Matias Alvarez authored
feat(fips): add fips-tls-probe TLS acceptance command See merge request !787 Merged-by:
Matias Alvarez <malvarez@gitlab.com> Approved-by:
Matias Alvarez <malvarez@gitlab.com> Reviewed-by:
GitLab Duo <gitlab-duo@gitlab.com> Reviewed-by:
Matias Alvarez <malvarez@gitlab.com> Co-authored-by:
Stan Hu <stanhu@gmail.com>