Security

How to enable post-quantum TLS on Kubernetes, Nginx and cloud load balancers

Capy team

Enable TLS 1.3 hybrid key exchange with X25519MLKEM768 at every termination hop across your CDN, cloud load balancers, Kubernetes ingress and mesh. Pin a PQ policy on AWS ALBs, run Nginx on OpenSSL 3.5, replace retired ingress-nginx with Envoy Gateway and switch cert-manager to ECDSA P-384. Verify each hop with OpenSSL 3.5 and load balancer logs.

How to configure post-quantum TLS on cloud load balancers and CDNs

A post-quantum edge in front of a classical backend leaves inner TLS hops exposed, so inventory every hostname, load balancer, ingress controller, mesh namespace and issuer before editing configs. Enable X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 under IETF RFC 10024 as part of the NSA December 2026 post-quantum advisory engineering checklist, and see Post-quantum TLS 1.3 with hybrid key exchange for protocol details.

ProviderSettingWhat to check
CloudflareX25519MLKEM768 on visitor TLS 1.3, ML-DSA origin authUse Full or Full (strict) mode to hybrid origins. Check Radar, HTTP Analytics and Logpush.
Amazon CloudFrontX25519MLKEM768 and SecP256r1MLKEM768 on viewer TLS 1.3Covers viewer-to-CloudFront only. Upgrade your origin ALB or Nginx separately.
AWS ALBELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09 or FIPS ELBSecurityPolicy-TLS13-1-2-Res-FIPS-PQ-2025-09CLI, CloudFormation and CDK default to ELBSecurityPolicy-2016-08. Check ALB log field 5 for TLS version and field 13 for key exchange.
Google Cloud LBX25519MLKEM768 default on external, internal, classic ALBs and proxy NLBsDoes not cover backend hops. Upgrade Nginx, Envoy or Kubernetes ingress separately.

Pin ssl_policy on every Terraform aws_lb_listener so automation never falls back to ELBSecurityPolicy-2016-08:

resource "aws_lb_listener" "https" {
  load_balancer_arn = aws_lb.public.arn
  port              = 443
  protocol          = "HTTPS"
  ssl_policy        = "ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09"
  certificate_arn   = aws_acm_certificate.public.arn

  default_action {
    type             = "forward"
    target_group_arn = aws_lb_target_group.app.arn
  }
}

How to enable X25519MLKEM768 on Nginx and retire ingress-nginx

Plain Nginx negotiates X25519MLKEM768 only on OpenSSL 3.5 or newer. OpenSSL 3.0 cannot negotiate hybrid groups, so check nginx -V and openssl list -tls1_3 -tls-groups first. Require TLS 1.3 with X25519MLKEM768 ahead of X25519, then drop X25519 once logs confirm hybrid clients:

server {
    listen 443 ssl;
    server_name api.example.com;

    ssl_certificate     /etc/nginx/certs/fullchain.pem;
    ssl_certificate_key /etc/nginx/certs/privkey.pem;

    ssl_protocols  TLSv1.3;
    ssl_ecdh_curve X25519MLKEM768:X25519;
}

The Kubernetes project retired ingress-nginx, and best-effort maintenance ended in March 2026 with no further releases or security fixes, per the Kubernetes blog. Move those routes to Gateway API instead of patching it.

How to roll out TLS changes across repos with Capy

Updating dozens of Terraform and Helm repos by hand stalls in review queues. Capy runs the rollout in parallel while merges and applies stay with your team.

  • One thread per repo. A Capy Captain splits the rollout into one thread per repository, and each thread opens and follows its own PR through CI and review.
  • Isolated verification. Each thread runs on its own isolated cloud microVM with the repo cloned, runs terraform plan, helm template, the test suite and TLS handshake checks, and attaches plan output without running terraform apply.
  • PR guardrails. Capy Review enforces plain-English rules in AGENTS.md under ## Reviews plus organization Review settings, and flags P-256, Ed25519, sub-3072 RSA and classical curve regressions before merge.
  • Scheduled rescans and human merges. Automations run a stored prompt weekly to open a PR when weak crypto returns, and Capy never merges unless asked.

How to configure Envoy Gateway, Istio and cert-manager

With Envoy Gateway, attach a ClientTrafficPolicy with spec.tls.minVersion: "1.3" and X25519MLKEM768 ahead of X25519 in spec.tls.ecdhCurves, then drop X25519 to reject classical handshakes. Raw Envoy includes X25519MLKEM768 in BoringSSL's defaults, so remove any classical ecdh_curves pin in tls_params.

Istio 1.27 added COMPLIANCE_POLICY=pqc, which enforces TLS 1.3 with TLS_AES_128_GCM_SHA256 and TLS_AES_256_GCM_SHA384 and replaces the group list with X25519MLKEM768. Peers without ML-KEM fail, so test in staging first. In ambient mode, set it on both istiod and ztunnel, because meshConfig.tlsDefaults.ecdhCurves affects only non-mesh TLS:

pilot:
  env:
    COMPLIANCE_POLICY: pqc

cert-manager does not issue ML-DSA keys yet, and support is planned for Go 1.27 in issue #8929. Stop issuing P-256 certificates and set spec.privateKey.algorithm: ECDSA with size: 384. If a workload needs RSA, set size: 4096, because cert-manager only accepts RSA sizes 2048, 4096 and 8192. Keep rotationPolicy: Always, the default since cert-manager v1.18, so every renewal rotates the key.

How to verify X25519MLKEM768 across every TLS hop

Check openssl version first, because OpenSSL 3.0 cannot send X25519MLKEM768. Probe your CDN, load balancer, Gateway and Nginx hosts with OpenSSL 3.5 or newer and confirm each handshake reports X25519MLKEM768:

openssl s_client -connect api.example.com:443 \
  -groups X25519MLKEM768 -tls1_3 < /dev/null

For fleet scans, run testssl.sh 3.3dev pre-release snapshot 2611, published November 4, 2026, with --openssl set to OpenSSL 3.5 or LibreSSL 4.3, and watch ALB connection log fields 5 and 13 plus Cloudflare logs for legacy clients. For CI gates, see Block weak RSA and ECC in CI and PR review.

Frequently Asked Questions

Does post-quantum TLS on Cloudflare or Google Cloud protect backend traffic?+
No. Google Cloud covers frontend TLS only, and Cloudflare negotiates hybrid origin key exchange only in Full or Full (strict) mode with a hybrid-capable origin.
Why did my Terraform AWS ALB miss the post-quantum security policy?+
The AWS console defaults new HTTPS listeners to ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09, while the CLI, CloudFormation and CDK default to ELBSecurityPolicy-2016-08. Pin ssl_policy on every aws_lb_listener.
What breaks if I set COMPLIANCE_POLICY=pqc in Istio?+
In Istio 1.27 and newer, COMPLIANCE_POLICY=pqc replaces the TLS group list with X25519MLKEM768, so peers without ML-KEM fail the handshake. Set it on both istiod and ztunnel in ambient mode.
Does cert-manager issue ML-DSA certificates today?+
No, ML-DSA keys in cert-manager are still in design for Go 1.27. Issue ECDSA P-384 keys today, or RSA 4096 because cert-manager only accepts RSA sizes 2048, 4096 and 8192, with rotationPolicy set to Always.

Sources

  1. NSA: Immediate Actions to Push Toward Post-Quantum (PP-26-4956)
  2. IETF RFC 10024: Post-Quantum Traditional Hybrid Key Agreement Mechanisms for TLS 1.3
  3. AWS Docs: Application Load Balancer SSL policies
  4. Kubernetes Blog: Ingress NGINX Retirement

Spotted something out of date? Tell us at support@capy.ai.

Update Terraform and Helm repos with a Capy Captain

Give a Captain your TLS policy spec. It opens one tested pull request per infrastructure repo with plan output for your team to review and apply.