Kubernetes Service Account Tokens Do Not Need to Ride Along
Kubernetes gives a Pod an identity by default. A ServiceAccount token is mounted into the container at the standard service-account path unless the Pod or its ServiceAccount opts out. That convenience is useful for controllers and agents that call the API. It also gives every process in the Pod a credential it may not need.
The current Kubernetes documentation is direct about the default: the Pod receives credentials for the assigned ServiceAccount, including the namespace's default account. The ServiceAccount or Pod can set automountServiceAccountToken: false , and the Pod setting takes precedence when both are present. Modern clusters use bound, time-limited tokens in a projected volume, but the default mount and the RBAC attached to the identity still deserve review.
Inventory the identity behind the mount
A token file is only one part of the question.…