Service Account
The Kubernetes identity assigned to a pod and used as the subject of its projected token.
Learning status: Not practiced
The moving parts
A service account is a Kubernetes API object. Pods use it as their in-cluster identity. For Entra Workload ID, the service account's namespace and name form the federated token subject:
system:serviceaccount:<namespace>:<service-account-name>
The service account is commonly annotated with the client ID of the Entra application or user-assigned managed identity that should receive the exchanged token:
apiVersion: v1
kind: ServiceAccount
metadata:
name: orders-reader
namespace: workloads
annotations:
azure.workload.identity/client-id: "<CLIENT_ID>"
The annotation selects a client identity; it does not give the pod permissions by itself. Bind only the Kubernetes permissions the pod needs, too: Kubernetes API access and Azure resource access are separate.
If you change the service-account annotations, restart the pod so the webhook can apply the new configuration.
Connects to