token audience
The field in a token that names which service it is meant for, so any other service should reject it.
In more detail
Checking the audience stops a token issued for one purpose being replayed against another. Receivers should reject any token whose audience is not theirs.
Example
kubectl create token web --duration=10m --audience=api # a Kubernetes token bound to one audienceRelated terms
- projected service account token — A short-lived, signed token for a service account that the kubelet mounts into a pod and refreshes, valid only for a stated audience.
- service account — An identity for a program rather than a person; in Kubernetes each pod runs as one and gets a signed token for it.
Taught in
- Authentication, ServiceAccounts And Short Lived Tokens — Kubernetes: Production-Grade Container Orchestration