CKS Security Quest · Service accounts
Remove unnecessary API tokens
A dedicated identity with token automounting disabled at both layers.
Task
Namespace jobs contains CronJob reporter, which does not use the Kubernetes API.
- Create dedicated ServiceAccount
reporter. - Disable automounting on the ServiceAccount.
- Use it in the complete CronJob Pod template and explicitly disable automounting there.
- Apply and verify both settings.