Skip to content

feat(permissions): warn that Warp's command_denylist replaces the built-in one - #2625

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2598-warp-denylist-warning
Aug 7, 2026
Merged

feat(permissions): warn that Warp's command_denylist replaces the built-in one#2625
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2598-warp-denylist-warning

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Warp's docs state: "Setting command_denylist replaces the built-in default denylist, which covers rm, curl, wget, eval, ssh, shells, and other risky command patterns." (https://docs.warp.dev/cli/permissions-and-profiles/)

rulesync generates that array wholesale from the canonical deny rules, so a single authored deny rule silently removed Warp's built-in protections. WarpPermissions.fromRulesyncPermissions now logs a warning whenever it writes a non-empty denylist, naming the built-in patterns and telling the user to add equivalents if they want to keep them. Tests cover both the warning and its absence when only allow rules are authored; docs/reference/file-formats.md documents the replacement semantics.

Not in scope here: creating a warpcli target remains design-gated per the disposition comment on this issue.

Part of #2598

🤖 Generated with Claude Code

…lt-in one

Warp treats a written command_denylist as the whole denylist: it replaces the built-in default list covering rm, curl, wget, eval, ssh, shells and other risky patterns. A single authored deny rule therefore drops those protections silently, so log a warning whenever a non-empty denylist is emitted.
The canonical permissions file is permissions.jsonc; permissions.json is only the legacy name. Also move the upstream doc URL into the class comment and match the surrounding logger guard style.
@dyoshikawa
dyoshikawa merged commit beaef6e into main Aug 7, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2598-warp-denylist-warning branch August 7, 2026 19:01
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