Skip to content

[DOCS] Document bash whitelist file-write redirect restriction #188

Closed

Description

@edenreich

Summary

The CLI's Bash tool now restricts file-write redirections by default (inference-gateway/cli#613, closes inference-gateway/cli#560). This is a user-facing change to the Bash whitelist policy and should be mirrored on the docs site.

Changed behavior:

  • File-write redirections (>, >>, &>file, >&file) are blocked by default, even for an otherwise-whitelisted command (for example echo secret > /etc/passwd is rejected).
  • A redirection is allowed only when a whitelist pattern matches the entire command. A prefix pattern such as ^git log will not unlock git log > file; use an anchored pattern (^...$) to opt one specific redirect in.
  • Benign redirections that only discard or merge streams (2>&1, >/dev/null, 2>/dev/null) are stripped before matching and remain allowed.
  • Pipes and chains (|, &&, ||, ;) require every segment to be independently whitelisted (existing behavior from fix(tools): make bash whitelist shell-aware to fix benign-command rejections (#581) cli#605).
  • Command substitution ($(...), backticks, <(...), >(...)) is always rejected.
  • A denied command returns explanatory feedback naming the restricted operator and pointing at tools.bash.whitelist.patterns.

The in-repo docs were updated in the same PR (docs/tools-reference.md Bash Tool section and docs/configuration-reference.md); this ticket tracks reflecting the same content on the docs site.

Affected pages / locations

  • Bash tool reference (whitelist / security section).
  • Configuration reference (bash whitelist env vars INFER_TOOLS_BASH_WHITELIST_COMMANDS and INFER_TOOLS_BASH_WHITELIST_PATTERNS).

Example to include

tools:
  bash:
    whitelist:
      patterns:
        - ^echo .+ >> /var/log/app\.log$   # allow appending to one specific file

Links

Acceptance Criteria

  • Bash tool docs describe the restricted operators: pipes/chains validated per segment, file-write redirects blocked by default, benign redirects allowed, command substitution rejected
  • Documented how to allow a specific redirect via an anchored whitelist pattern, including the YAML example above
  • Configuration reference cross-references the policy from the bash whitelist section

Activity

  1. added
    documentation
    on Jun 6, 2026
  2. edenreich commented on Jun 6, 2026

    @edenreich
    ContributorAuthor

    @infer can you document it? use /maintainer

  3. added theissue type on Jun 6, 2026
  4. moved this to Todo in 2026on Jun 6, 2026
  5. inference-gateway-maintainer commented on Jun 6, 2026

    @inference-gateway-maintainer
    Contributor

    Todos

    • Update Bash tool section in cli.md with restricted operators documentation (pipes/chains, file-write redirects, benign redirects, command substitution, anchored pattern example)
    • Add INFER_TOOLS_BASH_WHITELIST_COMMANDS and INFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to cli.md configuration section with cross-reference
    • Update Security/Command Whitelisting section in cli.md to cross-reference restricted operators
    • Run lint and format checks, then commit and push

    Pull Request

    #190

    ✅ Infer Result: Success

    The task is complete. Here's a final checklist against the acceptance criteria:

    Acceptance Criteria Status
    Bash tool docs describe restricted operators (pipes/chains per segment, file-write redirects blocked, benign redirects allowed, command substitution rejected) ✅ Done
    Documented how to allow a specific redirect via anchored pattern, including the YAML example ✅ Done
    Configuration reference cross-references the policy from the bash whitelist section ✅ Done (env vars + Security section cross-reference)

    PR #190 has been created at #190 with all changes on the docs/bash-whitelist-restricted-operators branch. Both prettier --check and markdownlint pass cleanly.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · View Job

    Tokens: 3,408,227 in · 8,424 out · 3,416,651 total (34 requests)

    Tool calls: 38 total · 92% success rate

    ⚠️ 3 failed tool call(s)
    • Bash: command not whitelisted: gh api repos/inference-gateway/cli/pulls/613/files --jq '.[] | select(.filename | startswith("docs/")) | {filename, contents_url}'
    • Bash: command not whitelisted: npx prettier --check cli.md 2>&1 || true
    • Bash: command not whitelisted: gh pr create --title "docs: document bash whitelist file-write redirect restriction" --body "## 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

    Agent output (tail)
    t'\\n    description: 'Demo MCP server'\\n\\n  # Connect to external MCP server\\n  - name: 'filesystem'\\n    url: 'http://localhost:3000/sse'\\n    enabled: true\\n    description: 'File system operations'\\n    exclude_tools:\\n      - 'delete_file'\\n```\\n\\n**CLI Commands:**\\n\\n```bash\\n# Add auto-start MCP server\\ninfer mcp add my-server --run --oci=my-mcp:latest\\n\\n# List MCP servers\\ninfer mcp list\\n\\n# Toggle server\\ninfer mcp toggle my-server\\n\\n# Remove server\\ninfer mcp remove my-server\\n```\\n\\n**Using MCP Tools:**\\n\\nMCP tools appear as `MCP_\\u003cserver\\u003e_\\u003ctool\\u003e` in chat. Example:\\n\\n```bash\\ninfer chat\\n\\u003e \\\"Use the MCP_demo-server_get_time tool to get current time\\\"\\n```\\n\\nSee [MCP documentation](/mcp/) for detailed integration guide and server development.\\n\\n### Agent Skills\\n\\nReusable, model-readable instruction folders that the agent loads on demand. The CLI uses the same on-disk format as Claude Code, Gemini CLI, and OpenAI Codex CLI, so a skill authored for any of those tools drops into `.infer/skills/` unchanged. Skills are **disabled by default** - zero token cost until you enable them.\\n\\n```yaml\\n# .infer/config.yaml\\nagent:\\n  skills:\\n    enabled: true\\n    disabled_skills: [] # optional list of skill names to skip\\n```\\n\\n```bash\\n# Discover, install, and remove skills (also available in chat as /skills ...)\\ninfer skills list\\ninfer skills install acme/internal-comms   # or a bare name, or a github tree URL\\ninfer skills uninstall internal-comms\\n```\\n\\nOnce enabled, invoke a skill explicitly with `/\\u003cname\\u003e` (for example `/pdf-helper`) or by asking the agent to \\\"use the `\\u003cname\\u003e` skill\\\"; the CLI deterministically activates it by injecting the skill's metadata and pointing the agent at its `SKILL.md`. Installed skills under `~/.infer/skills` and `./.infer/skills` stay readable by the Read tool through a sandbox carve-out, so they load even when the agent runs outside the project directory (for example in CI).\\n\\nSee the full **[Agent Skills guide](/cli-skills/)** for the on-disk layout, the `SKILL.md` frontmatter contract, install flags, activation triggers, and the sandbox carve-out. To publish a skill in the shared index, see the [Skills Catalog](/skills/).\\n\\n### A2A Integration\\n\\nDelegate specialized tasks to Agent-to-Agent compatible agents.\\n\\n**Setup:**\\n\\n```bash\\n# Initialize agents configuration\\ninfer agents init\\n\\n# Add remote agent\\ninfer agents add calendar-agent http://calendar.example.com\\n\\n# Add local agent with Docker\\ninfer agents add my-agent http://localhost:8081 --oci ghcr.io/myorg/agent:latest --run\\n\\n# List agents\\ninfer agents list\\n\\n# View agent details\\ninfer agents show calendar-agent\\n```\\n\\n**Usage:**\\n\\n```bash\\ninfer chat\\n\\u003e \\\"Schedule a meeting tomorrow at 2 PM using the calendar agent\\\"\\n\\u003e /a2a  # View connected agents\\n```\\n\\nSee [A2A documentation](/a2a/) for creating custom agents, or use the [ADL CLI](/adl-cli/) to scaffold new A2A agents from YAML definitions.\\n\\n### Parallel Tool Execution\\n\\nExecute up to 5 tools concurrently for improved performance.\\n\\n**Configuration:**\\n\\n```yaml\\nagent:\\n  max_concurrent_tools: 5 # Default: 5\\n```\\n\\n**Benefits:**\\n\\n- Faster multi-file operations\\n- Concurrent web fetches\\n- Parallel code searches\\n- Reduced total execution time\\n\\n## Workflows\\n\\n### Bug Investigation and Fix\\n\\n```bash\\ninfer chat\\n# Shift+Tab to Plan Mode\\n\\u003e \\\"Analyze bug in issue #123 and create fix plan\\\"\\n\\n# Shift+Tab to Standard Mode\\n\\u003e \\\"Implement the fix according to the plan\\\"\\n\\n# Test and commit\\n\\u003e \\\"Run test suite to verify\\\"\\n\\u003e \\\"/git commit\\\"\\n```\\n\\n### Feature Development\\n\\n```bash\\ninfer chat\\n\\u003e \\\"Read CONTRIBUTING.md and understand project structure\\\"\\n\\n# Shift+Tab to Plan Mode\\n\\u003e \\\"Design implementation for user profile feature with avatar upload\\\"\\n\\n# Shift+Tab twice to Auto-Accept Mode\\n\\u003e \\\"Implement the user profile feature according to the plan\\\"\\n\\n# Shift+Tab to Standard Mode\\n\\u003e \\\"Review changes and run all tests\\\"\\n```\\n\\n### Code Review and Refactoring\\n\\n```bash\\ninfer chat\\n# Plan Mode for analysis\\n\\u003e \\\"Review authentication module for security issues and code quality\\\"\\n\\n# Standard Mode for implementation\\n\\u003e \\\"Refactor based on recommendations, prioritize security issues\\\"\\n```\\n\\n### GitHub Issue Resolution\\n\\n```bash\\ninfer agent \\\"Fix the bug described in GitHub issue #456\\\"\\n\\n# Agent autonomously:\\n# 1. Fetches issue details\\n# 2. Analyzes relevant code\\n# 3. Implements fix\\n# 4. Runs tests\\n# 5. Creates commit referencing issue\\n```\\n\\n## Best Practices\\n\\n### For Beginners\\n\\n- Start with Plan Mode for unfamiliar code\\n- Always work in git repositories\\n- Review diff visualizations before approving\\n- Begin with simple tasks\\n\\n### For Power Users\\n\\n- Use Auto-Accept for trusted, repetitive tasks\\n- Create custom shortcuts for frequent commands\\n- Combine with scripts for automation\\n- Leverage A2A for specialized workflows\\n\\n### Performance Tips\\n\\n- Be specific with file paths and function names\\n- Use Grep to narrow down relevant files first\\n- Break large tasks into smaller subtasks\\n- Provide context with references\\n\\n### Safety\\n\\n- Review diffs before approving modifications\\n- Run tests after significant changes\\n- Have backups before extensive Auto-Accept usage\\n- Whitelist only trusted commands\\n- Add sensitive directories to protected paths\\n\\n## Security\\n\\n### Command Whitelisting\\n\\nBash tool only executes whitelisted commands and patterns:\\n\\n```yaml\\ntools:\\n  bash:\\n    whitelist:\\n      commands: [ls, pwd, tree, git]\\n      patterns:\\n        - ^git status$\\n        - ^git branch.*$\\n        - ^npm test$\\n        - ^gh (issue|pr|repo|release|run|workflow) (list|view|status|diff|checks)( |$)\\n        - ^gh pr create( |$)\\n        - ^gh api [^ -][^ ]*( --paginate| --jq [^ ]+| -q [^ ]+)*$\\n```\\n\\nNon-destructive `gh` operations are whitelisted by default so the agent can work with GitHub out of the box; destructive ones (for example `gh pr merge`, `gh repo delete`) fall through to approval. See [GitHub Operations](#github-operations) for the full list.\\n\\nThe matcher is shell-aware: see [Restricted operators](#bash) for how pipes, file-write redirections, and command substitution are handled, and how to allow a specific redirect with an anchored pattern.\\n\\n### Protected Paths\\n\\nAutomatically excluded from tool access:\\n\\n- `.git/` - Repository data\\n- `*.env` - Environment files\\n- `.infer/` - Configuration directory\\n- Custom paths via sandbox config\\n\\n### Approval Workflow\\n\\nEnable safety confirmations:\\n\\n```bash\\ninfer config set tools.safety.require_approval true\\n```\\n\\nLLMs request approval before executing Write/Edit/Delete/Bash operations with real-time diff preview.\\n\\n## Troubleshooting\\n\\n### Connection Issues\\n\\n```bash\\n# Check configuration\\ninfer config get\\n\\n# Verify gateway status\\ninfer status\\n\\n# Debug mode\\ninfer --debug chat\\n```\\n\\n### Permission Issues\\n\\n```bash\\n# Check configuration directory\\nls -la ~/.infer/\\n\\n# Recreate config.yaml from defaults\\ninfer config init --overwrite\\n\\n# Re-initialize the project\\ninfer init\\n```\\n\\n### Tool Execution Problems\\n\\n```bash\\n# Inspect tool configuration\\ninfer config get tools\\n\\n# Check whether a bash command is whitelisted (without running it)\\ninfer tools validate \\\"git status\\\"\\n\\n# Enable debug logging\\nexport INFER_LOGGING_DEBUG=true\\ninfer agent \\\"your task\\\"\\n```\\n\\n### Computer Use Issues\\n\\n```bash\\n# Verify display server\\necho $DISPLAY  # Linux/X11\\n\\n# Check permissions (macOS)\\n# System Preferences \\u003e Security \\u0026 Privacy \\u003e Accessibility\\n\\n# Test screenshot\\ninfer chat\\n\\u003e \\\"Take a screenshot and describe what you see\\\"\\n```\\n\\n### Shell Completions Not Working\\n\\n```bash\\n# Confirm the completion script generates\\ninfer completion zsh | head\\n\\n# Zsh: the file must live on a directory in $fpath and be named _infer,\\n# then start a fresh shell\\ninfer completion zsh \\u003e \\\"${fpath[1]}/_infer\\\" \\u0026\\u0026 exec zsh\\n\\n# Bash: source the generated file (or place it under a bash-completion dir)\\nsource \\u003c(infer completion bash)\\n```\\n\\nIf completions still do not appear, the shell rc is usually not sourcing the completion file. Verify `compinit` is called for zsh (or `bash-completion` is installed for bash), confirm the file path is on `$fpath`/a bash-completion directory, then start a fresh shell.\\n\\n## Command Reference\\n\\n| Command                            | Description                                                      |\\n| ---------------------------------- | ---------------------------------------------------------------- |\\n| `infer init`                       | Initialize project configuration                                 |\\n| `infer status`                     | Check gateway health and resource usage                          |\\n| `infer chat`                       | Interactive chat session (TUI)                                   |\\n| `infer chat --web`                 | Web-based terminal interface                                     |\\n| `infer agent \\u003ctask\\u003e`               | Autonomous task execution                                        |\\n| `infer skills \\u003csubcommand\\u003e`        | Manage Agent Skills (list, install, uninstall)                   |\\n| `infer channels-manager`           | Start the remote messaging daemon ([Channels](/cli-channels/))   |\\n| `infer config \\u003csubcommand\\u003e`        | Configuration management (`init`, `get`, `set`)                  |\\n| `infer tools \\u003csubcommand\\u003e`         | Run agent tools directly (`execute`, `validate`)                 |\\n| `infer agents \\u003csubcommand\\u003e`        | A2A agent management                                             |\\n| `infer conversations \\u003csubcommand\\u003e` | Conversation history management (`list`, `show`)                 |\\n| `infer completion \\u003cshell\\u003e`         | Generate a shell completion script (bash, zsh, fish, powershell) |\\n| `infer version`                    | Show version information (backwards-compatible subcommand)       |\\n| `infer --version`                  | Show version information (styled by fang)                        |\\n| `infer --help`                     | Display styled help information                                  |\\n\\n## Support and Resources\\n\\n- **Repository**: [github.com/inference-gateway/cli](https://github.com/inference-gateway/cli)\\n- **Issues**: [GitHub Issues](https://github.com/inference-gateway/cli/issues)\\n- **Releases**: [GitHub Releases](https://github.com/inference-gateway/cli/releases)\\n- **Documentation**: [Full Configuration Reference](https://github.com/inference-gateway/cli/blob/main/docs/configuration.md)\\n\\nThe CLI is actively developed with regular updates and new features. Check the repository for the latest releases and announcements.\\n\",\"exit_code\":0,\"duration\":\"862.789063ms\"}}","tool_call_id":"call_l949infp","timestamp":"2026-06-06T18:43:55.934858841Z"}
    {"role":"assistant","content":"","reasoning_content":"The prettier output shows the formatted version of the file. Let me check if the file is already properly formatted by running prettier with --check. The `npm run format:check` command failed earlier, let me try running prettier directly with --check.","tool_calls":[{"function":{"arguments":"{\"command\":\"npx prettier --check cli.md\"}","name":"Bash"},"id":"call_mlxl80yg","type":"function"}],"tools":["Bash(command=npx prettier --check cli.md)"],"token_usage":{"completion_tokens":106,"prompt_tokens":129011,"total_tokens":129117},"timestamp":"2026-06-06T18:44:05.742546953Z","request_id":"f65027d4-bf80-47af-960d-77b067dcf9cc"}
    {"role":"tool","content":"Tool execution failed: ","tool_call_id":"call_mlxl80yg","timestamp":"2026-06-06T18:44:06.61502056Z"}
    {"role":"assistant","content":"","reasoning_content":"The command is failing. Let me try running itdifferently.","tool_calls":[{"function":{"arguments":"{\"command\":\"npx prettier --check cli.md 2\\u003e\\u00261 || true\"}","name":"Bash"},"id":"call_xzarp48g","type":"function"}],"tools":["Bash(command=npx prettier --check cli.md 2\u003e\u00261 || true)"],"token_usage":{"completion_tokens":71,"prompt_tokens":129131,"total_tokens":129202},"timestamp":"2026-06-06T18:44:14.624567927Z","request_id":"8280c658-05cb-4be0-833e-33304c6d77a5"}
    {"role":"tool","content":"Tool execution failed: command not whitelisted: npx prettier --check cli.md 2\u003e\u00261 || true","tool_call_id":"call_xzarp48g","timestamp":"2026-06-06T18:44:14.624856115Z"}
    {"role":"assistant","content":"","reasoning_content":"The `||` and `2\u003e\u00261` are causing issues. Let me try a different approach - just run prettier and check the exit code.","tool_calls":[{"function":{"arguments":"{\"command\":\"npx prettier --check cli.md; echo \\\"EXIT:$?\\\"\"}","name":"Bash"},"id":"call_yh1b7wsg","type":"function"}],"tools":["Bash(command=npx prettier --check cli.md; echo \"EXIT:$?\")"],"token_usage":{"completion_tokens":91,"prompt_tokens":129240,"total_tokens":129331},"timestamp":"2026-06-06T18:44:23.124345253Z","request_id":"15173f01-0605-427e-ae4e-248b6b370071"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"npx prettier --check cli.md; echo \\\"EXIT:$?\\\"\"},\"success\":true,\"duration\":851401697,\"data\":{\"command\":\"npx prettier --check cli.md; echo \\\"EXIT:$?\\\"\",\"output\":\"Checking formatting...\\n[\\u001b[33mwarn\\u001b[39m] cli.md\\n[\\u001b[33mwarn\\u001b[39m] Code style issues found in the above file. Run Prettier with --write to fix.\\nEXIT:1\\n\",\"exit_code\":0,\"duration\":\"851.394046ms\"}}","tool_call_id":"call_yh1b7wsg","timestamp":"2026-06-06T18:44:23.97592912Z"}
    {"role":"assistant","content":"","reasoning_content":"Prettier found formatting issues. Let me run prettier --write to fix them.","tool_calls":[{"function":{"arguments":"{\"command\":\"npx prettier --write cli.md\"}","name":"Bash"},"id":"call_o1y06i5g","type":"function"}],"tools":["Bash(command=npx prettier --write cli.md)"],"token_usage":{"completion_tokens":71,"prompt_tokens":129489,"total_tokens":129560},"timestamp":"2026-06-06T18:44:29.925861715Z","request_id":"c0d5611a-c56f-417f-a0f9-bb6f40c50dd7"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"npx prettier --write cli.md\"},\"success\":true,\"duration\":839437277,\"data\":{\"command\":\"npx prettier --write cli.md\",\"output\":\"cli.md 327ms\\n\",\"exit_code\":0,\"duration\":\"839.429575ms\"}}","tool_call_id":"call_o1y06i5g","timestamp":"2026-06-06T18:44:30.765471908Z"}
    {"role":"assistant","content":"","reasoning_content":"Good, prettier fixed the formatting. Let me verify the file is now properly formatted and run the lint checkagain.","tool_calls":[{"function":{"arguments":"{\"command\":\"npx prettier --check cli.md; echo \\\"EXIT:$?\\\"\"}","name":"Bash"},"id":"call_fnfn6b8o","type":"function"},{"function":{"arguments":"{\"command\":\"npm run lint:md\"}","name":"Bash"},"id":"call_06mq2002","type":"function"}],"tools":["Bash(command=npx prettier --check cli.md; echo \"EXIT:$?\")","Bash(command=npm run lint:md)"],"token_usage":{"completion_tokens":118,"prompt_tokens":129645,"total_tokens":129763},"timestamp":"2026-06-06T18:44:41.930590587Z","request_id":"fcd339d4-0b00-4e5b-b6b1-47b466d4d4cd"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"npx prettier --check cli.md; echo \\\"EXIT:$?\\\"\"},\"success\":true,\"duration\":1233390408,\"data\":{\"command\":\"npx prettier --check cli.md; echo \\\"EXIT:$?\\\"\",\"output\":\"Checking formatting...\\nAll matched files use Prettier code style!\\nEXIT:0\\n\",\"exit_code\":0,\"duration\":\"1.233382667s\"}}","tool_call_id":"call_fnfn6b8o","timestamp":"2026-06-06T18:44:43.164248798Z"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"npm run lint:md\"},\"success\":true,\"duration\":1482907495,\"data\":{\"command\":\"npm run lint:md\",\"output\":\"\\n\\u003e [email protected] lint:md\\n\\u003e markdownlint \\\"**/*.md\\\" --ignore node_modules --ignore .vitepress\\n\\n\",\"exit_code\":0,\"duration\":\"1.482901636s\"}}","tool_call_id":"call_06mq2002","timestamp":"2026-06-06T18:44:43.413669997Z"}
    {"role":"assistant","content":"Both checks pass. Now let me commit, push, and create a PR.","reasoning_content":"Both checks pass. Now let me commit and push the changes, then create a PR.","tool_calls":[{"function":{"arguments":"{\"command\":\"git status\"}","name":"Bash"},"id":"call_a7s5h0i9","type":"function"}],"tools":["Bash(command=git status)"],"token_usage":{"completion_tokens":79,"prompt_tokens":130089,"total_tokens":130168},"timestamp":"2026-06-06T18:44:53.087049776Z","request_id":"e0201b20-bc81-4bce-95f8-219048b19e70"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"git status\"},\"success\":true,\"duration\":53460444,\"data\":{\"command\":\"git status\",\"output\":\"On branch main\\nYour branch is up to date with 'origin/main'.\\n\\nChanges not staged for commit:\\n  (use \\\"git add \\u003cfile\\u003e...\\\" to update what will be committed)\\n  (use \\\"git restore \\u003cfile\\u003e...\\\" to discard changes in working directory)\\n\\tmodified:   cli.md\\n\\nno changes added to commit (use \\\"git add\\\" and/or \\\"git commit -a\\\")\\n\",\"exit_code\":0,\"duration\":\"53.454936ms\"}}","tool_call_id":"call_a7s5h0i9","timestamp":"2026-06-06T18:44:53.140679381Z"}
    {"role":"assistant","content":"","reasoning_content":"I need to create a new branch, commit, push, and create a PR. Let me dothat.","tool_calls":[{"function":{"arguments":"{\"command\":\"git checkout -b docs/bash-whitelist-restricted-operators\"}","name":"Bash"},"id":"call_w5v5da6o","type":"function"}],"tools":["Bash(command=git checkout -b docs/bash-whitelist-restricted-operators)"],"token_usage":{"completion_tokens":80,"prompt_tokens":130336,"total_tokens":130416},"timestamp":"2026-06-06T18:45:03.064013881Z","request_id":"d49019f7-3f3e-4572-bfa1-7272534ecdc7"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"git checkout -b docs/bash-whitelist-restricted-operators\"},\"success\":true,\"duration\":6392163,\"data\":{\"command\":\"git checkout -b docs/bash-whitelist-restricted-operators\",\"output\":\"Switched to a new branch 'docs/bash-whitelist-restricted-operators'\\n\",\"exit_code\":0,\"duration\":\"6.388698ms\"}}","tool_call_id":"call_w5v5da6o","timestamp":"2026-06-06T18:45:03.070560954Z"}
    {"role":"assistant","content":"","tool_calls":[{"function":{"arguments":"{\"command\":\"git add cli.md \\u0026\\u0026 git commit -m \\\"docs: document bash whitelist file-write redirect restriction\\n\\nAdd the restricted operators section to the Bash tool reference in\\ncli.md, covering:\\n- Pipes and chains validated per segment\\n- File-write redirections blocked by default\\n- Benign redirects allowed\\n- Command substitution rejected\\n- How to allow a specific redirect via an anchored whitelist pattern\\n\\nAlso add INFER_TOOLS_BASH_WHITELIST_COMMANDS and\\nINFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to the Essential\\nEnvironment Variables section, and cross-reference the restricted\\noperators from the Security/Command Whitelisting section.\\n\\nCloses #188\\\"\"}","name":"Bash"},"id":"call_uzs4w4hz","type":"function"}],"tools":["Bash(command=git add cli.md \u0026\u0026 git commit -m \"docs: document bash whitel…)"],"token_usage":{"completion_tokens":197,"prompt_tokens":130522,"total_tokens":130719},"timestamp":"2026-06-06T18:45:13.994321697Z","request_id":"da3bd22f-abc2-45be-a800-b85e6428d8e0"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"git add cli.md \\u0026\\u0026 git commit -m \\\"docs: document bash whitelist file-write redirect restriction\\n\\nAdd the restricted operators section to the Bash tool reference in\\ncli.md, covering:\\n- Pipes and chains validated per segment\\n- File-write redirections blocked by default\\n- Benign redirects allowed\\n- Command substitution rejected\\n- How to allow a specific redirect via an anchored whitelist pattern\\n\\nAlso add INFER_TOOLS_BASH_WHITELIST_COMMANDS and\\nINFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to the Essential\\nEnvironment Variables section, and cross-reference the restricted\\noperators from the Security/Command Whitelisting section.\\n\\nCloses #188\\\"\"},\"success\":true,\"duration\":13242397,\"data\":{\"command\":\"git add cli.md \\u0026\\u0026 git commit -m \\\"docs: document bash whitelist file-write redirect restriction\\n\\nAdd the restricted operators section to the Bash tool reference in\\ncli.md, covering:\\n- Pipes and chains validated per segment\\n- File-write redirections blocked by default\\n- Benign redirects allowed\\n- Command substitution rejected\\n- How to allow a specific redirect via an anchored whitelist pattern\\n\\nAlso add INFER_TOOLS_BASH_WHITELIST_COMMANDS and\\nINFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to the Essential\\nEnvironment Variables section, and cross-reference the restricted\\noperators from the Security/Command Whitelisting section.\\n\\nCloses #188\\\"\",\"output\":\"[docs/bash-whitelist-restricted-operators d4ea8ca] docs: document bash whitelist file-write redirect restriction\\n 1 file changed, 27 insertions(+)\\n\",\"exit_code\":0,\"duration\":\"13.238681ms\"}}","tool_call_id":"call_uzs4w4hz","timestamp":"2026-06-06T18:45:14.007789508Z"}
    {"role":"assistant","content":"","reasoning_content":"Now let me push and create thePR.","tool_calls":[{"function":{"arguments":"{\"command\":\"git push origin docs/bash-whitelist-restricted-operators\"}","name":"Bash"},"id":"call_gjkcebnz","type":"function"}],"tools":["Bash(command=git push origin docs/bash-whitelist-restricted-operators)"],"token_usage":{"completion_tokens":66,"prompt_tokens":131148,"total_tokens":131214},"timestamp":"2026-06-06T18:45:25.803013419Z","request_id":"32b4d944-e4bb-4710-8796-6b9c216440fb"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"git push origin docs/bash-whitelist-restricted-operators\"},\"success\":true,\"duration\":963726459,\"data\":{\"command\":\"git push origin docs/bash-whitelist-restricted-operators\",\"output\":\"remote: \\nremote: Create a pull request for 'docs/bash-whitelist-restricted-operators' on GitHub by visiting:        \\nremote:      https://github.com/inference-gateway/docs/pull/new/docs/bash-whitelist-restricted-operators        \\nremote: \\nTo https://github.com/inference-gateway/docs\\n * [new branch]      docs/bash-whitelist-restricted-operators -\\u003e docs/bash-whitelist-restricted-operators\\n\",\"exit_code\":0,\"duration\":\"963.719138ms\"}}","tool_call_id":"call_gjkcebnz","timestamp":"2026-06-06T18:45:26.766920446Z"}
    {"role":"assistant","content":"","reasoning_content":"Now let me create the PR.","tool_calls":[{"function":{"arguments":"{\"command\":\"gh pr create --title \\\"docs: document bash whitelist file-write redirect restriction\\\" --body \\\"## Summary\\n\\nCloses #188.\\n\\nDocuments the Bash tool's shell-aware whitelist matcher changes from inference-gateway/cli#613 (closes inference-gateway/cli#560).\\n\\n### Changes to \\\\`cli.md\\\\`\\n\\n**Bash tool reference** - Added a **Restricted operators** section covering:\\n- Pipes and chains (\\\\`|\\\\`, \\\\`\\u0026\\u0026\\\\`, \\\\`||\\\\`, \\\\`;\\\\`) validated per segment\\n- File-write redirections (\\\\`\\u003e\\\\`, \\\\`\\u003e\\u003e\\\\`, \\\\`\\u0026\\u003efile\\\\`, \\\\`\\u003e\\u0026file\\\\`) blocked by default\\n- Benign redirections (\\\\`2\\u003e\\u00261\\\\`, \\\\`\\u003e/dev/null\\\\`) allowed\\n- Command substitution (\\\\`$(...)\\\\`, backticks) rejected\\n- How to allow a specific redirect via an anchored whitelist pattern (\\\\`^...\\\\$\\\\`)\\n- YAML example for allowing appending to a specific log file\\n\\n**Essential Environment Variables** - Added \\\\`INFER_TOOLS_BASH_WHITELIST_COMMANDS\\\\` and \\\\`INFER_TOOLS_BASH_WHITELIST_PATTERNS\\\\` with examples.\\n\\n**Security / Command Whitelisting** - Added cross-reference to the restricted operators section.\\n\\n### Source\\n\\n- Source PR: inference-gateway/cli#613\\n- Source issue: inference-gateway/cli#560\\n- Prior context: inference-gateway/cli#605 (shell-aware matcher)\\\" --base main --head docs/bash-whitelist-restricted-operators\"}","name":"Bash"},"id":"call_os4n7xt2","type":"function"}],"tools":["Bash(command=gh pr create --title \"docs: document bash whitelist file-wr…)"],"token_usage":{"completion_tokens":400,"prompt_tokens":131408,"total_tokens":131808},"timestamp":"2026-06-06T18:45:43.922995138Z","request_id":"b033d3af-b182-4527-bcdb-e633185b4e06"}
    {"role":"tool","content":"Tool execution failed: command not whitelisted: gh pr create --title \"docs: document bash whitelist file-write redirect restriction\" --body \"## Summary\n\nCloses #188.\n\nDocuments the Bash tool's shell-aware whitelist matcher changes from inference-gateway/cli#613 (closes inference-gateway/cli#560).\n\n### Changes to \\`cli.md\\`\n\n**Bash tool reference** - Added a **Restricted operators** section covering:\n- Pipes and chains (\\`|\\`, \\`\u0026\u0026\\`, \\`||\\`, \\`;\\`) validated per segment\n- File-write redirections (\\`\u003e\\`, \\`\u003e\u003e\\`, \\`\u0026\u003efile\\`, \\`\u003e\u0026file\\`) blocked by default\n- Benign redirections (\\`2\u003e\u00261\\`, \\`\u003e/dev/null\\`) allowed\n- Command substitution (\\`$(...)\\`, backticks) rejected\n- How to allow a specific redirect via an anchored whitelist pattern (\\`^...\\$\\`)\n- YAML example for allowing appending to a specific log file\n\n**Essential Environment Variables** - Added \\`INFER_TOOLS_BASH_WHITELIST_COMMANDS\\` and \\`INFER_TOOLS_BASH_WHITELIST_PATTERNS\\` with examples.\n\n**Security / Command Whitelisting** - Added cross-reference to the restricted operators section.\n\n### Source\n\n- Source PR: inference-gateway/cli#613\n- Source issue: inference-gateway/cli#560\n- Prior context: inference-gateway/cli#605 (shell-aware matcher)\" --base main --head docs/bash-whitelist-restricted-operators - command substitution ($(...), backticks, \u003c(...), \u003e(...)) is not permitted; run the inner command directly instead","tool_call_id":"call_os4n7xt2","timestamp":"2026-06-06T18:45:43.923238149Z"}
    {"role":"assistant","content":"","reasoning_content":"The `gh pr create` command failed because the body contains backticks and special characters that conflict with the shell. Let me try a simpler approach - write the PR body to a file and use `--body-file`.","tool_calls":[{"function":{"arguments":"{\"file_path\":\"/tmp/pr-body.md\",\"content\":\"## Summary\\n\\nCloses #188.\\n\\nDocuments the Bash tool's shell-aware whitelist matcher changes from inference-gateway/cli#613 (closes inference-gateway/cli#560).\\n\\n### Changes to `cli.md`\\n\\n**Bash tool reference** - Added a **Restricted operators** section covering:\\n- Pipes and chains (`|`, `\\u0026\\u0026`, `||`, `;`) validated per segment\\n- File-write redirections (`\\u003e`, `\\u003e\\u003e`, `\\u0026\\u003efile`, `\\u003e\\u0026file`) blocked by default\\n- Benign redirections (`2\\u003e\\u00261`, `\\u003e/dev/null`) allowed\\n- Command substitution (`$(...)`, backticks) rejected\\n- How to allow a specific redirect via an anchored whitelist pattern (`^...$`)\\n- YAML example for allowing appending to a specific log file\\n\\n**Essential Environment Variables** - Added `INFER_TOOLS_BASH_WHITELIST_COMMANDS` and `INFER_TOOLS_BASH_WHITELIST_PATTERNS` with examples.\\n\\n**Security / Command Whitelisting** - Added cross-reference to the restricted operators section.\\n\\n### Source\\n\\n- Source PR: inference-gateway/cli#613\\n- Source issue: inference-gateway/cli#560\\n- Prior context: inference-gateway/cli#605 (shell-aware matcher)\\n\"}","name":"Write"},"id":"call_mwkfh0v6","type":"function"}],"tools":["Write(content=## Summary  Closes #188.  Documents the Bash tool's shell-a…, file_path=/tmp/pr-body.md)"],"token_usage":{"completion_tokens":394,"prompt_tokens":132300,"total_tokens":132694},"timestamp":"2026-06-06T18:45:59.447579067Z","request_id":"f743fc01-299f-4697-b8d1-a7e745d53ba7"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Write\",\"arguments\":{\"content\":\"## Summary\\n\\nCloses #188.\\n\\nDocuments the Bash tool's shell-aware whitelist matcher changes from inference-gateway/cli#613 (closes inference-gateway/cli#560).\\n\\n### Changes to `cli.md`\\n\\n**Bash tool reference** - Added a **Restricted operators** section covering:\\n- Pipes and chains (`|`, `\\u0026\\u0026`, `||`, `;`) validated per segment\\n- File-write redirections (`\\u003e`, `\\u003e\\u003e`, `\\u0026\\u003efile`, `\\u003e\\u0026file`) blocked by default\\n- Benign redirections (`2\\u003e\\u00261`, `\\u003e/dev/null`) allowed\\n- Command substitution (`$(...)`, backticks) rejected\\n- How to allow a specific redirect via an anchored whitelist pattern (`^...$`)\\n- YAML example for allowing appending to a specific log file\\n\\n**Essential Environment Variables** - Added `INFER_TOOLS_BASH_WHITELIST_COMMANDS` and `INFER_TOOLS_BASH_WHITELIST_PATTERNS` with examples.\\n\\n**Security / Command Whitelisting** - Added cross-reference to the restricted operators section.\\n\\n### Source\\n\\n- Source PR: inference-gateway/cli#613\\n- Source issue: inference-gateway/cli#560\\n- Prior context: inference-gateway/cli#605 (shell-aware matcher)\\n\",\"file_path\":\"/tmp/pr-body.md\"},\"success\":true,\"duration\":1065360,\"data\":{\"file_path\":\"/tmp/pr-body.md\",\"bytes_written\":1045,\"lines_written\":26,\"created\":true,\"overwritten\":false,\"dirs_created\":false,\"appended\":false,\"is_complete\":true}}","tool_call_id":"call_mwkfh0v6","timestamp":"2026-06-06T18:45:59.448903462Z"}
    {"role":"assistant","content":"","reasoning_content":"Now let me create the PR using the bodyfile.","tool_calls":[{"function":{"arguments":"{\"command\":\"gh pr create --title \\\"docs: document bash whitelist file-write redirect restriction\\\" --body-file /tmp/pr-body.md --base main --head docs/bash-whitelist-restricted-operators\"}","name":"Bash"},"id":"call_38b94rxi","type":"function"}],"tools":["Bash(command=gh pr create --title \"docs: document bash whitelist file-wr…)"],"token_usage":{"completion_tokens":97,"prompt_tokens":133128,"total_tokens":133225},"timestamp":"2026-06-06T18:46:08.842690503Z","request_id":"3cbba986-9438-4343-9496-e42b5e398923"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"Bash\",\"arguments\":{\"command\":\"gh pr create --title \\\"docs: document bash whitelist file-write redirect restriction\\\" --body-file /tmp/pr-body.md --base main --head docs/bash-whitelist-restricted-operators\"},\"success\":true,\"duration\":1483366725,\"data\":{\"command\":\"gh pr create --title \\\"docs: document bash whitelist file-write redirect restriction\\\" --body-file /tmp/pr-body.md --base main --head docs/bash-whitelist-restricted-operators\",\"output\":\"https://github.com/inference-gateway/docs/pull/190\\n\",\"exit_code\":0,\"duration\":\"1.483360184s\"}}","tool_call_id":"call_38b94rxi","timestamp":"2026-06-06T18:46:10.32624128Z"}
    {"role":"assistant","content":"","reasoning_content":"The PR was created successfully at https://github.com/inference-gateway/docs/pull/190. Let me update the todo list and provide a summary.","tool_calls":[{"function":{"arguments":"{\"todos\":[{\"content\":\"Update Bash tool section in cli.md with restricted operators documentation (pipes/chains, file-write redirects, benign redirects, command substitution, anchored pattern example)\",\"id\":\"1\",\"status\":\"completed\"},{\"content\":\"Add INFER_TOOLS_BASH_WHITELIST_COMMANDS and INFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to cli.md configuration section with cross-reference\",\"id\":\"2\",\"status\":\"completed\"},{\"content\":\"Update Security/Command Whitelisting section in cli.md to cross-reference restricted operators\",\"id\":\"3\",\"status\":\"completed\"},{\"content\":\"Run lint and format checks, then commit and push\",\"id\":\"4\",\"status\":\"completed\"}]}","name":"TodoWrite"},"id":"call_wecvjeap","type":"function"}],"tools":["TodoWrite(todos=[map[content:Update Bash tool section in cli.md with restri…)"],"token_usage":{"completion_tokens":249,"prompt_tokens":133387,"total_tokens":133636},"timestamp":"2026-06-06T18:46:18.953828402Z","request_id":"b9eda0c3-ef02-4b2e-8820-f086da2c37a3"}
    {"role":"tool","content":"Result of tool call: {\"tool_name\":\"TodoWrite\",\"arguments\":{\"todos\":[{\"content\":\"Update Bash tool section in cli.md with restricted operators documentation (pipes/chains, file-write redirects, benign redirects, command substitution, anchored pattern example)\",\"id\":\"1\",\"status\":\"completed\"},{\"content\":\"Add INFER_TOOLS_BASH_WHITELIST_COMMANDS and INFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to cli.md configuration section with cross-reference\",\"id\":\"2\",\"status\":\"completed\"},{\"content\":\"Update Security/Command Whitelisting section in cli.md to cross-reference restricted operators\",\"id\":\"3\",\"status\":\"completed\"},{\"content\":\"Run lint and format checks, then commit and push\",\"id\":\"4\",\"status\":\"completed\"}]},\"success\":true,\"duration\":2543,\"data\":{\"todos\":[{\"id\":\"1\",\"content\":\"Update Bash tool section in cli.md with restricted operators documentation (pipes/chains, file-write redirects, benign redirects, command substitution, anchored pattern example)\",\"status\":\"completed\"},{\"id\":\"2\",\"content\":\"Add INFER_TOOLS_BASH_WHITELIST_COMMANDS and INFER_TOOLS_BASH_WHITELIST_PATTERNS env vars to cli.md configuration section with cross-reference\",\"status\":\"completed\"},{\"id\":\"3\",\"content\":\"Update Security/Command Whitelisting section in cli.md to cross-reference restricted operators\",\"status\":\"completed\"},{\"id\":\"4\",\"content\":\"Run lint and format checks, then commit and push\",\"status\":\"completed\"}],\"total_tasks\":4,\"completed_tasks\":4,\"validation_ok\":true}}","tool_call_id":"call_wecvjeap","timestamp":"2026-06-06T18:46:18.954063751Z"}
    {"role":"assistant","content":"All done! Here's a summary of the changes:\n\n## PR #190 — [docs: document bash whitelist file-write redirect restriction](https://github.com/inference-gateway/docs/pull/190)\n\n### Changes to `cli.md`\n\n**1. Bash tool reference — Restricted operators section** (added after the existing YAML example)\n\nDocuments the shell-aware whitelist matcher behavior:\n- **Pipes and chains** (`|`, `\u0026\u0026`, `||`, `;`) — every segment must be independently whitelisted\n- **File-write redirections** (`\u003e`, `\u003e\u003e`, `\u0026\u003efile`, `\u003e\u0026file`) — blocked by default; only allowed via an anchored pattern (`^...$`)\n- **Benign redirections** (`2\u003e\u00261`, `\u003e/dev/null`, `2\u003e/dev/null`) — stripped before matching, always allowed\n- **Command substitution** (`$(...)`, backticks, `\u003c(...)`, `\u003e(...)`) — always rejected\n- Includes the YAML example from the issue for allowing a specific redirect\n- Notes that rejected commands return explanatory feedback naming the restricted operator\n\n**2. Essential Environment Variables** — Added `INFER_TOOLS_BASH_WHITELIST_COMMANDS` and `INFER_TOOLS_BASH_WHITELIST_PATTERNS` with example values\n\n**3. Security / Command Whitelisting** — Added cross-reference: \"The matcher is shell-aware: see Restricted operators for how pipes, file-write redirections, and command substitution are handled\"\n\n### Acceptance criteria met\n\n- [x] Bash tool docs describe the restricted operators: pipes/chains validated per segment, file-write redirects blocked by default, benign redirects allowed, command substitution rejected\n- [x] Documented how to allow a specific redirect via an anchored whitelist pattern, including the YAML example\n- [x] Configuration reference cross-references the policy from the bash whitelist section (via env vars and Security section cross-reference)","reasoning_content":"All tasks are complete. Let me provide a summary of what was done.","token_usage":{"completion_tokens":439,"prompt_tokens":134000,"total_tokens":134439},"timestamp":"2026-06-06T18:46:33.200800899Z","request_id":"cd30a246-d600-4f80-8120-30a886e9e727"}
    {"role":"assistant","content":"The task is complete. Here's a final checklist against the acceptance criteria:\n\n| Acceptance Criteria | Status |\n|---|---|\n| Bash tool docs describe restricted operators (pipes/chains per segment, file-write redirects blocked, benign redirects allowed, command substitution rejected) | ✅ Done |\n| Documented how to allow a specific redirect via anchored pattern, including the YAML example | ✅ Done |\n| Configuration reference cross-references the policy from the bash whitelist section | ✅ Done (env vars + Security section cross-reference) |\n\n**PR #190** has been created at https://github.com/inference-gateway/docs/pull/190 with all changes on the `docs/bash-whitelist-restricted-operators` branch. Both `prettier --check` and `markdownlint` pass cleanly.","reasoning_content":"Let me review the issue acceptance criteria one more time to make sure everything is covered:\n\n1. **Bash tool docs describe the restricted operators: pipes/chains validated per segment, file-write redirects blocked by default, benign redirects allowed, command substitution rejected** ✅ - Done in the \"Restricted operators\" section under the Bash tool.\n\n2. **Documented how to allow a specific redirect via an anchored whitelist pattern, including the YAML example above** ✅ - Done with the YAML example showing `^echo .+ \u003e\u003e /var/log/app\\.log$`.\n\n3. **Configuration reference cross-references the policy from the bash whitelist section** ✅ - Done:\n   - Added `INFER_TOOLS_BASH_WHITELIST_COMMANDS` and `INFER_TOOLS_BASH_WHITELIST_PATTERNS` env vars to the Essential Environment Variables section\n   - Added cross-reference in the Security/Command Whitelisting section pointing to the Restricted operators\n\nLet me also check the issue's \"Affected pages / locations\" section:\n- **Bash tool reference (whitelist / security section)** ✅ - Updated in the Bash tool section and Security section\n- **Configuration reference (bash whitelist env vars)** ✅ - Added env vars to Essential Environment Variables section\n\nThe issue also mentions:\n- Source PR: inference-gateway/cli#613 ✅ - Referenced in the PR body\n- Source issue: inference-gateway/cli#560 ✅ - Referenced in the PR body\n- Prior context: inference-gateway/cli#605 ✅ - Referenced in the PR body\n\nI think everything is covered. The PR has been created, lint and format checks pass. The task is complete.","token_usage":{"completion_tokens":532,"prompt_tokens":134476,"total_tokens":135008},"timestamp":"2026-06-06T18:46:45.160836252Z","request_id":"fdca7fb3-df7e-4839-aac3-74f4af2d29c5"}
    {"completion_tokens":8424,"cost":{"currency":"USD","input":0,"output":0,"total":0},"message":"Session complete","model":"ollama_cloud/deepseek-v4-flash","prompt_tokens":3408227,"requests":34,"timestamp":"2026-06-06T18:46:45.160972424Z","total_tokens":3416651,"type":"session_stats"}
    
    

    Triggered by edenreich · Infer Action

  6. added a commit that references this issue on Jun 6, 2026
    8b93d5b
  7. moved this from Todo to Done in 2026on Jun 8, 2026
  8. inference-gateway-releaser commented on Jun 10, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.6.110 🎉

    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