fix(sandbox): restore residual capability warning behavior#4341
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
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 (1)
📝 WalkthroughWalkthroughThis PR removes the ChangesResidual capability allowance removal and tool broker token injection
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 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. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
|
🌿 Preview your docs: https://nvidia-preview-pr-4341.docs.buildwithfern.com/nemoclaw |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 2 needs attention, 3 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/onboard.ts`:
- Around line 3517-3523: Shorten the comment block describing the env var
allowlist in src/lib/onboard.ts by at least one line to satisfy the
onboard-entrypoint budget; condense sentences (for example combine the first two
lines into one and remove the blank line) while preserving the key details that
the allowlist is whitelist-style and that for the sandbox we must strip
KUBECONFIG and SSH_AUTH_SOCK so the sandbox cannot access the host Kubernetes
cluster or SSH agent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: fdb131e3-6ce2-4fb5-ae70-8864e5b65306
📒 Files selected for processing (11)
.github/workflows/e2e-script.yaml.github/workflows/nightly-e2e.yamldocs/reference/commands.mdxscripts/lib/sandbox-init.shsrc/lib/onboard.tstest/e2e-gateway-isolation.shtest/e2e-script-workflow.test.tstest/e2e/test-full-e2e.shtest/e2e/test-hermes-e2e.shtest/helpers/e2e-workflow-contract.tstest/sandbox-init.test.ts
💤 Files with no reviewable changes (6)
- test/e2e-script-workflow.test.ts
- test/helpers/e2e-workflow-contract.ts
- docs/reference/commands.mdx
- .github/workflows/e2e-script.yaml
- test/e2e/test-full-e2e.sh
- test/e2e/test-hermes-e2e.sh
Selective E2E Results — ❌ Some jobs failedRun: 26529688208
|
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Selective E2E Results — ✅ All requested jobs passedRun: 26533090069
|
Selective E2E Results — ✅ All requested jobs passedRun: 26533676771
|
Summary
Reverts the residual-capability fail-closed behavior from #4266 and the CI residual-cap opt-in from #4335. This restores the prior behavior where sandbox entrypoints warn about residual dangerous capabilities instead of refusing to start when CAP_SETPCAP is unavailable.
Related Issue
Reverts #4266.
Reverts #4335.
Changes
NEMOCLAW_ALLOW_RESIDUAL_CAPSentrypoint opt-in and fail-closed residual-capability policy fromscripts/lib/sandbox-init.shandsrc/lib/onboard.ts.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
Chores
Bug Fixes
Tests
Documentation