In-Process PQC Providers or a Termination Tier: Fleet Heterogeneity Decides

A hybrid key share built on ML-KEM-768 adds a 1184-byte encapsulation key to every ClientHello, and that change is where most post-quantum rollouts actually break. Before design freeze, the question is where negotiation lives when something on the path rejects it. Which library implements the KEM correctly matters much less. Loading liboqs through an OpenSSL 3 provider inside each service and terminating post-quantum TLS on a dedicated proxy tier fail in very different ways, and the one you can tolerate depends on how many independent TLS stacks your fleet has to keep in agreement.

How each option breaks

In the in-process design, every service loads the provider through its OpenSSL configuration and offers a group list with the hybrid first and a classical group behind it. When a base image bump brings an ABI mismatch and the provider fails to load, the result depends on configuration detail: the process either refuses to start, which is the good outcome, or it ignores the unknown group name and negotiates X25519 alone. The blast radius stays at one deployment, but detection is poor because the handshake completes. The termination tier inverts this. One fleet of proxies speaks hybrid TLS to the outside world and classical or mutual TLS inward, so a bad build there affects every external connection at once. It is also a single artifact with a single rollback and a single place to observe the negotiated group. Both designs share the transport fault: the larger ClientHello now spans two TCP segments, and older load balancers and inspection boxes that assume it fits in one will reset the connection, while modern clients generally do not retry without the post-quantum share.

The fault that should dominate your evaluation is silent downgrade, because a handshake that settles on a classical group passes every health check you currently run, and only telemetry on the negotiated group will expose it.

The boundary is the number of TLS lineages

If one library lineage terminates all external traffic, keep the providers in-process: one configuration, one provider build, failures isolated per service and no extra network hop. Once two or more lineages do that job, the picture flips. Typical candidates are Go's crypto/tls in some services, BoringSSL inside an Envoy edge, and wolfSSL on embedded gateways. Each ships hybrid groups on its own schedule with its own default preference list, and during the move from the Kyber draft codepoint to the final ML-KEM codepoint, a client offering only one and a server accepting only the other fell back to classical without raising an error. Keeping several stacks aligned is a pairwise problem. With three lineages it comes to roughly nine client and server pairings to retest per release (an estimate), and the termination tier collapses that to the one stack you control at the boundary. The decision rule is simple: centralize as soon as a second lineage terminates external connections, and stay in-process while there is exactly one.

What you still own after choosing

Centralized termination leaves the internal hop classical, so harvest-now-decrypt-later exposure moves inside your perimeter. That is acceptable when those links are short and stay on infrastructure you operate, and unacceptable when they cross a cloud provider's backbone or a partner network. To keep one bad build from taking the whole edge down, run the tier as at least two pools built from different base images and library builds, and gate canaries on the share of handshakes that negotiate the hybrid group rather than on error rate. Expect east-west traffic to move to post-quantum key exchange later through the service mesh, which reopens the lineage count one layer down. At that point the rule applies again, this time to sidecars instead of edge proxies.

Does OpenSSL gaining native ML-KEM make the provider route obsolete?

For key exchange, largely yes. From the 3.5 line onward, OpenSSL ships ML-KEM and the hybrid X25519 group natively, so a single-lineage fleet on that version can drop oqs-provider and its ABI coupling entirely. The provider remains useful for older OpenSSL builds you cannot upgrade before freeze and for algorithms outside the native set. Keep it out of any FIPS module boundary, because mixing a validated base provider with an unvalidated one in the same process complicates the validation claim.

Back to PQCEcosystems · Domains

← Back to PQCEcosystems
Engineering & Architecture Brief

In-Process PQC Providers or a Termination Tier: Fleet Heterogeneity Decides

A hybrid key share built on ML-KEM-768 adds a 1184-byte encapsulation key to every ClientHello, and that change is where most post-quantum rollouts actually break. Before design freeze, the question is where negotiation lives when something on the path rejects it. Which library implements the KEM correctly matters much less. Loading liboqs through an OpenSSL 3 provider inside each service and terminating post-quantum TLS on a dedicated proxy tier fail in very different ways, and the one you can tolerate depends on how many independent TLS stacks your fleet has to keep in agreement.

How each option breaks

In the in-process design, every service loads the provider through its OpenSSL configuration and offers a group list with the hybrid first and a classical group behind it. When a base image bump brings an ABI mismatch and the provider fails to load, the result depends on configuration detail: the process either refuses to start, which is the good outcome, or it ignores the unknown group name and negotiates X25519 alone. The blast radius stays at one deployment, but detection is poor because the handshake completes. The termination tier inverts this. One fleet of proxies speaks hybrid TLS to the outside world and classical or mutual TLS inward, so a bad build there affects every external connection at once. It is also a single artifact with a single rollback and a single place to observe the negotiated group. Both designs share the transport fault: the larger ClientHello now spans two TCP segments, and older load balancers and inspection boxes that assume it fits in one will reset the connection, while modern clients generally do not retry without the post-quantum share.

The fault that should dominate your evaluation is silent downgrade, because a handshake that settles on a classical group passes every health check you currently run, and only telemetry on the negotiated group will expose it.

The boundary is the number of TLS lineages

If one library lineage terminates all external traffic, keep the providers in-process: one configuration, one provider build, failures isolated per service and no extra network hop. Once two or more lineages do that job, the picture flips. Typical candidates are Go's crypto/tls in some services, BoringSSL inside an Envoy edge, and wolfSSL on embedded gateways. Each ships hybrid groups on its own schedule with its own default preference list, and during the move from the Kyber draft codepoint to the final ML-KEM codepoint, a client offering only one and a server accepting only the other fell back to classical without raising an error. Keeping several stacks aligned is a pairwise problem. With three lineages it comes to roughly nine client and server pairings to retest per release (an estimate), and the termination tier collapses that to the one stack you control at the boundary. The decision rule is simple: centralize as soon as a second lineage terminates external connections, and stay in-process while there is exactly one.

What you still own after choosing

Centralized termination leaves the internal hop classical, so harvest-now-decrypt-later exposure moves inside your perimeter. That is acceptable when those links are short and stay on infrastructure you operate, and unacceptable when they cross a cloud provider's backbone or a partner network. To keep one bad build from taking the whole edge down, run the tier as at least two pools built from different base images and library builds, and gate canaries on the share of handshakes that negotiate the hybrid group rather than on error rate. Expect east-west traffic to move to post-quantum key exchange later through the service mesh, which reopens the lineage count one layer down. At that point the rule applies again, this time to sidecars instead of edge proxies.

Technical FAQ: Does OpenSSL gaining native ML-KEM make the provider route obsolete?

For key exchange, largely yes. From the 3.5 line onward, OpenSSL ships ML-KEM and the hybrid X25519 group natively, so a single-lineage fleet on that version can drop oqs-provider and its ABI coupling entirely. The provider remains useful for older OpenSSL builds you cannot upgrade before freeze and for algorithms outside the native set. Keep it out of any FIPS module boundary, because mixing a validated base provider with an unvalidated one in the same process complicates the validation claim.

Related Architecture Specifications (PQCECOSYSTEM): a2ashield.com · crowdfundingvault.com · fhecustody.com

More Technical Articles on pqcecosystems.com

Navigating the Global Standards Landscape: NIST, IETF, ETSI, ISO, and BSI Directives →The Open Quantum Safe (OQS) Project: A Retrospective on a Decade of Open Collaborative Engineering →