The MeshIdentity resource gives workloads an identity and configures the provider that issues
their certificates. A workload presents its certificate when it connects to another proxy over
mTLS. The certificate contains a SPIFFE ID, such as
spiffe://payments.eu.mesh.local/ns/storefront/sa/frontend, that identifies the caller.
Identity works together with the following resources:
|
Resource |
Responsibility |
|---|---|
MeshIdentity
|
Selects workloads and configures their identities and certificate provider. |
| MeshTrust | Publishes the CA certificates that proxies use to verify peers. |
| MeshTrafficPermission | Decides whether an authenticated caller can connect to a destination. |
A certificate doesn’t grant access, so configure traffic permissions before or alongside identities. MeshTLS controls whether a destination also accepts plaintext and which TLS settings it uses.
A proxy that no MeshIdentity matches gets no identity and no mTLS. Mesh.mtls is removed
from the API, so MeshIdentity is the only way to issue identities.
MeshIdentity isn’t a policy in the usual sense. It has no targetRef, to, or rules, and
selects proxies with a label selector instead. On Kubernetes, it’s only accepted in the system
namespace.