Skip to content
Cisco AI Defense logo
CiscoAI Security

defenseclaw-gateway policy — DefenseClaw

Overview

defenseclaw-gateway policy — Manage and inspect OPA policies.

Reference

Synopsis

policy

Subcommands

SubcommandDescription
domainsList firewall domain allowlist and blocklist from active policy
evaluateDry-run the admission policy for a given input
evaluate-firewallDry-run the firewall policy for a given destination
reloadTell the running sidecar daemon to reload OPA policies
showDisplay the current OPA data.json policy configuration
validateCompile-check all Rego modules and validate data.json

Description

Validate, inspect, evaluate, and reload DefenseClaw OPA policies.

defenseclaw-gateway policy domains

Synopsis

domains

Description

List firewall domain allowlist and blocklist from active policy

defenseclaw-gateway policy evaluate

Synopsis

evaluate

Description

Dry-run the admission policy for a given input

Flags

FlagTypeDefaultDescription
--findingsint0Number of findings
--severitystringMax severity of scan result (empty = pre-scan)
--target-namestringTarget name to evaluate
--target-typestringskillTarget type (skill, mcp, plugin)

defenseclaw-gateway policy evaluate-firewall

Synopsis

evaluate-firewall

Description

Dry-run the firewall policy for a given destination

Flags

FlagTypeDefaultDescription
--destinationstringDestination hostname or IP
--portint443Destination port
--protocolstringtcpProtocol (tcp/udp)
--target-typestringskillTarget type context

defenseclaw-gateway policy reload

Synopsis

reload

Description

Tell the running sidecar daemon to reload OPA policies

defenseclaw-gateway policy show

Synopsis

show

Description

Display the current OPA data.json policy configuration

defenseclaw-gateway policy validate

Synopsis

validate

Description

Compile-check all Rego modules and validate data.json

Usage

Concrete invocation recipes are added by the cli-commands subagents. Pair this with the equivalent Python wrapper command under Python CLI — most gateway operations are also available one layer up.

Related