fix(sandbox): add missing PodSecurity restricted:latest fields#141
fix(sandbox): add missing PodSecurity restricted:latest fields#141jrangelramos wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
📝 WalkthroughSummary by CodeRabbitRelease Notes
WalkthroughTwo code paths that construct pod specs now include a pod-level security context setting ChangesPod Security Context
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
@jrangelramos nice catch on the missing PSA fields 👍
One nit.... the container-level runAsNonRoot and seccompProfile are redundant, pod-level security context is inherited by all containers, so setting them in both places is unnecessary duplication.
The console plugin pattern you reference (controller/console/reconciler.go:162-176) only sets these at pod level and keeps the container-level context to just allowPrivilegeEscalation + drop ALL capabilities. Might be worth matching that exactly to keep things consistent.
Not a blocker, just cleaner.
Sandbox pods for analysis/execution fail to start on clusters enforcing the restricted Pod Security Standard (default for openshift-* namespaces). Add runAsNonRoot and seccompProfile at both pod and container level in podspec_builder.go and bootstrap.go, matching the pattern already used by the console plugin reconciler. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
404c827 to
2a90c8b
Compare
|
@jrangelramos: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
restricted:latestviolationin
openshift-*namespaces (the default enforcement on OpenShift 4.x)runAsNonRoot: trueandseccompProfile: RuntimeDefaultat podand container level in both
PodSpecBuilderandSandboxTemplatebootstrapcontroller/console/reconciler.goTest plan
restricted:latestenforcementoc get pod -o yaml🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com