What you’ll learn
This guide explains what Policies are and how to manage them in your workspace. For activity history and CSV export, see: Workspace LogsOverview
Policies help validate automated write operations (agents, workflows, integrations) against your business rules before execution.How a policy is selected (basic)
Each decision uses one policy. For a given Object Type / Action, Sanka selects a policy in this order:- Principal-bound policy (if a binding exists for the principal)
- Workspace default policy (fallback)
- If neither exists, Sanka treats it as no policy found for that operation
- Policies are rolling out in a scope-limited way (some operations may not be covered yet).
- Detailed rule building will be expanded in later phases.
Open Policies
- Open Sanka.
- From the left sidebar, open Workspace.
- Click Policy & Logs.
- Select the Policies tab.
Create a Policy
- In the Policies tab, fill in the fields:
- Policy Key: Unique identifier in the workspace (keep stable; it can be referenced by logs/automations. If you need to change it, create a new policy instead).
- Name: Human-readable label.
- Object Type and Action: What operation the policy applies to.
- Priority: Lower numbers are evaluated first when multiple policies match.
- Click Create.
- New policies start with an empty rule set (allow by default).
Activate, deactivate, priority
- Active: Can be used for validation.
- Inactive: Ignored.
- When multiple candidates exist (for example multiple bindings), the one with the lowest priority number is selected first.
Default policy (workspace baseline)
The default policy is the baseline for an Object Type / Action and is used when no principal binding exists.To set it:- Open the Policies tab.
- In the list, find the policy you want as default and click Set in the Default column.
Principal-specific bindings
Use bindings when you want a specific principal (UI user, API token, integration, workflow) to use a different policy than the workspace default.- Open the Principals tab.
- Create the principal if needed.
- Create a binding between the principal and a policy.
- Use Preview to confirm which policy will apply for a principal + scope.
Tips
- Start with a small number of high-value operations, then expand.
- If you only need logs, use the Logs tab and the Workspace Logs guide.