Repository navigation
fix(rbac): trim unused nodes, secrets, runtimeclasses, and excess verbs from controller ClusterRoles - #3122
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
b6b28cc to
26e6abf
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b6b28cc63e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
… controller ClusterRoles
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4524081b58
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Summary
Removes unused RBAC permissions across
fast-sandbox-controller,fast-sandbox-fastpath, andopensandbox-manager-roleClusterRoles as part of least-privilege RBAC tightening for #2909 (Blocker 2), and removes the unreferencedscripts/tests/test_fastpath_auth_charts.pytest file.Audit & Changes
manifests/charts/fast-sandbox/templates/rbac.yamlfast-sandbox-controller:nodes— control plane never reads/writes Node objects (nodeget/patchis performed by thefirecracker-runtimeDaemonSet using its own RBAC).node.k8s.io/runtimeclasses— control plane never queriesRuntimeClassobjects.configmaps(get,list,watch,create) andsecrets(get,list,watch,create,update) to drop unusedupdate/patch/deleteverbs.fast-sandbox-fastpath:secrets(get) — already absent in upstreamfast-sandboxconfig/rbac/base.yaml; FastPath never accesses Secrets.kubernetes/&manifests/charts/controller/templates/clusterrole.yamlopensandbox-manager-role:secrets(get,list,watch) fromsandboxsnapshot_controller.gomarker,kubernetes/config/rbac/role.yaml, and Helm chart — controller only references Secret names in Pod/JobSecretVolumeSource/ImagePullSecretsand never reads Secret contents.eventsfrom full CRUD tocreate,patchacross all three controller markers,role.yaml, and Helm chart.Cleanup
scripts/tests/test_fastpath_auth_charts.py.Verification
helm lint manifests/charts/fast-sandbox manifests/charts/controllerhelm templateonfast-sandboxandcontrollerchartsgo test -v ./internal/controller -run 'Test_PROJECT|RBAC'(4/4 passed)Companion upstream PRs: opensandbox-group/fast-sandbox#270 (merged), opensandbox-group/fast-sandbox#271
Ref: #2909