fix(onboard): tighten UFW reachability remediation#3533
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughTwo onboarding reachability formatters now emit a narrower UFW allow command when both ChangesUFW Rule Specificity for Gateway Reachability
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Comment |
7d7dde9 to
f7b4100
Compare
daa2e19 to
f7fae18
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
f7fae18 to
9b5262a
Compare
Signed-off-by: stevenrick <srick@nvidia.com>
9b5262a to
b94cb32
Compare
Summary
Narrows the UFW remediation shown for sandbox reachability failures when NemoClaw knows both the Docker bridge subnet and gateway IP.
The existing broader subnet-only fallback remains in place when the gateway IP is unavailable.
Related Issue
Related to #3456.
Changes
sudo ufw allow from <subnet> to <gateway-ip> port <port> proto tcpfor gateway and Ollama proxy reachability messages when the probed Docker gateway IP is known.to any portremediation when only the subnet is known or must be looked up dynamically.Type of Change
Verification
Focused checks passed locally under Node 22.22.3:
npm run typecheck:clinpx @biomejs/biome check src/lib/onboard/gateway-sandbox-reachability.ts src/lib/onboard/gateway-sandbox-reachability.test.ts src/lib/onboard/ollama-proxy-reachability.ts src/lib/onboard/ollama-proxy-reachability.test.tsnpm test -- src/lib/onboard/gateway-sandbox-reachability.test.ts src/lib/onboard/ollama-proxy-reachability.test.tsAttempted full local gates.
npm test,make check, andnpx prek run --from-ref origin/main --to-ref HEADdid not pass cleanly on this macOS workstation due failures outside the touched reachability files, mostly coverage-run per-test timeouts. The touched reachability tests passed in focused runs and during larger CLI coverage runs.npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Signed-off-by: stevenrick srick@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests