Disable service account token mounting in test pods - #520
kstrenkova wants to merge 1 commit into
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kstrenkova The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (12)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 SummarySummary by CodeRabbit
Walkthrough
ChangesPrivileged pod token handling
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Test pods will no longer mount service-account tokens, reducing unnecessary Kubernetes access without identified functional impact. The change is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 40m 56s |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 6h 59m 18s |
Set AutomountServiceAccountToken to false unconditionally in test pod spec. Test pods that need cluster access authenticate with a kubeconfig mounted via spec.kubeconfigSecretName, not the service account token. No test framework uses in-cluster credentials. This change reduces attack surface and follows Jobs-to-Pods migration (ee982d7) that eliminated ServiceAccount usage.
73971d8 to
b6c6ff6
Compare
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 41m 25s |
Set AutomountServiceAccountToken to false unconditionally in test pod spec. Test pods that need cluster access authenticate with a kubeconfig mounted via spec.kubeconfigSecretName, not the service account token. No test framework uses in-cluster credentials.
This change reduces attack surface and follows Jobs-to-Pods migration that eliminated ServiceAccount usage.