Skip to content

fix(rbac): pods/eviction under core apiGroup, not policy (#567 self-heal was 403ing) - #575

Merged
bpalermo merged 1 commit into
mainfrom
fix/572-eviction-rbac-apigroup
Jul 20, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/572-eviction-rbac-apigroup

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

The bug

#572's agent ClusterRole granted pods/eviction create under apiGroups: ["policy"]. But Kubernetes authorizes the eviction subresource create under the core ("") apiGroup — the Eviction object is policy/v1, but the RBAC check is against pods/eviction in group "". So every ghost-sweep self-heal eviction silently 403'd, making the #567 lost-CNI-ADD self-heal non-functional as shipped.

How it was found

A node-reboot G1 validation (rebooted main-worker-05): a prober pod came back with its CNI ADD lost (no mesh listener), the self-heal correctly detected it (consecutive_sweeps:7 > threshold:3) and tried to evict it — and got pods "prober-r26fl" is forbidden: ... cannot create resource "pods/eviction" in ... namespace "aether-test". The pod stayed mesh-broken (5/s prober connection_error) until manually rolled — i.e. the exact power-blip failure mode #567 was meant to auto-heal.

One-line fix: apiGroups: ["policy"] → apiGroups: [""]. Chart 0.82.0. (The taint-lifecycle half of the same reboot test passed cleanly — guard re-armed at +30s, agent removed it.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR

…icy (#567 self-heal)

#572 granted pods/eviction under apiGroups:["policy"], but the eviction
subresource create is authorized under the CORE ("") group — so every
ghost-sweep self-heal eviction silently 403'd ("cannot create resource
pods/eviction"). Found via a node-reboot G1 validation: a rebooted node's
prober pod lost its CNI ADD, the self-heal correctly tried to evict it to
force re-ADD, and got a 403 — leaving the pod mesh-broken (5/s prober
connection errors) until manually rolled.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo
bpalermo merged commit bfd6359 into main Jul 20, 2026
14 checks passed
@bpalermo
bpalermo deleted the fix/572-eviction-rbac-apigroup branch July 20, 2026 19:10
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