Repository navigation
fix(rbac): pods/eviction under core apiGroup, not policy (#567 self-heal was 403ing) - #575
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
#572's agent ClusterRole granted
pods/evictioncreate underapiGroups: ["policy"]. But Kubernetes authorizes the eviction subresource create under the core ("") apiGroup — the Eviction object ispolicy/v1, but the RBAC check is againstpods/evictionin 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 gotpods "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