Skip to content

Scope down runner service account permissions - #1423

Merged
mvandenburgh merged 1 commit into
mainfrom
fix/runner-rbac-overprivilege
Aug 3, 2026
Merged

Scope down runner service account permissions#1423
mvandenburgh merged 1 commit into
mainfrom
fix/runner-rbac-overprivilege

Conversation

@mvandenburgh

Copy link
Copy Markdown
Member

Only the executor/manager (gitlab/runner) needs permissions to create and drive job pods. This removes pipeline/runner from the binding so build pods have no Kubernetes API access, and sets automountServiceAccountToken: false on that SA so a job has no token to present even if a binding is reintroduced by mistake. The manager SA and the pipeline/runner SA itself (which job pods still reference) are unchanged, so CI is unaffected.

Only the executor/manager (gitlab/runner) needs permissions to
create and drive job pods. This removes pipeline/runner from the binding
so build pods have no Kubernetes API access, and sets
automountServiceAccountToken: false on that SA so a job has
no token to present even if a binding is reintroduced by mistake. The
manager SA and the pipeline/runner SA itself (which job pods still
reference) are unchanged, so CI is unaffected.
@mvandenburgh
mvandenburgh merged commit b6a1a9a into main Aug 3, 2026
1 check passed
@mvandenburgh
mvandenburgh deleted the fix/runner-rbac-overprivilege branch August 3, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant