Skip to content

[DOCS] Document browser-agent tool sandbox defaults and auth requirements #585

Closed

Description

@edenreich

Description

inference-gateway/browser-agent#171 hardens the browser-agent's default tool access (mitigation for inference-gateway/browser-agent#168). The security posture and new defaults need documentation coverage.

User-facing behavior to document

  • Built-in tool sandbox defaults: read/write/edit restricted to /tmp/playwright/artifacts (read also covers .agents/skills); fetch capped at 10 MiB / 30 s.
  • Env vars to widen or restrict: TOOLS_READ_ALLOWED_ROOTS, TOOLS_WRITE_ALLOWED_ROOTS, TOOLS_EDIT_ALLOWED_ROOTS, TOOLS_FETCH_ALLOWED_DOMAINS, TOOLS_FETCH_MAX_BYTES, TOOLS_FETCH_TIMEOUT_SECONDS.
  • navigate_to_url blocks loopback/private/link-local (incl. cloud metadata) targets by default; opt-out via BROWSER_ALLOW_INTERNAL_URLS=true for internal webapp testing.
  • Deployment guidance: agents ship with no published port; exposing the A2A endpoint requires A2A_AUTH_ENABLED=true plus OIDC configuration (A2A_AUTH_ISSUER_URL, A2A_AUTH_CLIENT_ID, A2A_AUTH_CLIENT_SECRET).

Affected pages

  • Agent configuration reference (env vars section) - add the TOOLS_* and BROWSER_ALLOW_INTERNAL_URLS variables.
  • Deployment / security guidance page (create if none exists) - authentication requirement when exposing agent ports.

Examples to add

  • docker-compose snippet enabling auth for an exposed agent.
  • Example overriding allowed roots for a deployment that needs a shared artifacts volume.

Source

Activity

  1. added
    documentation
    on Aug 25, 2026
  2. added theissue type on Aug 25, 2026
  3. moved this to Todo in 2026on Aug 25, 2026
  4. edenreich commented on Aug 25, 2026

    @edenreich
    ContributorAuthor

    @claude Can you document this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Aug 25, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 2m 0s —— View job • docs/issue-585-20260825-2302 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-585-20260825-2302?quick_pull=1&title=Issue%20%23585%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23585%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented browser-agent sandbox defaults & auth

    • Read browser-agent.md and related pages
    • Add TOOLS_* / BROWSER_ALLOW_INTERNAL_URLS env vars
    • Add deployment/auth security guidance + examples
    • Validate (lint:md, format:check, build - all pass)
    • Commit + open PR

    All of it landed on browser-agent.md - no new page. The guidance is agent-specific, so a separate security page would just be a page that links back here.

    What was added:

    • Tool sandbox section - default allowed roots for read (/tmp/playwright/artifacts + .agents/skills), write/edit (artifacts only), and the fetch 10 MiB / 30 s caps. Notes that *_ALLOWED_ROOTS replaces rather than appends to the defaults, with a shared-artifacts-volume example and a fetch domain-allowlist example.
    • Internal network targets - navigate_to_url blocks loopback/private/link-local (incl. 169.254.169.254) by default; BROWSER_ALLOW_INTERNAL_URLS=true opt-out with the prompt-injection caveat.
    • Deployment and authentication - images publish no port by design; docker-compose snippet enabling A2A_AUTH_* OIDC auth for an exposed agent, plus which endpoints stay public.
    • Configuration table rows for TOOLS_READ/WRITE/EDIT_ALLOWED_ROOTS, TOOLS_FETCH_ALLOWED_DOMAINS/MAX_BYTES/TIMEOUT_SECONDS, BROWSER_ALLOW_INTERNAL_URLS, and the four A2A_AUTH_* variables.

    Pull request #586
    | Branch

  6. moved this from Todo to In progress in 2026on Aug 25, 2026
  7. moved this from In progress to QA in 2026on Aug 25, 2026
  8. moved this from QA to Done in 2026on Aug 27, 2026
  9. inference-gateway-releaser commented on Aug 28, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.13 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions