guarded_net pins the address and checks every redirect for our own HTTP and TCP connections. The DAST and pentest browser does not go through it: it drives an external Chrome (browserless, CHROME_WS_URL) over CDP, and Chrome resolves names and follows redirects itself. A tenant page can therefore navigate or redirect the browser to an internal address.
DAST and pentest are off in production (source_only), so this blocks turning them back on in R1, not the MVP.
Change:
Run the browser on a network that can reach only the internet: no platform services, no metadata endpoint. Use a dedicated Docker network, or run it on the Werkbank runner.
Also start Chrome with --host-resolver-rules / --proxy-server pointing at a filtering proxy that applies NetGuard.
Acceptance: from inside a browser session, http://169.254.169.254/ and http://mongo:27017/ are unreachable; a test proves it.
Follow-up to #294.
`guarded_net` pins the address and checks every redirect for our own HTTP and TCP connections. The DAST and pentest **browser** does not go through it: it drives an external Chrome (browserless, `CHROME_WS_URL`) over CDP, and Chrome resolves names and follows redirects itself. A tenant page can therefore navigate or redirect the browser to an internal address.
DAST and pentest are off in production (`source_only`), so this blocks turning them back on in R1, not the MVP.
**Change:**
- Run the browser on a network that can reach only the internet: no platform services, no metadata endpoint. Use a dedicated Docker network, or run it on the Werkbank runner.
- Also start Chrome with `--host-resolver-rules` / `--proxy-server` pointing at a filtering proxy that applies `NetGuard`.
**Acceptance:** from inside a browser session, `http://169.254.169.254/` and `http://mongo:27017/` are unreachable; a test proves it.
sharang
added this to the R1 · Dynamic & OT depth milestone 2026-09-21 20:19:31 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #294.
guarded_netpins the address and checks every redirect for our own HTTP and TCP connections. The DAST and pentest browser does not go through it: it drives an external Chrome (browserless,CHROME_WS_URL) over CDP, and Chrome resolves names and follows redirects itself. A tenant page can therefore navigate or redirect the browser to an internal address.DAST and pentest are off in production (
source_only), so this blocks turning them back on in R1, not the MVP.Change:
--host-resolver-rules/--proxy-serverpointing at a filtering proxy that appliesNetGuard.Acceptance: from inside a browser session,
http://169.254.169.254/andhttp://mongo:27017/are unreachable; a test proves it.