Skip to content

docs: document bash whitelist file-write redirect restriction - #190

Merged
edenreich merged 1 commit into
mainfrom
docs/bash-whitelist-restricted-operators
Jun 6, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/bash-whitelist-restricted-operators

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Closes #188.

Documents the Bash tool's shell-aware whitelist matcher changes from inference-gateway/cli#613 (closes inference-gateway/cli#560).

Changes to cli.md

Bash tool reference - Added a Restricted operators section covering:

  • Pipes and chains (|, &&, ||, ;) validated per segment
  • File-write redirections (>, >>, &>file, >&file) blocked by default
  • Benign redirections (2>&1, >/dev/null) allowed
  • Command substitution ($(...), backticks) rejected
  • How to allow a specific redirect via an anchored whitelist pattern (^...$)
  • YAML example for allowing appending to a specific log file

Essential Environment Variables - Added INFER_TOOLS_BASH_WHITELIST_COMMANDS and INFER_TOOLS_BASH_WHITELIST_PATTERNS with examples.

Security / Command Whitelisting - Added cross-reference to the restricted operators section.

Source

Add the restricted operators section to the Bash tool reference in
cli.md, covering:
- Pipes and chains validated per segment
- File-write redirections blocked by default
- Benign redirects allowed
- Command substitution rejected
- How to allow a specific redirect via an anchored whitelist pattern

Also add INFER_TOOLS_BASH_WHITELIST_COMMANDS and
INFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to the Essential
Environment Variables section, and cross-reference the restricted
operators from the Security/Command Whitelisting section.

Closes #188
@edenreich
edenreich merged commit 8b93d5b into main Jun 6, 2026
@edenreich
edenreich deleted the docs/bash-whitelist-restricted-operators branch June 6, 2026 18:47
inference-gateway-releaser Bot pushed a commit that referenced this pull request Jun 10, 2026
## [0.6.110](0.6.109...0.6.110) (2026-06-10)

### 👷 CI

* centralize claude.yml via reusable workflow ([#208](#208)) ([e9e5571](e9e5571))
* **deps:** update inference workflow to version 0.7.9 ([7c898a8](7c898a8))
* **infer:** centralize infer.yml + sync .infer config ([#199](#199)) ([3913f65](3913f65))
* use GitHub App token and non-generic bot identity for release ([49ca5b5](49ca5b5))

### 📚 Documentation

* add dedicated Documentation Agent page ([#206](#206)) ([68b8f5e](68b8f5e))
* document bash whitelist file-write redirect restriction ([#190](#190)) ([8b93d5b](8b93d5b)), closes [#188](#188)
* document chat completion schema gaps ([#210](#210)) ([883e593](883e593))
* rework bash allow-list, approval, skills, chat-TUI docs ([#195](#195)) ([48adf12](48adf12))
* update README.md to reflect VitePress tech stack and current repo structure ([#205](#205)) ([a2506aa](a2506aa))

### 🔧 Miscellaneous

* **deps-dev:** bump @types/node from 25.9.1 to 25.9.2 in the npm group ([#193](#193)) ([b56a52b](b56a52b))
* **deps:** bump claude-code 2.1.158 -> 2.1.161 ([#196](#196)) ([8ec11c2](8ec11c2))
* **deps:** bump infer CLI v0.119.0 -> v0.120.0, infer-action v0.11.4 -> v0.11.6 ([#189](#189)) ([57cf040](57cf040))
* **deps:** bump infer CLI v0.120.0 -> v0.120.1, infer-action v0.11.6 -> v0.11.7 ([#191](#191)) ([f0dd62f](f0dd62f))
* **deps:** bump infer CLI v0.120.1 -> v0.121.0 ([#197](#197)) ([92592de](92592de))
* **deps:** bump infer-action v0.11.7 -> v0.12.0 ([#198](#198)) ([6d6b63e](6d6b63e))
* **deps:** bump infer-action v0.12.0 -> v0.12.1 ([#207](#207)) ([9572f74](9572f74))
* **deps:** bump the github-actions group with 2 updates ([#192](#192)) ([9f531a4](9f531a4))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.6.110 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document bash whitelist file-write redirect restriction [FEATURE] Bash pipes or output redirections should be restricted by default

1 participant