feat: add optional pentest sandbox setup (egress-firewalled Docker overlay) - #121
Draft
niklashaug wants to merge 2 commits into
Draft
niklashaug wants to merge 2 commits into
niklashaug wants to merge 2 commits into
Conversation
…erlay) Adds a docker-compose overlay plus a network-namespace-sharing firewall sidecar that blocks real internet egress from the app under test, so a dynamic AI pentest (e.g. Strix) or anything else run against it can't accidentally hit real third-party services. Piloted on konsens, see peerigon/IT#335 for background. Ships as generic building blocks (docker/apply-firewall.sh, Dockerfile.firewall) plus a parameterized skeleton/scripts that a new project's AI-assisted customize flow fills in from its own docker-compose.yml, following the same pattern already used for package.json/README/LICENSE customization. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Format README.md and network-isolation-check.mjs with oxfmt. - Add a Node-globals eslint override scoped to scripts/**/*.mjs (it's a standalone CLI script, not app code) and allow process.exit() there. - Rewrite the reachability probe to run in parallel (Promise.all instead of await-in-loop), use function declarations, and stringify numbers in template literals per the repo's lint rules. - Type-narrow the caught error safely instead of relying on implicit any. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
niklashaug
commented
Sep 23, 2026
Member
Author
There was a problem hiding this comment.
currently thinking if the /scripts directory is a good place for all of this because this will be inline in future projects, maybe this should be nested inside of some .template folder or something so it's clear that those scripts come from the template and a project can have its own /scripts directory if it wants to
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
docker/apply-firewall.sh,docker/Dockerfile.firewall) plus a parameterized skeleton/scripts (docker-compose.pentest.yml,scripts/run-pentest.sh,scripts/verify-pentest-network-isolation.sh) that a new project's AI-assisted customize flow fills in from its owndocker-compose.yml- same pattern already used for package.json/README/LICENSE customization.Test plan
./scripts/run-pentest.shbrings up the sandbox, verifies isolation, and only then starts Strix🤖 Generated with Claude Code