Guide 02 · Edge configuration

Enforce ML-KEM where TLS ends.

Configure the proxy that owns the private key and answers the handshake. These strict examples allow only TLS 1.3 with X25519MLKEM768, removing both classical key-exchange and TLS 1.2 fallback.

Traefik

Attach a strict TLSOption to individual Ingresses or an entire namespace.

Namespace scoped

Confirm hybrid group support

Traefik passes curvePreferences to Go’s TLS stack. Your deployed Traefik version must recognize X25519MLKEM768; upgrade the image if the CRD is accepted but handshakes do not negotiate the group.

Create a strict TLSOption

Keep the resource in the same namespace as the Ingresses that will use it. TLS 1.3 is required because this hybrid group is not available in TLS 1.2.

mlkem-tlsoption.yaml
yaml
apiVersion: traefik.io/v1alpha1
kind: TLSOption
metadata:
  name: mlkem-only
  namespace: production
spec:
  minVersion: VersionTLS13
  maxVersion: VersionTLS13
  curvePreferences:
    - X25519MLKEM768

Attach it to the Ingress

Merge this metadata and TLS configuration into your application Ingress. The annotation value is namespace-name@kubernetescrd.

Ingress excerpt
yaml
metadata:
  annotations:
    traefik.ingress.kubernetes.io/router.tls.options: production-mlkem-only@kubernetescrd
spec:
  ingressClassName: traefik
  tls:
    - hosts: [app.example.com]
      secretName: secure-app-tls
Official Traefik TLSOption reference

NGINX

Require the hybrid group through NGINX’s OpenSSL configuration.

Controller wide

Check the linked OpenSSL version

Native X25519MLKEM768 support requires OpenSSL 3.5 or newer. The library linked into NGINX matters, not just the openssl package installed elsewhere on the host.

Check, apply, and reload
shell
# Run inside the actual controller container or image.
nginx -V 2>&1 | grep -i openssl
openssl version
openssl list -tls1_3 -tls-groups | grep X25519MLKEM768

# Apply the controller ConfigMap, then reload its deployment.
kubectl apply -f nginx-mlkem-configmap.yaml
kubectl -n ingress-nginx rollout restart deployment/ingress-nginx-controller

Restrict the controller to ML-KEM

The ConfigMap enables only TLS 1.3 and passes a single key-exchange group to NGINX. Adapt the ConfigMap, namespace, and Deployment names to your installation.

nginx-mlkem-configmap.yaml
yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: ingress-nginx-controller
  namespace: ingress-nginx
data:
  ssl-protocols: "TLSv1.3"
  ssl-ecdh-curve: "X25519MLKEM768"

Or configure a native NGINX server

For standalone NGINX or a custom controller template, the equivalent server block uses the same TLS protocol and group restrictions.

nginx.conf excerpt
nginx
server {
    listen 443 ssl;
    server_name app.example.com;

    ssl_protocols TLSv1.3;
    ssl_ecdh_curve X25519MLKEM768;

    ssl_certificate     /etc/tls/tls.crt;
    ssl_certificate_key /etc/tls/tls.key;

    location / {
        proxy_pass http://secure-app;
    }
}

Prove the result on the wire

Run these checks from a client with OpenSSL 3.5+. Replace app.example.com with the public hostname and connect to the actual external TLS endpoint.

Verify strict hybrid TLS
shell
# Hybrid TLS 1.3 must succeed.
openssl s_client \
  -connect app.example.com:443 \
  -servername app.example.com \
  -tls1_3 -groups X25519MLKEM768 -brief

# Classical-only TLS 1.3 must fail in strict mode.
openssl s_client \
  -connect app.example.com:443 \
  -servername app.example.com \
  -tls1_3 -groups X25519 -brief

# TLS 1.2 must also fail.
openssl s_client \
  -connect app.example.com:443 \
  -servername app.example.com \
  -tls1_2 -brief