Skip to main content
← Back to list
01Issue
FeatureShippedSwamp Club
Assigneesstack72

Relationships

#1542 Document --restricted-commands flag for swamp serve

Opened by stack72 · 8/5/2026· Shipped 8/6/2026

Problem

PR #2087 added a new --restricted-commands flag to swamp serve that restricts specified server commands to admin-only access (following the same pattern as --restricted-model-types). The manual and serve documentation need to be updated to cover this feature.

Proposed Solution

Update the swamp serve documentation to include:

  • Flag reference: --restricted-commands <cmds> — comma-separated list of server commands that require admin authority (e.g. datastore.namespace.list,extension.install). Requires --auth-mode token or oauth.
  • Config file: auth.restricted-commands accepts a YAML string array in serve.yaml.
  • Error behavior: non-admin users receive "Access denied: <principal> does not have 'admin' on access:<command>" when attempting a restricted command.
  • Example usage: show a realistic example restricting destructive or administrative commands.
  • Comparison with --restricted-model-types: explain when to use each (model type restrictions for controlling which models can be created/run, command restrictions for controlling which server operations are available).

Alternatives

None — this is straightforward documentation for a shipped feature.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

8/6/2026, 12:53:06 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack728/6/2026, 12:09:55 AM

Sign in to post a ripple.