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
| Area | Today | Quantum risk |
|---|---|---|
| TLS key exchange, every connection | Hybrid ML-KEM (X25519MLKEM768) first; --tls-policy can require ML-KEM on the listener | Covered when both sides speak ML-KEM. A classical key exchange can be recorded now and broken later |
| TLS certificates | The operator’s: RSA, ECDSA, Ed25519 or ML-DSA-87 | RSA, ECDSA, Ed25519: a forged signature needs a quantum computer at the time of the handshake. ML-DSA-87 is post-quantum |
| Artifact signatures | Ed25519, or ML-DSA-87 with an ML-DSA-87 signing key | Ed25519: as certificates, only a signature checked after such a computer exists is at risk. ML-DSA-87 is post-quantum |
| JWT verification | RSA and ECDSA | As certificates |
| Release signing | Sigstore keyless, ECDSA P-256 | As certificates |
| Hashes, HMAC, AES | SHA-256, HMAC-SHA256, AES-GCM | Known quantum algorithms weaken them only modestly; CNSA 2.0 asks for AES-256 and SHA-384 or SHA-512 |
Transport
| Connection | Key exchange | TLS versions |
|---|---|---|
Client to data plane (--tls-cert) | Per --tls-policy: X25519MLKEM768, then X25519, P-256, P-384 by default | 1.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-384 | 1.2, 1.3 |
Data plane to control plane (wss://) | X25519MLKEM768, then X25519, P-256, P-384 | 1.2, 1.3 |
ldap-auth to the directory (ldaps://, StartTLS) | X25519MLKEM768, then X25519, P-256, P-384 | 1.2, 1.3 |
| OpenTelemetry export (OTLP over gRPC or HTTP, with TLS) | X25519MLKEM768, then X25519, P-256, P-384 | 1.2, 1.3 |
| Control plane to PostgreSQL | X25519MLKEM768, then X25519, P-256, P-384 | 1.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
| Use | Algorithm | Where |
|---|---|---|
| Artifact integrity | SHA-256 over the artifact’s contents (artifact_hash) | Compiler, data plane |
| Artifact signature | Ed25519 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 verification | RS256, RS384, RS512 (RSA 2048 to 8192 bits), ES256, ES384 | jwt-auth, oidc-auth |
| S3 request signing | AWS Signature Version 4 (HMAC-SHA256) | s3 |
hash capability | SHA-256 | Plugins that declare it |
| LDAP bind cache | HMAC-SHA256 keyed by the bind password | ldap-auth |
| Control plane API keys | Stored as SHA-256 hashes | Control plane |
| Randomness | random_get: AWS-LC’s generator, seeded by the operating system; UUIDs: the operating system’s generator | Data 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.