Skip to content

fix(webhook): pin injected iface-request container to runAsUser 0 - #35

Open
m4ci3k2 wants to merge 1 commit into
dialohq:masterfrom
m4ci3k2:fix/webhook-runasuser-root
Open

fix(webhook): pin injected iface-request container to runAsUser 0#35
m4ci3k2 wants to merge 1 commit into
dialohq:masterfrom
m4ci3k2:fix/webhook-runasuser-root

Conversation

@m4ci3k2

@m4ci3k2 m4ci3k2 commented Sep 1, 2026

Copy link
Copy Markdown

VXLAN device creation (cmd/vxlandlord) needs root regardless of granted
capabilities. This container gets injected into an arbitrary workload pod,
which inherits that pod's securityContext.runAsUser if it sets one (e.g. most
StatefulSets running as non-root) unless overridden per-container.

A container-level RunAsUser overrides the pod-level one, so pin this
one to root explicitly.

VXLAN device creation (cmd/vxlandlord) needs root regardless of granted
capabilities - confirmed by reproducing with a minimal netlink.LinkAdd
call under the exact same NET_ADMIN-only security context: succeeds as
uid 0, fails with "operation not permitted" as any non-root uid. This
container gets injected into an arbitrary workload pod, which inherits
that pod's securityContext.runAsUser if it sets one (e.g. most
StatefulSets running as non-root) unless overridden per-container.
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.

2 participants