Skip to content

Mutual TLS with Istio Ambient Mode

The RSH platform and its modules do not encrypt traffic between pods themselves. Encryption and mutual authentication between pods are recommended to be provided by the cluster, using Istio in ambient mode. Ambient mode adds mutual TLS (mTLS) transparently: no sidecars are injected, and neither the RSH Helm charts nor the module images need changes.

Install Istio following the upstream guide for your platform:

  • Generic Kubernetes and Google Kubernetes Engine: Install with Helm
  • OpenShift: Red Hat OpenShift Service Mesh 3.1 or later, see Istio ambient mode. On OKD, the community Sail Operator manages the same resources.

Requirements

  • Only the secure layer 4 overlay (istiod, istio-cni, ztunnel) is required. Waypoint proxies, gateways, sidecars and the DNS proxy are not used by the RSH platform.
  • Peer authentication mode PERMISSIVE, the Istio default. STRICT is not supported yet for RSH namespaces that contain Windows workloads.
  • A memory limit on istiod is not recommended: while istiod is unavailable, new pods in enrolled namespaces receive no certificate.

Enrolling RSH Namespaces

Label the namespace before the RSH platform and its modules are installed, so that every pod starts in the mesh:

kubectl label namespace <namespace-name> istio.io/dataplane-mode=ambient --overwrite

The same label enrols shared services the RSH platform depends on, such as MinIO or the CloudNativePG operator. Enrolled pods carry the annotation ambient.istio.io/redirection: enabled.

Limitations

  • Windows nodes: istio-cni and ztunnel run on Linux nodes only. Pods on Windows nodes, such as the Licensing and Analytics components, are not enrolled, and their traffic stays plaintext. Linux pods still reach them because of the PERMISSIVE mode.
  • NetworkPolicies apply to mesh traffic. A policy restricting ingress to an enrolled pod must also allow port 15008 and the kubelet probe source 169.254.7.127/32. See Ambient and Kubernetes NetworkPolicy.

Platform Notes

  • Google Kubernetes Engine: set global.platform: gke, otherwise the istio-cni and ztunnel pods are not admitted.
  • OpenShift / OKD: ambient mode requires OVN-Kubernetes in local gateway mode (routingViaHost: true), and nodes running RHEL CoreOS 10 or CentOS Stream CoreOS 10 require global.nativeNftables: true. On OKD 4.22 with Windows Server 2022 nodes, traffic to and from Windows pods worked unchanged after switching to local gateway mode.