fix(security): add iptables to Dockerfile for network policy enforcement - #843
Merged
Conversation
…enforcement Without iptables installed in the sandbox image, OpenShell logs "iptables not found; bypass detection rules will not be installed" and reports Active: 0 for all network policies. This means every outbound connection from the sandbox succeeds regardless of the configured network policy, rendering the entire policy framework (openclaw-sandbox.yaml, presets) ineffective. Add pinned iptables=1.8.9-2 to the apt-get install block alongside the existing iproute2 package. Add regression test to the gateway isolation E2E suite verifying iptables is present in the built image. Fixes NVBug 6014904.
Contributor
📝 WalkthroughWalkthroughDockerfile now pins and installs Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
cv
approved these changes
Mar 25, 2026
temrjan
pushed a commit
to temrjan/NemoClaw
that referenced
this pull request
Mar 25, 2026
…enforcement (NVIDIA#843) Without iptables installed in the sandbox image, OpenShell logs "iptables not found; bypass detection rules will not be installed" and reports Active: 0 for all network policies. This means every outbound connection from the sandbox succeeds regardless of the configured network policy, rendering the entire policy framework (openclaw-sandbox.yaml, presets) ineffective. Add pinned iptables=1.8.9-2 to the apt-get install block alongside the existing iproute2 package. Add regression test to the gateway isolation E2E suite verifying iptables is present in the built image. Fixes NVBug 6014904.
vidulpanickan
pushed a commit
to vidulpanickan/MediClaw
that referenced
this pull request
Mar 25, 2026
…enforcement (NVIDIA#843) Without iptables installed in the sandbox image, OpenShell logs "iptables not found; bypass detection rules will not be installed" and reports Active: 0 for all network policies. This means every outbound connection from the sandbox succeeds regardless of the configured network policy, rendering the entire policy framework (openclaw-sandbox.yaml, presets) ineffective. Add pinned iptables=1.8.9-2 to the apt-get install block alongside the existing iproute2 package. Add regression test to the gateway isolation E2E suite verifying iptables is present in the built image. Fixes NVBug 6014904. (cherry picked from commit 5748a32) Signed-off-by: Vidul Ayakulangara Panickan <apvidul@gmail.com>
lakamsani
pushed a commit
to lakamsani/NemoClaw
that referenced
this pull request
Apr 4, 2026
…enforcement (NVIDIA#843) Without iptables installed in the sandbox image, OpenShell logs "iptables not found; bypass detection rules will not be installed" and reports Active: 0 for all network policies. This means every outbound connection from the sandbox succeeds regardless of the configured network policy, rendering the entire policy framework (openclaw-sandbox.yaml, presets) ineffective. Add pinned iptables=1.8.9-2 to the apt-get install block alongside the existing iproute2 package. Add regression test to the gateway isolation E2E suite verifying iptables is present in the built image. Fixes NVBug 6014904.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
iptables=1.8.9-2to the Dockerfileapt-get installblocke2e-gateway-isolation.shverifying iptables is presentWithout iptables, OpenShell logs
iptables not found; bypass detection rules will not be installedand all sandbox network policies reportActive: 0. Every outbound connection succeeds regardless of the configured policy, renderingopenclaw-sandbox.yamland all presets ineffective.PR #721 addressed gateway process isolation but did not add the missing iptables package. This PR closes that gap.
Test plan
docker buildsucceeds with the new packagedocker run --rm --entrypoint "" <image> iptables --versionprintsiptables v1.8.9bash test/e2e-gateway-isolation.sh— all 11 tests pass (new test 10 verifies iptables)openshell policy statusshowsActive: >0rulesSummary by CodeRabbit
Chores
Tests