mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-29 19:34:29 +01:00
Adds an opt-in `browse --public-only` mode (or `BROWSE_PUBLIC_ONLY=1`): every connection the browser makes goes through a guard that refuses loopback, private, link-local, cloud-metadata and this machine's own network addresses. Why: an agent reading an untrusted page should not let that page reach services on your machine or network (#4812). Default mode is unchanged. Nothing to do unless you want the mode; see BROWSER.md "Public-only mode". Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1b/red-team#1 reader=red-team Review-Finding: p1b/red-team#2 reader=red-team Review-Finding: p1v/outside-voice#1 reader=outside-voice Review-Finding: p1v/outside-voice#2 reader=outside-voice Review-Finding: p1v/outside-voice#3 reader=outside-voice Review-Finding: p1v/outside-voice#4 reader=outside-voice Review-Finding: p1v/adversarial-native#1 reader=adversarial-native Review-Finding: p1v/adversarial-native#2 reader=adversarial-native Review-Finding: p1v/adversarial-native#3 reader=adversarial-native Review-Finding: p1v/adversarial-native#5 reader=adversarial-native Review-Finding: p2/specialist-batched#1 reader=specialist-batched Review-Finding: p2/red-team#1 reader=red-team