Skip to content

docs(security): clarify optional policy gateway boundary - #611

Open
jiezeng2004-design wants to merge 3 commits into
wonderwhy-er:mainfrom
jiezeng2004-design:agent/external-policy-gateway-docs
Open

docs(security): clarify optional policy gateway boundary#611
jiezeng2004-design wants to merge 3 commits into
wonderwhy-er:mainfrom
jiezeng2004-design:agent/external-policy-gateway-docs

Conversation

@jiezeng2004-design

@jiezeng2004-design jiezeng2004-design commented Jul 25, 2026

Copy link
Copy Markdown

Summary

  • document an optional external policy gateway between an AI client and Desktop Commander
  • state that direct client connections bypass the gateway
  • preserve Docker, VM, and OS isolation as the containment boundary

Why

Desktop Commander's current security model correctly distinguishes safety
guardrails from sandboxing. Some deployments also need a deterministic policy
decision, human confirmation, and redacted audit record before a requested tool
call is forwarded.

This documentation describes that optional governance layer without treating it
as a replacement for Desktop Commander guardrails or OS-level isolation. It
also makes the enforcement boundary explicit: only calls routed through the
gateway are governed. Desktop Commander does not require or imply support for
any particular gateway implementation.

This is related to the policy-enforcement discussion in #431, but it does not
claim to implement or close that product-level request.

Validation

  • git diff --check
  • manual Markdown heading and paragraph review
  • verified that gateway, bypass, guardrail, and OS-isolation limitations appear together

Related: #431

Summary by CodeRabbit

  • Documentation
    • Added guidance on using an optional external policy gateway for tool-call governance, approvals, forwarding, and redacted audit records.
    • Clarified that the gateway is not a sandbox and may be bypassed by direct connections.
    • Updated the documentation’s “Last updated” date to July 2026.

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 775e12ea-4051-41fa-aeba-48e58f34977d

📥 Commits

Reviewing files that changed from the base of the PR and between dd694ad and fdac04b.

📒 Files selected for processing (1)
  • SECURITY.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • SECURITY.md

📝 Walkthrough

Walkthrough

SECURITY.md adds guidance for an optional external policy gateway, clarifies its security boundaries and fail-closed behavior, and updates the document footer to July 2026.

Changes

Security documentation

Layer / File(s) Summary
Policy gateway guidance
SECURITY.md
Documents optional gateway processing, policy checks, approvals, forwarding, redacted audit records, fail-closed behavior, sandbox limitations, direct-connection bypasses, and the July 2026 update date.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the documentation change about an optional policy gateway boundary and its constraints.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jiezeng2004-design jiezeng2004-design changed the title docs(security): document external policy gateway pattern docs(security): clarify optional policy gateway boundary Jul 25, 2026
@jiezeng2004-design
jiezeng2004-design marked this pull request as ready for review July 25, 2026 11:10
Copilot AI review requested due to automatic review settings July 25, 2026 11:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@SECURITY.md`:
- Around line 28-35: Update the external policy gateway guidance to state that
timeouts, errors, and missing policy decisions must fail closed by blocking
forwarding. Preserve the existing distinction between gateway governance and
OS-level containment.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 31c53813-bf0a-42fe-98e1-b480b8b6df50

📥 Commits

Reviewing files that changed from the base of the PR and between 1eccc8b and dd694ad.

📒 Files selected for processing (1)
  • SECURITY.md

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants