feat(rbac): grant read access to NodeReadinessEvaluations in helper roles #517
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 280 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.337
Real PR Conversation Timeline
1 comments
"Review active on #517"
general
weight: 0.35
ajaysundark
Description
The NodeReadinessEvaluation CRD ships in the installer since #345, but no shipped role lets a non-admin user read it:
config/rbacand the Helm chart only scaffold the admin, editor and viewer helper roles forNodeReadinessRule. Following the maintainer direction on the linked issue, this extends the three existing helper ClusterRoles with read-only NRE rules (get/list/watch plus status get) instead of creating separate NRE identities.Related Issue
Fixes #515
Type of Change
/kind feature
Testing
make testpasses (all non-e2e packages, envtest on Kubernetes 1.36.2).helm lintclean;helm unittest --strict: 54/54 pass, including a newrbac_testcase asserting all three helper roles grant read-only NRE access and that no helper role gains NRE write verbs.nodereadinessrule-viewer-rolebound to a test user:- On main's roles: SubjectAccessReview for get/list/watch on
nodereadinessevaluationsand get onnodereadinessevaluations/statusall return denied, and a real LIST fails withnodereadinessevaluations.readiness.node.x-k8s.io is forbidden, matching the issue'skubectl auth can-irepro.- With this change: get, list, watch and status get are allowed; create and delete stay denied.
(
make lintpasses on this head: golangci-lint v2.12.1 and the custom kube-api-linter both report 0 issues.)Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
``
release-note
`The nodereadinessrule admin, editor and viewer helper ClusterRoles now also grant read-only access to NodeReadinessEvaluation resources (get, list, watch, and status get), in both the kustomize installer and the Helm chart.
Generative AI Usage Disclosure
How they were used:
AI assistance was used to prepare the code changes, the chart unit test, and the verification runs described in Testing (envtest authorization checks, make test
,helm unittest`). All verification output above comes from real local runs on this change.