service account token Secret

A Kubernetes Secret holding a service account token that never expires, created on request and valid until the Secret is deleted.

A stolen or planted long-lived token keeps working until someone finds and deletes it.

In more detail

Attackers mint these long-lived tokens so they can return even after their pods are removed. Prefer short-lived projected tokens, restrict who may create Secrets of this type, and delete every such Secret during eradication.

Related terms

Taught in

References