Service mesh identity boundaries: separate mTLS identity from application authorization
In a service mesh, keep three decisions distinct: which workload may receive an identity, whether a peer proves that identity over the connection, and which API actions that workload may perform. SPIFFE/SPIRE can issue a workload identity and verifiable SVID; a mesh proxy can authenticate the peer using mutual TLS (mTLS). That authentication alone does not authorize a business request. The destination service or policy engine must evaluate caller identity together with request method/path, resource, and required claims.
Service mesh identity boundaries: separate mTLS identity from application authorization
In a service mesh, keep three decisions distinct: which workload may receive an identity, whether a peer proves that identity over the connection, and which API actions that workload may perform. SPIFFE/SPIRE can issue a workload identity and verifiable SVID; a mesh proxy can authenticate the peer using mutual TLS (mTLS). That authentication alone does not authorize a business request. The destination service or policy engine must evaluate caller identity together with request method/path, resource, and required claims.
This article covers service-to-service workload traffic. Product configuration changes by version; Istio is used only to illustrate documented policy fields and evaluation behavior.
Separate the three boundaries
**Issue a workload identity.** Define which SPIFFE IDs workloads may receive based on trusted runtime/orchestrator evidence. Limit and audit registration and certificate-issuance authority because it can change what a workload name or trust domain means.
**Verify the connection peer.** Check the mTLS peer certificate's SVID against the trust bundle, signing chain, validity period, and SPIFFE ID rules. Do not treat network location or pod IP as a durable identity.
**Authorize the requested action.** Combine the authenticated service identity with method, path, target data, and policy. A valid identity such as `spiffe://prod.example/api` does not imply permission to call every endpoint.
A mesh proxy can provide mutual TLS and policy enforcement, but review paths that bypass it: gateways, health endpoints, management ports, and workloads outside the mesh. In Istio, a workload with no applicable ALLOW policy permits requests; once an ALLOW policy applies, only matching requests are allowed. This is Istio-specific behavior; check other products' documentation.
Keep policies narrow and review failure paths
Define how namespace, service account, and trust domain map to authorization policy. Validate issuance mapping so an arbitrary account cannot acquire the same identity by name alone.
Set defaults so only intended workloads are allowed. A new workload, trust domain, or service account must not silently broaden access.
Review mTLS-enabled and disabled connections, valid/expired/wrong-trust-domain certificates, services with no policy, and requests through external gateways separately.
If an L7 policy evaluates request JWT `iss` or `sub`, distinguish that identity input from the workload principal derived from the peer certificate.
Observe when policy changes, SVID rotation, and trust-bundle updates reach proxies and applications. Keep useful context in deny logs without logging raw tokens or secrets.
SPIFFE defines workload identity and SVIDs for proving it; it does not define application authorization. Istio AuthorizationPolicy has source conditions such as peer principals and operation conditions such as method/path; principal conditions derived from peer certificates require mTLS. These fields and evaluation semantics are Istio-specific.
References
SPIFFE, [SPIFFE Concepts: SVID and identity](https://spiffe.io/docs/latest/spiffe-about/spiffe-concepts/)
Istio, [Authorization Policy reference](https://istio.io/latest/docs/reference/config/security/authorization-policy/)