Disable API token automount on spawned job pods #2
Reference in New Issue
Block a user
Delete Branch "benvin/job-no-automount"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Job pods set
ServiceAccountNamebut leave automount at its default, so every pr/watch/woodpecker-enable pod carries an unused k8s API token with the repospawner Role's access — no job subcommand touches the k8s API.How
AutomountServiceAccountToken: falseon the job PodSpec (the explicit vault-audience projected token volume is unchanged) and assert it in the job-spec test.