Repository navigation
fix: restrict default tool filesystem/network access - #171
Merged
Merged
Conversation
Mitigation for #168: bake restrictive defaults into the built-in tools via agent.yaml (read/write/edit allowed_roots, fetch max_bytes/timeout), block navigate_to_url from loopback/private/link-local targets by default (opt-out: BROWSER_ALLOW_INTERNAL_URLS=true), and document the security posture in SECURITY.md and the README.
This was referenced Aug 25, 2026
Closed
edenreich
commented
Aug 25, 2026
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Aug 26, 2026
## [0.8.4](v0.8.3...v0.8.4) (2026-08-26) ### 🐛 Bug Fixes * restrict default tool filesystem/network access ([#171](#171)) ([e8805ad](e8805ad)), closes [#168](#168), references [#168](#168) ### 👷 CI * **deps:** bump docker/setup-buildx-action from 4.2.0 to 4.3.0 in the github-actions group ([#165](#165)) ([fb86d8a](fb86d8a)) * **deps:** bump the gomod group with 2 updates ([#164](#164)) ([78552e9](78552e9)), closes [#v](https://github.com/inference-gateway/browser-agent/issues/v) ### 🔧 Miscellaneous * **deps:** bump ADL CLI to v0.60.2 ([#158](#158)) ([cae26a4](cae26a4)) * **deps:** bump ADL CLI to v0.60.3 ([#159](#159)) ([ac587eb](ac587eb)) * **deps:** bump ADL CLI to v0.60.4 ([#161](#161)) ([6d3af3e](6d3af3e)) * **deps:** bump ADL CLI to v0.60.5 ([#162](#162)) ([cd15889](cd15889)) * **deps:** bump ADL CLI to v0.61.1 ([#163](#163)) ([423ea68](423ea68)) * **deps:** bump ADL CLI to v0.61.3 ([#169](#169)) ([869eaa7](869eaa7)) * **deps:** bump ADL CLI to v0.61.4 ([#172](#172)) ([12f79b2](12f79b2)) * **deps:** bump ADL CLI to v0.62.1 ([#173](#173)) ([6848874](6848874)) * sync generated project with ADL manifest ([#166](#166)) ([74a1516](74a1516)) * sync generated project with ADL manifest ([#167](#167)) ([eb33883](eb33883))
Contributor
|
🎉 This PR is included in version 0.8.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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
Mitigation for #168 (insecure defaults). The allowlist enforcement already existed in the generated built-in tools — this change populates it with restrictive defaults and closes the browser-SSRF gap:
agent.yaml(regenerated with ADL CLI 0.61.3):read/write/editare now restricted to/tmp/playwright/artifacts(read additionally covers.agents/skillsso skill playbooks stay loadable);fetchgets explicitmax_bytes: 10 MiB/timeout_seconds: 30defaults. All overridable per deployment via the existingTOOLS_*env vars.tools/navigate_to_url.go(hand-editable,.adl-ignore-protected): blocks navigation to loopback, private (RFC1918/ULA), link-local (incl. cloud metadata169.254.169.254), and unspecified addresses by default. Opt-out withBROWSER_ALLOW_INTERNAL_URLS=truefor legitimately testing internal webapps. Table-driven test added.SECURITY.md: private disclosure via GitHub security advisories.A2A_AUTH_ENABLEDrequirement when publishing port 8080, and the sandbox-widening env vars.fetch.allowed_domainsdeliberately stays empty — this is a research/browsing agent; the deny-internal-ranges fix for the generated fetch tool belongs in the adl-cli template (tracked upstream).Cross-repo impact
inference-gateway/adl-cli— root cause:len(allowlist)==0 → allow alltemplate semantics + fetch SSRF guard (upstream issue filed).inference-gateway/adk— auth middleware fails open whenEnable=truewith missing OIDC fields;Enable→Enabledfield rename (upstream issue filed).inference-gateway/docs— docs ticket filed for the new defaults and env vars.Closes #168