Skip to content

Barbacane v1.0.0-rc.6

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Dec 10:09
· 6 commits to main since this release
a804bba

Post-quantum cryptography: a TLS policy that can require post-quantum key exchange, TLS 1.3 by default, TLS handshake metrics, and ML-DSA-87 artifact signatures. One change is breaking; it has an Upgrade note (breaking) below, and the migration guide covers it.

Added

  • data plane: --tls-policy sets the key exchange and cipher suites a TLS listener accepts. prefer-post-quantum, the default, offers hybrid post-quantum key exchange (X25519MLKEM768) first and X25519, P-256 and P-384 to clients without it, as before; post-quantum accepts only ML-KEM groups (X25519MLKEM768, SecP256r1MLKEM768, ML-KEM-1024, ML-KEM-768); cnsa2 accepts only ML-KEM-1024 and AES-256-GCM, as CNSA 2.0 requires. Both strict policies need TLS 1.3, and refuse a client that offers no group they accept during the handshake.
  • data plane: barbacane_tls_handshakes_total{version, key_exchange} counts completed TLS handshakes by protocol version and key exchange group, and barbacane_tls_handshake_failures_total{reason} those that did not complete (incompatible, timeout, error), so an operator sees which clients still negotiate classical key exchange before requiring post-quantum.
  • compiler, data plane: artifacts can be signed with ML-DSA-87 (FIPS 204), a signature a quantum computer cannot forge. barbacane key generate --algorithm ml-dsa-87 writes the key; the compiler and the control plane sign with whichever key BARBACANE_SIGNING_KEY holds (Ed25519 or ML-DSA-87, PKCS#8, as openssl genpkey -algorithm ML-DSA-87 writes one too), and BARBACANE_TRUSTED_PUBKEY takes ml-dsa-87: and the key's hex. Ed25519 stays the default; a data plane pinning a key of one algorithm refuses an artifact signed with the other.
  • docs: a cryptography page lists the algorithms each part of Barbacane uses, and the FIPS guide covers post-quantum key exchange in a FIPS build.

Changed

  • data plane: a TLS listener accepts TLS 1.3 only by default; --tls-min-version defaulted to 1.2. Post-quantum key exchange exists only in TLS 1.3, so a TLS 1.2 client got classical key exchange.

    Upgrade note (breaking): a client that speaks only TLS 1.2 fails the handshake. Pass --tls-min-version 1.2 to admit it.

  • ci: the fuzz workflows summarise each finding by its panic location and message (the message is on the line after the location), so two panics at one line are two groups, and a panic in the YAML differential that is not a difference shows its message instead of deadly signal.