Security and Governance
Inspect governance posture, manage firewall rules, read the audit ledger, export compliance evidence, and review sandbox denials from the CLI.
Security and governance commands are read-mostly inspection surfaces over the sidecar — they mirror the Security, Access, and Compliance screens.
Firewall mutations (security firewall set) require the security:admin capability. Every call passes through the same RBAC gate as the UI.
Governance posture
Prints the live posture slice: air-gap mode, firewall, PII profiles, sandbox, RBAC, egress, and audit logging.
RBAC operator roles
Read-only view of canonical operator roles and surface assignments.
Egress policy
Shows the outbound network policy. Edit allowlist rules in the app under Tools › Egress or via MCP security tools when mcp-serve is running.
Firewall rules
List rules
--shadow lists rules in dry-run (log-only) mode.
Create or update a rule
Actions: block, redact, flag, dry_run. Add --shadow to evaluate without enforcing.
Test sample text
Sandbox
Denials explain why tool or flow execution was blocked under the active sandbox policy.
Audit ledger
audit verify exits 1 when the hash chain or signatures fail — use after exports for auditor handoff.
Stream new entries:
Compliance
Scope kinds: workspace, email, user-id, org-id (format kind:value). Legal-hold commands use the local SQLite store on self-hosted installs.
DSAR / erasure flows use compliance delete — coordinate with tenant admin tooling on cloud deployments. See Compliance for regime-specific evidence exports in the UI.
MCP security tools
When running akos mcp-serve, external agents can list and mutate firewall rules, egress policy, and PII profiles via MCP tools — each call requires security:admin and flows through the sidecar RBAC gate. See Deploying › MCP security tools.
Related topics
- Security in the app — egress, firewall, PII, and flow preview.
- Access in the app — capability matrix and signed HITL ledger.
- Run lifecycle — where RBAC and audit attach to every run.
- Authentication — session identity used for capability checks.
- Command reference — full
security,sandbox,audit, andcompliancetables.