overwatch policies
Display and validate security policies.Usage
Subcommands
| Subcommand | Description |
|---|---|
list (or ls) | List active policies |
validate | Validate configuration file |
Options
| Option | Description |
|---|---|
-c, --config <path> | Path to configuration file |
--json | Output in JSON format |
Examples
List All Policies
Validate Configuration
JSON Output
Policy Actions
| Action | Behavior |
|---|---|
allow | Always allow without prompt |
deny | Always deny |
prompt | Ask user for approval |
Path-Based Policies
For filesystem operations:Policy Matching
Policies are matched in order:- Exact tool name match (
query) - Wildcard match (
read_*) - Global match (
*) - Default action
Validation Checks
Thevalidate command checks:
- YAML syntax validity
- Version compatibility
- Valid action values
- Tool pattern syntax
- Path pattern conflicts
- Deprecated field warnings