Service meshes and platform boundaries
Trace which traffic a service mesh manages and decide which policy layer can enforce a particular rule.
What you will understand
- Distinguish a mesh control plane from its traffic-handling data plane.
- Trace workload identity and mutual TLS on a covered connection.
- Explain what network policy and provider settings still control independently of a mesh.
Builds on: Protecting Secrets and tenant boundaries, Tenancy and software supply chains
Where a service mesh processes traffic
Checkout calls inventory and you want both sides to prove their workload identity while encrypting the connection. A service mesh manages selected application-to-application traffic using a control plane and traffic-handling components. A mesh control plane distributes configuration and often coordinates identity and certificates. Its data plane processes the covered connections using proxies. Depending on the mesh and its mode, those proxies can run alongside Pods or at the node or workload waypoint level.
With mutual TLS (mTLS), both participants present credentials. On a mesh-managed hop, the traffic handlers can verify identities and encrypt transport. Authorization policy can then decide whether the calling identity may use the destination. Inspect the first scene to see where traffic goes when only one workload is enrolled or policy selects a different path.
Which hop does the mesh protect?
The mesh can authenticate peers and encrypt traffic on the path it covers. The application still handles its own request semantics.
Identify the covered traffic
- Application AMesh data plane Acovered connection
- Mesh control planeMesh data plane Aconfiguration
- Mesh control planeMesh data plane Bconfiguration
The chosen mesh mode determines which connections enter its data plane.
Establish mutual TLS
- Mesh data plane AMesh data plane BmTLS when configured
Configured mTLS verifies workload identities and encrypts the covered connection.
Check authorization and app behavior
- Mesh data plane BApplication Bauthorized delivery
The destination still needs appropriate business and end-user authorization; peer identity alone is insufficient.
Generic data-plane boxes apply across sidecar and other modes; actual placement and supported policy features vary.
Explore another case
How retries change request behavior
A mesh can also add timeouts, retries, traffic splitting, and telemetry where it understands the protocol. Those features change failures the application sees. If the mesh retries a request to charge a card after a timeout, the first attempt may already have succeeded. Only retry operations with suitable safety guarantees and give the overall request a sensible time budget.
Which layer can explain a failed request?
Network policy, mesh authorization, and infrastructure routing can each make a decision at a different point.
Check network reachability
- NetworkPolicyMesh policypermitted network path
The networking implementation enforces selected reachability rules independently of mesh identity policy.
Check workload identity and request policy
- Mesh policyApplication policypermitted covered request
The mesh can add identity-aware or L7 decisions where supported; application authorization remains necessary.
Check provider-level routing
- Managed providerPlatform / app teamdocument service boundary
The managed-provider contract and platform ownership map determine who maintains infrastructure, add-ons and data recovery.
Provider responsibilities must be verified for the actual service; no universal managed-Kubernetes contract is assumed.
Explore another case
Identify which layer owns a policy
The sample NetworkPolicy permits ingress on port 80 from selected Pods in kv-lab. A compatible CNI enforces it at the network layer. An example mesh rule could make a different decision using a workload certificate or HTTP route if the traffic actually passes through the mesh. Meanwhile an infrastructure load balancer can control traffic before either policy sees it. Identify which layer owns each decision and how you would prove it.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: m19-web-ingress
namespace: kv-lab
labels:
lab: m19
spec:
podSelector:
matchLabels:
app: m19-web
policyTypes: [Ingress]
ingress:
- from:
- podSelector:
matchLabels:
app: m19-client
ports:
- protocol: TCP
port: 80kubectl --context kind-kv-lab -n kv-lab get networkpolicies
kubectl --context kind-kv-lab -n kv-lab get pods -o wide
# Add-on discovery is read-only; absence is an expected local outcome.
kubectl --context kind-kv-lab get crd -o name
kubectl --context kind-kv-lab get namespacesThe platform operations lab assumes the base kind cluster. Inspect which resources actually exist. A mesh extension needs a compatible installation, enrolled workloads, and a test for protected, rejected, and unenrolled paths.
Verify where mesh coverage ends
Extra proxies can affect latency and resource use. Check certificate renewal, traffic coverage, and behavior when the control plane is temporarily unreachable. Existing proxies may keep prior configuration during an outage, while new workloads or updated policies need fresh state. The exact guarantees depend on the mesh implementation.
Check your understanding
A request between two enrolled services uses mTLS. Does that establish that a host-level client can only reach the service through the same policy?
It establishes that the observed connection used a covered path. Trace the host-level client separately and verify whether it reaches a mesh-managed listener, passes network policy, or can access some other address.
Go to the source
Reviewed 2026-10-27 · Kubernetes 1.37 · Related local exercise