Relationships
↑ child of #662#704 serve-auth: alias 'swamp access policy' as alternative to 'swamp access grant'
Opened by stack72 · 6/19/2026· Shipped 6/19/2026
Problem
`swamp access grant create/list/revoke` uses internal terminology ("grant") that doesn't resonate with users. "Policy" is the more natural word for access control rules — it's what admins think in terms of.
Solution
Add `policy` as an alias for `grant` under `swamp access`:
```bash
These should be equivalent:
swamp access policy create --subject user:sarah --allow run --on 'model:' swamp access grant create --subject user:sarah --allow run --on 'model:'
swamp access policy list swamp access grant list
swamp access policy revoke swamp access grant revoke ```
Both `grant` and `policy` should work. `grant` remains the canonical name (used in data store, source field, internal types). `policy` is a user-facing alias.
Implementation
Register the same `accessGrantCommand` under both names in `src/cli/commands/access.ts`:
```typescript .command("grant", accessGrantCommand) .command("policy", accessGrantCommand) ```
Or use Cliffy's `.alias()` if available.
Priority
Low — UX improvement.
Shipped
Click a lifecycle step above to view its details.