From dbfcaebe9faaf4f8d306ed58486b5f25f7e854ba Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Tue, 7 Apr 2026 16:32:27 +0200 Subject: [PATCH] Update TLS profiles to Mozilla v5.8 Minimal changes to make verify work: - Change INPUT URL from latest.json to 5.8.json - Update ciphers.go to ciphers.iana (Mozilla v5.8 format change) - Add X25519MLKEM768 post-quantum curve constant - Filter out unsupported ciphers not in Go's crypto/tls: - TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 - TLS_RSA_WITH_AES_256_CBC_SHA256 - Update CHACHA20_POLY1305 constants to include _SHA256 suffix Co-Authored-By: Claude Sonnet 4.5 --- hack/tools/update-tls-profiles.sh | 8 ++++++-- .../shared/util/tlsprofiles/mozilla_data.go | 15 +++++++++------ .../shared/util/tlsprofiles/tlsprofiles.go | 18 ++++++++++-------- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/hack/tools/update-tls-profiles.sh b/hack/tools/update-tls-profiles.sh index 8fa61c43ee..29b8d8790a 100755 --- a/hack/tools/update-tls-profiles.sh +++ b/hack/tools/update-tls-profiles.sh @@ -8,7 +8,7 @@ if [ -z "${JQ}" ]; then fi OUTPUT=internal/shared/util/tlsprofiles/mozilla_data.go -INPUT=https://ssl-config.mozilla.org/guidelines/latest.json +INPUT=https://ssl-config.mozilla.org/guidelines/5.8.json TMPFILE="$(mktemp)" trap 'rm -rf "$TMPFILE"' EXIT @@ -38,7 +38,7 @@ cipherNums: []uint16{ EOF ${JQ} -r ".configurations.$1.ciphersuites.[] | . |= \"tls.\" + . + \",\"" ${TMPFILE} >> ${OUTPUT} - ${JQ} -r ".configurations.$1.ciphers.go[] | . |= \"tls.\" + . + \",\"" ${TMPFILE} >> ${OUTPUT} + ${JQ} -r ".configurations.$1.ciphers.iana[] | . |= \"tls.\" + . + \",\"" ${TMPFILE} >> ${OUTPUT} cat >> ${OUTPUT} <