RBAC And Audit
Use this guide to define role boundaries and audit expectations for Management MCP.
Role model
| Role | Typical MCP scope | Recommended usage |
|---|---|---|
viewer | tools/list, read-only tool calls (not the workflow test tools), including list_workflows, get_workflow, list_workflow_versions, workflow_usages, export_workflow, list_proxy_versions, get_proxy_version, compare_proxy_versions | dashboards, inventory sync, read bots |
modifier | safe create/update operations, workflow test runs (workflow_test_node, workflow_test_workflow_stream, workflow_trigger_test_listen, workflow_trigger_test_stream), workflow writes (create_workflow, update_workflow, validate_workflow, publish_workflow, delete_workflow, import_workflow) | CI automation with approval gates |
auditor | audit inspection: tools/list shows only list_audit_logs and get_audit_log, and every other tool is refused | compliance and change review |
admin | destructive/high-impact tools | isolated identities only |
Separation of duties checklist
- Keep read automation and write automation on separate identities.
- Keep
admintools off default automation identities. - Use explicit change windows for mutation tools.
- Require audit review for destructive operations.
Audit evidence to capture
- Actor identity (subject + role)
- JSON-RPC method/tool name
- Target object (collection/proxy/workflow)
- Result status (allowed/denied/succeeded/failed)
- Timestamp and request/session correlation
Workflow writes are audited with resource type workflow and actions create, update, publish, restore, activate, deactivate and delete; a proxy's own workflow saved with update_proxy_workflow stays proxy / update_workflow. Publishing a workflow that proxies run also updates those proxies; the audited response lists them in synced_proxies. Workflow definitions returned by get_workflow have secret values masked as ********. restore_proxy_version needs a modifier role and is audited as proxy / restore_version.
Agents that change workflows other things depend on should call workflow_usages first: delete_workflow is refused while a proxy, another workflow or an AI guardrail uses the workflow, and publish_workflow changes what those proxies run.
Validation tests
vieweridentity attempts mutation -> expect403.modifierperforms approved update -> expect success + audit entry.- Missing auth -> expect
401. - Out-of-scope admin action by non-admin identity -> expect
403.