PQC Emergency Gateway · Apache-2.0 Sidecar
Enforce X25519MLKEM768 transport and ML-DSA auth beside any internal API.
Drop the PostRSA PQC Emergency Gateway beside your existing service. It enforces TLS 1.3 hybrid key exchange (X25519MLKEM768), supports private-mldsa controlled-client mTLS, and verifies RFC 9964 ML-DSA-65 tokens against a strict local JWKS with durable replay protection, with no changes to your application SDK.
Threat-model scope
What the gateway protects under RSA-only and RSA + ECC (P = BQP) breaks
Hybrid KEX protects transport confidentiality, while private-mldsa is built for controlled clients and internal PKI, not public browser trust roots.
| Gateway Control | RSA-Only Break (Scenario A) | P=BQP / RSA + ECC Break (Scenario B) | Operational Boundary |
|---|---|---|---|
| TLS 1.3 Hybrid KEX X25519MLKEM768 | ■ Protected | ■ Protected | Protects transport confidentiality against harvest-now-decrypt-later and classical KEX breaks. |
| Controlled-Client mTLS private-mldsa mode | ■ Protected | ■ Protected | For controlled internal services, partners, and private PKI. Does not replace public browser Web PKI roots. |
| Local JWKS Token Verification RFC 9964 ML-DSA-65 | ■ Protected | ■ Protected | Fail-closed local key file only (no remote JWKS fetches). Rejects RS256, ES256, HS256, and none. |
| Public Browser Web PKI Public CA leaf / root chain | ▲ Use ECDSA Leaf | ◆ Ecosystem-Blocked | Outside any proxy's unilateral control until public browsers and CAs ship ML-DSA root programs. |
Caller / Controlled Client
Connects over TLS 1.3 with hybrid X25519MLKEM768 and presents a private-mldsa client cert or RFC 9964 ML-DSA-65 bearer token.
HAProxy 3.2 + Go Auth Adapter
Terminates hybrid TLS, verifies local ML-DSA JWKS, rejects RS256/HS256/none downgrades, blocks replayed jti tokens, and strips spoofed headers.
Localhost Upstream (127.0.0.1)
Receives clean requests with verified X-Verified-Sub & X-Auth-Alg: ML-DSA-65 headers. Zero SDK rewrite required.
Deployment Snippets
Run beside your service in 60 seconds
Strict fail-closed config. Unknown keys, remote JWKS URLs, and downgrade flags are rejected at startup.
docker build -f proxy/Dockerfile -t postrsa-proxy:local .
docker run --rm --name postrsa --network container:my-app \
--read-only --cap-drop ALL --security-opt no-new-privileges \
--tmpfs /tmp:rw,noexec,nosuid,size=32m \
-v "$PWD/config:/etc/postrsa:ro" \
-v postrsa-replay:/var/lib/postrsa postrsa-proxy:local # Strict YAML profile: top-level scalar keys only. JSON with this schema also works.
# Application MUST bind loopback in the same network namespace as the sidecar.
listen: "0.0.0.0:8443"
upstream: "http://127.0.0.1:8080"
mode: hybrid
no_downgrade: true
cert: /etc/postrsa/tls/server.pem
ca: /etc/postrsa/tls/ca.pem
adapter_listen: "127.0.0.1:9080"
jwks: /etc/postrsa/jwks.json
issuer: local-issuer
audience: local-service helm upgrade --install postrsa-proxy ./proxy/deploy-kit/helm \
--namespace security --create-namespace \
--set image.repository=postrsa-proxy \
--set tls.mode=hybrid \
--set auth.algorithm=ML-DSA-65 Native OpenSSL 3.5 measurements
Real Measured Benchmarks (Zero Marketing Estimates)
100 iterations per algorithm measured natively on Apple M5 Max (OpenSSL 3.5.9). ML-DSA tokens are ~5–8× larger on the wire than RSA or Ed25519, so check your HTTP header size limits.
| Algorithm | Type | Verify (p50) | Signature Size | Total JWS Wire Size |
|---|---|---|---|---|
| RS256 | RSA | 256 B | ||
| ES256 | ECC | 64 B | ||
| EdDSA | ECC | 64 B | ||
| ML-DSA-44 | Post-Quantum | 2,420 B | ||
| ML-DSA-65 | Post-Quantum | 3,309 B | ||
| ML-DSA-87 | Post-Quantum | 4,627 B |
Production Deployment Kit
Everything your platform team needs to ship it cleanly.
The Go proxy and HAProxy container are open source. The $99 (£79) Deploy Kit saves your team days of wiring with production-ready Helm charts, Terraform modules, Grafana dashboards, Prometheus alerts, and zero-downtime key rotation runbooks.
- Validated Kubernetes Helm chart + read-only hardened Deployment manifests
- Terraform module with pinned provider lockfile
- Pre-built Grafana dashboard & 6 Prometheus metric alert rules
- Zero-downtime SIGHUP key rotation & incident rollback runbook
- Credited in full toward a Degaus zero-access CBOM review booked within 30 days
Instant .tar.gz download · Apache-2.0 adapter + GPL-2.0 HAProxy source included