Add recommended security policies for tool-level enforcement#2294
Open
L1AD wants to merge 1 commit intogithub:mainfrom
Open
Add recommended security policies for tool-level enforcement#2294L1AD wants to merge 1 commit intogithub:mainfrom
L1AD wants to merge 1 commit intogithub:mainfrom
Conversation
Three YAML policy presets for use with PolicyLayer Intercept, an open-source MCP proxy that adds rate limits, daily caps, and access control on individual tool calls. Complements existing PAT/OAuth/SSO governance with per-tool enforcement — rate limiting writes, blocking destructive ops like delete_file, and capping merges and workflow triggers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three YAML policy files for use with PolicyLayer Intercept, an open-source MCP proxy that enforces rate limits, daily caps, and access control on individual tool calls.
This complements the existing policies and governance doc, which covers access control via PATs, OAuth, and SSO. Those controls determine which tools an agent can access — these policies control how aggressively an agent uses them once access is granted.
The governance doc explicitly lists "granular, action-by-action audit logs" as a current limitation. Intercept provides exactly this: structured JSON logs for every tool call decision.
What's included
recommended.yaml highlights:
delete_file: hidden and blocked entirelymerge_pull_request: 2/min burst, 10/hour cappush_files: 3/min burst, 20/hour capactions_run_trigger: 5/hour (prevents runaway CI)create_repository/fork_repository: 5/hourstrict.yaml — read-only mode:
permissive.yaml — for development:
delete_filestill blockedUsage
Also added a README section under "Tool-level policy enforcement" and a prerequisite link in the Remote Server section.
About PolicyLayer Intercept
@policylayer/intercept