Post-quantum TLS for self-hosted Bifrost Enterprise
Akshay Deo
Dec 04, 2026 · 5 min read

Bifrost Enterprise already offers hybrid post-quantum key exchange on every outbound TLS connection, with no configuration. The inbound side terminates on your load balancer or ingress, so that is a one-line change on infrastructure you own. This post shows both, and how to prove each hop.
Bifrost already does its half
Post-quantum TLS on a gateway has two halves. The half Bifrost controls is every connection it opens: to model providers, MCP servers, webhooks and telemetry sinks. That half has offered hybrid key exchange by default since the first stable release (15th April 2025). You did not configure it, and you do not need to upgrade for it.
The other half is the TLS endpoint in front of Bifrost. Enterprise runs in your VPC, so your certificates, keys and load balancer never leave your hands. We do not terminate your TLS, and we cannot flip that setting for you. This post is the reference for flipping it yourself.
Where TLS lives in your deployment
Bifrost Enterprise runs inside your VPC. The gateway process listens on plain HTTP and expects your load balancer, ingress or mesh to terminate TLS in front of it. That gives three hops, with two different owners.

| Hop | TLS endpoint | Who configures it | Post-quantum status |
|---|---|---|---|
| Client to your edge | Your ALB, NLB, NGINX or ingress controller | You | Opt in on the edge. One setting. |
| Edge to Bifrost pod | None by default. Plain HTTP inside the cluster. | You (mesh or network policy) | Follows your mesh, if you run one. |
| Bifrost to providers | Bifrost is the TLS client | Bifrost, by default | Hybrid offered on every connection. |
The same default covers every other outbound connection Bifrost makes: MCP servers, webhooks, OTel collectors, Kafka and Splunk sinks, your HTTPS proxy, and the cluster broker when TLS is on.
What Bifrost does out of the box
Bifrost is built with Go 1.27 and uses Go's standard crypto/tls. There is no OpenSSL in the request path and nothing to recompile.
Go has offered X25519MLKEM768 by default since 1.24, and added SecP256r1MLKEM768 and SecP384r1MLKEM1024 in 1.26. A client gets all three whenever its config leaves the key exchange list unset. Every TLS config Bifrost builds does exactly that:
The resulting offer, in preference order:
| Order | Group | Type |
|---|---|---|
| 1 | X25519MLKEM768 | Hybrid post-quantum |
| 2 | SecP256r1MLKEM768 | Hybrid post-quantum |
| 3 | SecP384r1MLKEM1024 | Hybrid post-quantum |
| 4 to 7 | X25519, P-256, P-384, P-521 | Classical fallback |
If the provider supports a hybrid group, the session uses it. If not, the handshake falls back to classical and the request still succeeds. Nothing breaks either way.
Turn it on, hop by hop
1. Client to your edge
This is the only hop that needs a change. Pick the block that matches what sits in front of Bifrost.
AWS ALB or NLB. AWS ships security policies with hybrid key exchange. They are opt in for listeners created through the CLI, CloudFormation or CDK. With the Bifrost Helm chart and the AWS Load Balancer Controller:
For an existing listener:
Use ELBSecurityPolicy-TLS13-1-2-FIPS-PQ-2025-09 if you need the FIPS variant. Both keep TLS 1.2 and classical TLS 1.3 clients working.
NGINX. NGINX takes its groups from the OpenSSL it was built against. You need OpenSSL 3.5 or later, which turns hybrid on by default. Check with nginx -V. To pin the order explicitly:
On an older OpenSSL the hybrid name is unknown and NGINX refuses to start. Upgrade the image before you add the line.
Other edges. GCP, Azure, Envoy, Istio, HAProxy and Cloudflare each have their own setting. The rule is the same: put a hybrid group first and keep a classical group behind it.
2. Edge to Bifrost
Bifrost listens on plain HTTP on port 8080. Inside a private subnet that is the standard pattern. If your policy requires encryption on this hop too, use a service mesh or sidecar and apply its key exchange settings there.
3. Bifrost to providers
Nothing to do. Two things to avoid:
- Do not set
GODEBUG=tlsmlkem=0on the Bifrost container. It removes all hybrid groups from the offer. - If a TLS-inspecting proxy sits between Bifrost and the internet, the proxy becomes the TLS client to the provider. Its key exchange support decides the outcome, not Bifrost's.
Prove it
A successful request tells you nothing about which group was negotiated. Check each direction.
Inbound: your edge
You need OpenSSL 3.5 or later on the machine running the test. Check with openssl version.
Look for this line in the output:
A handshake failure means the edge does not offer the hybrid group yet.
Outbound: Bifrost to a provider
This probe builds the same TLS config Bifrost uses and prints the group each endpoint negotiates. Run it from the network Bifrost runs in, so it sees the same proxies and firewalls. It needs Go 1.25 or later.
Example output:
A line that says classical means that provider endpoint, or a proxy in between, does not support a hybrid group yet. Bifrost upgrades on its own the day they do.
Enforcing it, and what to know first
Hybrid first is the right default. Clients that support it get it. Older SDKs and tools still connect. Start here and watch your edge logs. On NGINX, add $ssl_curve to the access log format to see the negotiated group per connection.
Hybrid only is a policy decision. To reject classical clients on NGINX, restrict the list and require TLS 1.3:
Then confirm a classical client is refused:
Every client of the gateway must support a hybrid group before you do this. That includes CI runners, internal services on older runtimes, and monitoring probes. The AWS policies named above keep classical fallback by design.
Outbound stays opportunistic. Bifrost prefers hybrid and falls back to classical when a provider does not support it. A hard requirement would fail requests to those providers, so it is not the default.
The first handshake message is bigger. A hybrid key share adds about 1.2 KB to the ClientHello. Old firewalls and TLS-inspecting proxies sometimes drop or mishandle it. If handshakes hang after you enable hybrid, check the middlebox first.
This covers key exchange, not certificates. Your existing RSA or ECDSA certificates keep working. Post-quantum signatures are a separate migration, and recorded traffic is not exposed by waiting on it.