DevOpsInterviewPrep logo
← ☸️ Containers & Kubernetes
Foundational

OpenShift Route TLS termination: identify which connection needs a certificate

Compare edge, re-encrypt and passthrough Routes. Diagnose a healthy frontend certificate with a broken encrypted backend without disabling certificate verification.

TL;DR: Edge termination decrypts at the router; re-encrypt uses a separate TLS connection to the backend; passthrough leaves TLS termination at the application. Diagnose the failing connection and its trust requirements before replacing certificates or changing termination mode.

Draw both network legs

A browser's successful TLS handshake proves that the endpoint it reached supplied an acceptable frontend certificate. With a re-encrypt Route, the router then establishes another TLS connection to the application backend. A healthy first leg does not establish the second leg's trust, protocol or readiness.

Red Hat's Route documentation defines termination modes and destination-CA handling. Use the installed OpenShift version's rules for certificate defaults and generated Routes; do not assume every Route needs identical manual certificate fields.

rendering diagram…

This diagram shows re-encryption. Passthrough has a different TLS endpoint and does not give the router plaintext HTTP for the same processing decisions.

ModeClient TLS endpointRouter-to-backend legDiagnostic focus
EdgeRouterNormally HTTPFrontend trust and HTTP target port
Re-encryptRouterSeparate TLS connectionBoth certificate/trust contexts and backend protocol
PassthroughApplicationEncrypted traffic forwardedApplication certificate and SNI-based route selection

Work a certificate rotation failure

A teaching service rotates its backend certificate to a new issuing CA. Browser requests still show a valid public certificate, but the Route stops serving useful responses. Inspect router/backend connection evidence and the Route's destination trust alongside the service's actual certificate chain.

Confirm the target Service and ready endpoints first. If there are none, backend certificate changes may be a distraction. If endpoints exist and listen on the expected TLS port, compare the presented chain and validity against the configured destination CA or supported default trust. Also inspect the selected target port: sending TLS to an HTTP listener cannot be repaired by adding a CA.

A coordinated rotation can introduce appropriate trust for the new certificate before switching serving certificates, then remove obsolete trust after verification. The exact overlap and hostname-validation behavior depend on the route and certificate setup. Test them with the platform's documented mechanism rather than disabling verification to make a probe pass.

Route ownership matters during repair

If an Ingress or operator generates the Route, edit the supported source configuration rather than a child field that reconciliation will overwrite. Preserve the link between the intended host, Service and TLS policy. A temporary edit to the generated object may appear successful until the controller reconciles again.

Verify from both sides: an external client validates the frontend certificate and receives the expected application response, while router/backend evidence confirms a healthy second connection. Use an unrelated known-good Route to distinguish an application-specific defect from ingress-wide degradation.

Self-check: changing re-encrypt to edge removes the backend TLS error but violates the requirement to encrypt traffic to the service. Is the release repaired? No. It changed the security contract. Restore the intended protocol and trust rather than defining success as the disappearance of an error message.

Try the re-encrypt rotation scenario.

RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS