Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

Quantum-secure gateways in Red Hat OpenShift Service Mesh 3.2

December 18, 2025
Jacek Ewertowski
Related topics:
Service meshSecurity
Related products:
Red Hat OpenShiftRed Hat OpenShift Service Mesh

    Post-quantum cryptography (PQC) refers to cryptographic algorithms designed to withstand attacks by both classical and quantum computers. As quantum computing technology advances, traditional cryptographic methods like RSA, ECDSA, and ECDH become vulnerable to quantum attacks, particularly through algorithms like Shor's algorithm, which can efficiently factor large integers and solve discrete logarithm problems.

    PQC algorithms are based on mathematical problems that are believed to be difficult for both classical and quantum computers to solve, such as:

    • Lattice-based cryptography: Relies on the difficulty of problems such as learning with errors (LWE).
    • Code-based cryptography: Built upon the security of error-correcting codes.
    • Multivariate cryptography: Based on solving systems of multivariate polynomial equations.
    • Hash-based signatures: The security of these signatures stems from cryptographic hash functions.
    • Isogeny-based cryptography: Founded on the concept of walks in supersingular isogeny graphs.
    • Symmetric cryptography: Symmetric algorithms like AES-256 remain quantum-resistant (though Grover's algorithm provides quadratic speedup).

    Addressing symmetric cryptography

    While the focus of PQC is often on asymmetric cryptography (key exchange and digital signatures), it's important to consider symmetric algorithms as well. Symmetric-key algorithms, such as AES-256, are generally considered quantum-resistant.

    The primary concern regarding symmetric encryption in a quantum world relates to Grover's algorithm. Grover's algorithm offers a quadratic speed increase for searching unsorted databases, which means an attacker with a large-scale quantum computer could potentially halve the effective security of a symmetric key.

    For example:

    • A classical attack against a 128-bit key requires 2128 operations.
    • A quantum attack using Grover's algorithm requires approximately 2128/2 = 264 operations.

    To maintain the equivalent classical security level (for example, 128 bits of security), the key size for symmetric algorithms should be doubled. Therefore, while AES-128 is considered effective against classical attacks, migrating to AES-256 is recommended for post-quantum readiness to mitigate the effect of Grover's algorithm.

    It's critical to note that the immediate focus for PQC migration remains the asymmetric algorithms (RSA, ECDSA, ECDH) that are completely broken by Shor's algorithm.

    The Quantum threat to current cryptography

    The development of large-scale quantum computers poses a significant threat to current cryptographic systems:

    • Shor's algorithm: Efficiently factors large integers and computes discrete logarithms, breaking RSA, ECDSA, and ECDH.
    • Grover's algorithm: Provides a quadratic speedup for searching unsorted databases, effectively halving the security level of symmetric cryptographic algorithms.
    • Timeline concerns: While large-scale quantum computers don't exist today, experts estimate they could become reality within 10 to 30 years.

    Organizations need to start preparing now because:

    • Harvest now, decrypt later: Adversaries may be collecting encrypted data today to decrypt it once quantum computers become available.
    • Migration complexity: Transitioning to post-quantum cryptography requires significant planning and testing.
    • Compliance requirements: Various standards bodies and governments are beginning to mandate PQC readiness.

    PQC algorithms and standards

    The U.S. National Institute of Standards and Technology (NIST) has been leading the standardization of post-quantum cryptographic algorithms. In 2022, NIST published the first set of PQC standards.

    Key encapsulation mechanisms (KEM)

    • CRYSTALS-KYBER (ML-KEM): A lattice-based algorithm for key establishment
    • X25519MLKEM768: A hybrid approach combining traditional X25519 with ML-KEM-768

    Digital signatures

    • CRYSTALS-DILITHIUM (ML-DSA): A lattice-based signature algorithm
    • FALCON: A lattice-based signature algorithm optimized for smaller signatures
    • SPHINCS+: A hash-based signature algorithm

    The hybrid approach (like X25519MLKEM768) is particularly important during the transition period, because it provides security against both classical and quantum attacks while maintaining compatibility with existing systems.

    Quantum-secure gateway

    Red Hat OpenShift Service Mesh enables you to configure Istio gateways with post-quantum cryptographic algorithms, providing protection against both current and future quantum computer attacks. This implementation uses hybrid key exchange mechanisms that combine traditional cryptography with post-quantum algorithms.

    Prerequisites

    Before setting up a quantum-secure gateway, ensure that you have the following:

    • OpenShift 4.19+
    • Cluster-admin permissions
    • Red Hat OpenShift Service Mesh Operator 3.2.1+ installed in your cluster
    • A local install of oc, podman, and curl
    • A basic understanding of Istio gateways and service mesh concepts

    Install OpenShift Service Mesh

    1. Install the Istio CNI
    $ oc new-project istio-cni
    $ oc apply -f - <<EOF
    apiVersion: sailoperator.io/v1
    kind: IstioCNI
    metadata:
      name: default
    spec:
      version: v1.26.2
      namespace: istio-cni
    EOF
    1. Install the Istio control plane with post-quantum cryptography enabled
    $ oc apply -f - <<EOF
    apiVersion: sailoperator.io/v1
    kind: Istio
    metadata:
      name: default
    spec:
      version: v1.26.2
      namespace: istio-system
      updateStrategy:
        type: InPlace
      values:
        meshConfig:
          accessLogFile: /dev/stdout
          tlsDefaults:
            ecdhCurves:
            - X25519MLKEM768
    EOF

    The meshConfig.tlsDefaults.ecdhCurves setting applies to all non-mesh TLS connections in your Istio deployment. This includes:

    • Ingress gateways: TLS connections from external clients to your gateways
    • Egress gateways: TLS connections from your gateways to external services
    • External service connections: Any TLS connections to services outside the mesh

    However, this setting does NOT apply to mesh-internal mTLS. Communication between services within the mesh continues to use Istio's default mTLS configuration.

    Currently, Istio does not provide the capability to enable post-quantum cryptography algorithms on a per-workload basis. The tlsDefaults configuration is a mesh-wide setting that affects all gateways and external TLS connections uniformly.

    If you need different TLS configurations for different gateways, you would need to deploy separate Istio control planes with different meshConfig.tlsDefaults settings.

    Generate TLS certificates

    1. Create the necessary certificates for your gateway
    $ mkdir certs
    $ openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 \
      -subj '/O=example Inc./CN=example.com' \
      -keyout certs/example.com.key \
      -out certs/example.com.crt
    $ openssl req -out certs/httpbin.example.com.csr -newkey rsa:2048 -nodes \
      -keyout certs/httpbin.example.com.key \
      -subj "/CN=httpbin.example.com/O=httpbin organization"
    $ openssl x509 -req -sha256 -days 365 \
      -CA certs/example.com.crt -CAkey certs/example.com.key \
      -set_serial 0 -in certs/httpbin.example.com.csr \
      -out certs/httpbin.example.com.crt
    1. Create a Kubernetes secret containing the TLS certificate for your gateway
    $ oc create -n istio-system secret tls httpbin-credential \
        --key=certs/httpbin.example.com.key \
        --cert=certs/httpbin.example.com.crt

    Deploy quantum-secure gateway

    Deploy a gateway using the Kubernetes Gateway API with the custom PQC-enabled proxy image:

    $ oc apply -f - <<EOF
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: Gateway
    metadata:
      name: pqc-gateway
      namespace: istio-system
    spec:
      gatewayClassName: istio
      listeners:
      - name: https
        port: 443
        protocol: HTTPS
        tls:
          mode: Terminate
          certificateRefs:
          - name: httpbin-credential
            namespace: istio-system
        allowedRoutes:
          namespaces:
            from: All
    ---
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: httpbin-route
      namespace: default
    spec:
      parentRefs:
      - name: pqc-gateway
        namespace: istio-system
      hostnames:
      - "httpbin.example.com"
      rules:
      - matches:
        - path:
            type: PathPrefix
            value: /
        backendRefs:
        - name: httpbin
          port: 8000
    EOF

    The sidecar.istio.io/proxyImage annotation specifies the custom proxy image with PQC support.

    Deploy back-end server

    Now you can deploy the back-end server:

    $ oc label ns default istio-injection=enabled
    $ oc apply -n default -f \
    https://raw.githubusercontent.com/openshift-service-mesh/istio/master/samples/httpbin/httpbin.yaml

    Verification

    It's important to verify that your setup works as expected, to demonstrate:

    • PQC protection: Only clients supporting post-quantum algorithms can establish connections.
    • Backward incompatibility: Standard clients without PQC support cannot connect, ensuring quantum-safe communication.
    • Hybrid security: The X25519MLKEM768 algorithm provides protection against both classical and quantum attacks.

    Retrieve the gateway's external address depending on your load balancer provider. For a hostname-based load balancer:

    $ INGRESS_ADDR=$(kubectl get svc pqc-gateway-istio \
    -n istio-system \
    -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')

    For an IP-based load balancer:

    $ INGRESS_ADDR=$(kubectl get svc pqc-gateway-istio \
    -n istio-system \
    -o jsonpath='{.status.loadBalancer.ingress[0].ip}')

    Test connection with PQC-enabled client. This should succeed:

    $ podman run --rm -it \
      -v ./certs/example.com.crt:/etc/certs/example.com.crt \
      docker.io/openquantumsafe/curl \
      curl -vk "https://$INGRESS_ADDR:443/headers" \
      -H "Host: httpbin.example.com" \
      --curves X25519MLKEM768 \
      --cacert /etc/certs/example.com.crt

    The above request should succeed, and you should receive HTTP status 200.

    This command uses the OQS-enabled curl client that supports the X25519MLKEM768 hybrid key exchange algorithm. Test it again with a standard curl. This should fail with a handshake error:

    $ curl -vk "https://$INGRESS_ADDR:443/headers" \
      -H "Host: httpbin.example.com" \
      --cacert ./certs/example.com.crt

    It's expected that you get the following errors in the output:

    * TLSv1.3 (OUT), TLS handshake, Client hello (1):
    * TLSv1.3 (IN), TLS alert, handshake failure (552):
    * TLS connect error: error:0A000410:SSL routines::ssl/tls alert handshake failure
    * closing connection #0
    curl: (35) TLS connect error: error:0A000410:SSL routines::ssl/tls alert handshake failure

    Conclusion

    To help counter the potential threats posed by quantum computing, Red Hat OpenShift Service Mesh 3.2 allows early adoption of post-quantum cryptography (PQC). In this article, you've customized the Istio proxy with the OQS provider and configured hybrid algorithms (for example, X25519MLKEM768) and successfully introduced quantum-secure key exchange into the Istio ingress gateway. This protects external traffic from both classical and quantum attacks and mitigates the "Harvest now, decrypt later" risk. Although built-in PQC support is expected in future versions, this method enables enterprises to secure their service mesh perimeter today for quantum readiness.

    For more information, take a look at these resources:

    • Post quantum cryptography
    • Post-quantum cryptography: Lattice-based cryptography
    • Post-quantum cryptography: Code-based cryptography
    • Quantum algorithms: Grover Search and applications, IBM Quantum Platform
    • Shor's algorithm, IBM Quantum Platform
    Last updated: December 22, 2025

    Related Posts

    • Unify OpenShift Service Mesh observability: Perses and Prometheus

    • Integrate OpenShift Gateway API with OpenShift Service Mesh

    • Quantum computing 101 for developers

    • How to implement and monitor circuit breakers in OpenShift Service Mesh 3

    • Beyond a single cluster with OpenShift Service Mesh 3

    • Multicluster resiliency with global load balancing and mesh federation

    Recent Posts

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    • Control multicluster costs with right-sizing in Red Hat Advanced Cluster Management 5

    • Lightbits is now certified for Red Hat OpenStack Services on OpenShift

    What’s up next?

    This learning path introduces the key challenges faced by organizations employing multi-cluster environments and showcases how Red Hat technologies combine with other open source tools to provide a comprehensive solution.

    Start the activity
    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI