Conversation
5041582 to
680b5fa
Compare
680b5fa to
96aad30
Compare
…upport Starting in Docker 28 (the version used by our Ubuntu 24.04 image), dockerd introduced direct-access filtering for published ports as a hardening change. That path programs iptables `-t raw` rules, which in Firecracker guest VMs can fail with: iptables ... can't initialize iptables table `raw': Table does not exist because our current guest kernel configs all have `CONFIG_IP_NF_RAW` disabled. Changes: - Set `DOCKER_INSECURE_NO_IPTABLES_RAW=1` unconditionally when starting dockerd in goinit. - Keep an inline note explaining why this is safe for our VM sandboxing model. - Update docker-in-firecracker coverage to include `docker run -p ...` in `TestFirecrackerRunWithDockerOverUDS`. - Update guest API hash expectation. - Add TODOs at the top of all guest kernel config files to enable `CONFIG_NF_TABLES` and remove the env-var fallback. Repro (before/after): run the same `bb execute` command with and without `--action_env=DOCKER_INSECURE_NO_IPTABLES_RAW=1`; `docker run -p ...` fails without it and succeeds with it.
96aad30 to
d633570
Compare
iain-macdonald
approved these changes
Feb 26, 2026
maggie-lou
approved these changes
Feb 26, 2026
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.
Docker v28 configures direct-access filtering via iptables
-t rawfor published ports. As a result, commands likedocker run -p <port>fail withbecause our current guest kernel configs all have
CONFIG_IP_NF_RAWdisabled.Repro: run the same
bb executecommand with firecracker isolation, with and without--action_env=DOCKER_INSECURE_NO_IPTABLES_RAW=1; manually startdockerd &, sleep for a bit then rundocker run -p ...Fix:
DOCKER_INSECURE_NO_IPTABLES_RAW=1unconditionally when starting dockerd in goinit. Includes an inline note explaining why this is safe for our VM sandboxing model.CONFIG_NF_TABLESand remove the env-var fallback. (I don't want to do this right now since I think it's slightly risky, so I'd rather save this for when we incrementally start migrating to our new 6.1 config)docker run -p ...on a newer docker version.Context: https://buildbuddy-corp.slack.com/archives/C0AFN0SMNG5/p1772129387671119?thread_ts=1772012498.295389&cid=C0AFN0SMNG5