Skip to content

[DOCS] Bash path-check text-value exemptions need documenting #1232

Closed

Description

Summary

The Bash auto-approval path check in the CLI changed with inference-gateway/cli#1872 (resolves inference-gateway/cli#1870): values that a command never opens as a file are no longer treated as sandbox paths - the jq filter after gh -q/--jq, the free text after --title/--body, the message after git -m, the HTTP endpoint after gh api, and /dev/null as a read operand. docs/tools-reference.md, the paragraph "Paths stay inside the sandbox" (near line 579), still says arguments, --flag=value and -Xvalue values, ~, $VAR and globs "are all checked" without these exemptions, so the page now overstates what gets blocked.

Acceptance Criteria

  • The "Paths stay inside the sandbox" paragraph in docs/tools-reference.md lists the text-value exemptions (gh -q/--jq, --title/--body, git -m, the gh api endpoint, /dev/null for reads) alongside the existing echo/printf carve-out.
  • The page still states the hard limits: the values of file-opening options (--body-file, --input, glued --flag=path) and every other operand, including later operands after a skipped text value, still pass the sandbox check.
  • Any related example or configuration page that discusses Bash auto-approval wording matches the new behavior.

Activity

  1. added
    documentation
    on Nov 15, 2026
  2. edenreich commented on Nov 16, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. inference-gateway-maintainer commented on Nov 16, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 23s —— View job • docs/issue-1232-20261116-1441


    Documented the Bash path-check exemptions

    • Gather context and locate the wording
    • Write the exemptions into the Bash section of cli.md
    • Validate (lint:md, format:check, build)
    • Commit and open a PR

    Finding: the paragraph the issue names, "Paths stay inside the sandbox" in docs/tools-reference.md near line 579, is in the inference-gateway/cli repository, not here. This site had no coverage of the Bash path check at all - cli.md documented the per-mode allowed-list and the clean-command guard only. So instead of editing the old text, I added the check and its exemptions to cli.md as a new ##### Paths stay inside the sandbox subsection under the Bash tool:

    • What is checked: operands, --flag=value and -Xvalue values, input redirections, ~, $VAR, globs - against filesystem.allowed / filesystem.denied with symlinks resolved.
    • The text-value exemptions: the jq filter after gh -q / --jq, the free text after --title / --body, the message after git -m, the gh api endpoint, /dev/null as a read operand, plus the existing echo / printf carve-out.
    • The hard limits: file-opening option values (--body-file, --input, a glued --flag=path) and every other operand - including operands after a skipped text value - still pass the check, and unknowable paths (${VAR:-x}, $1, {a,b}, ~user) or risky globs still ask.

    No other page on this site repeats the old "are all checked" wording, so nothing else needed changing. The source paragraph in the CLI repository still overstates what gets blocked - that needs a separate PR there, which I cannot open from this run.

    Create a PR - already opened as #1234.
    | branch

  4. moved this from Todo to In progress in 2026on Nov 16, 2026
  5. moved this from In progress to QA in 2026on Nov 16, 2026
  6. moved this from QA to Done in 2026on Nov 16, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    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

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions