Skip to content

Document recommended shape for console authorisation rules - #527

Open
leonard-tesnov wants to merge 1 commit into
masterfrom
console-authorisation-rules-docs
Open

leonard-tesnov wants to merge 1 commit into
masterfrom
console-authorisation-rules-docs

Conversation

@leonard-tesnov

Copy link
Copy Markdown
Contributor

Add a README warning on how authorisation rules are matched: rules compare the console command as exact strings, so the supported shape is a strict defaultAuthorisationRule with allowlist rules that relax it for known-safe commands. A lax default with stricter rules on specific commands is a deny-list and is not safe to rely on.

  • README: add guidance for writing allowlist rules and point the example link at the recommended sample.
  • Add an allowlist-shaped ConsoleTemplate sample.
  • Mark the existing sample as a deny-list shape that should not be copied.

Add a README warning on how authorisation rules are matched: rules compare
the console command as exact strings, so the supported shape is a strict
defaultAuthorisationRule with allowlist rules that relax it for known-safe
commands. A lax default with stricter rules on specific commands is a
deny-list and is not safe to rely on.

- README: add guidance for writing allowlist rules and point the example
  link at the recommended sample.
- Add an allowlist-shaped ConsoleTemplate sample.
- Mark the existing sample as a deny-list shape that should not be copied.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@leonard-tesnov
leonard-tesnov requested review from a team and asilde October 6, 2026 13:00
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