Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cryptography

This page lists the cryptography each part of Barbacane uses, as an inventory for a security review or a post-quantum migration plan. Every TLS connection uses rustls with the aws-lc-rs backend, and artifact signatures, JWT verification, random_get and the data plane’s SHA-256 use aws-lc-rs directly; a FIPS build of the data plane swaps in the FIPS-validated AWS-LC module for all of them. The control plane hashes API keys with the sha2 crate.

Post-quantum status

AreaTodayQuantum risk
TLS key exchange, every connectionHybrid ML-KEM (X25519MLKEM768) first; --tls-policy can require ML-KEM on the listenerCovered when both sides speak ML-KEM. A classical key exchange can be recorded now and broken later
TLS certificatesThe operator’s: RSA, ECDSA, Ed25519 or ML-DSA-87RSA, ECDSA, Ed25519: a forged signature needs a quantum computer at the time of the handshake. ML-DSA-87 is post-quantum
Artifact signaturesEd25519, or ML-DSA-87 with an ML-DSA-87 signing keyEd25519: as certificates, only a signature checked after such a computer exists is at risk. ML-DSA-87 is post-quantum
JWT verificationRSA and ECDSAAs certificates
Release signingSigstore keyless, ECDSA P-256As certificates
Hashes, HMAC, AESSHA-256, HMAC-SHA256, AES-GCMKnown quantum algorithms weaken them only modestly; CNSA 2.0 asks for AES-256 and SHA-384 or SHA-512

Transport

ConnectionKey exchangeTLS versions
Client to data plane (--tls-cert)Per --tls-policy: X25519MLKEM768, then X25519, P-256, P-384 by default1.3; 1.2 with --tls-min-version 1.2
Data plane to upstreams (http-upstream, ws-upstream, lambda, s3, plugin HTTP calls)X25519MLKEM768, then X25519, P-256, P-3841.2, 1.3
Data plane to control plane (wss://)X25519MLKEM768, then X25519, P-256, P-3841.2, 1.3
ldap-auth to the directory (ldaps://, StartTLS)X25519MLKEM768, then X25519, P-256, P-3841.2, 1.3
OpenTelemetry export (OTLP over gRPC or HTTP, with TLS)X25519MLKEM768, then X25519, P-256, P-3841.2, 1.3
Control plane to PostgreSQLX25519MLKEM768, then X25519, P-256, P-3841.2, 1.3

An outbound connection offers X25519MLKEM768 first and settles on a classical group only when the server does not speak ML-KEM. TLS 1.3 cipher suites are AES-256-GCM, AES-128-GCM and ChaCha20-Poly1305 (cnsa2: AES-256-GCM only; a FIPS build: no ChaCha20-Poly1305).

The control plane’s HTTP API is served without TLS; terminate TLS in front of it.

Signatures and integrity

UseAlgorithmWhere
Artifact integritySHA-256 over the artifact’s contents (artifact_hash)Compiler, data plane
Artifact signatureEd25519 or ML-DSA-87 (FIPS 204) over artifact_hash, as the signing key is; the data plane pins the public key (BARBACANE_TRUSTED_PUBKEY)Compiler, data plane
JWT verificationRS256, RS384, RS512 (RSA 2048 to 8192 bits), ES256, ES384jwt-auth, oidc-auth
S3 request signingAWS Signature Version 4 (HMAC-SHA256)s3
hash capabilitySHA-256Plugins that declare it
LDAP bind cacheHMAC-SHA256 keyed by the bind passwordldap-auth
Control plane API keysStored as SHA-256 hashesControl plane
Randomnessrandom_get: AWS-LC’s generator, seeded by the operating system; UUIDs: the operating system’s generatorData plane

Release artifacts

Container images are signed keyless with Sigstore (cosign sign, a short-lived ECDSA P-256 certificate from Fulcio) and carry a CycloneDX SBOM attestation per platform. Release binaries carry a build provenance attestation. The configuration reference shows how to verify both.