Kanshō

Docs / Permissions and trust /

PermissionScopeMap

Visual map of the permissions an agent holds, organized by scope category.

Preview

Agent permission map · dataops-v2
  • database/postgres/prodproject

    Production Postgres cluster. Write access is gated and audited.

    readwritedeleteschema
  • email/sendgridworkspace

    Outbound email via SendGrid. Bulk sends require explicit approval.

    readsenddelete
  • git/github/kansho-uirun

    Repository access. Auto-approved for read; push requires human sign-off.

    readwritepushbranch
    • readmatches repo allowlist
GrantedDeniedAskAutoInherited

Variants

Minimal — two groups, no caption

  • filesystem/localrun
    readwritedelete
    • readmatches project directory
  • network/externalworkspace
    fetchpost
GrantedDeniedAskAutoInherited

Props

PropTypeDescription
groups*ScopeGroup[]One entry per resource group. Each group has a scope path, optional tier, description, and permission actions.
captionstringOptional heading rendered above the group list.
classNamestringAdditional CSS classes for the section root.

* required.

Usage

import { PermissionScopeMap } from "@/components/control-plane/permission-scope-map";

<PermissionScopeMap
  caption="Agent permission map · dataops-v2"
  groups={[
    {
      id: "db-prod",
      scope: "database/postgres/prod",
      tier: "project",
      permissions: [
        { action: "read", mode: "granted" },
        { action: "write", mode: "ask" },
        { action: "delete", mode: "denied" },
      ],
    },
  ]}
/>