Inspect bundle or policy
rego_inspectInspect an OPA bundle, policy directory, or Rego file to retrieve manifest data, namespaces, rule annotations, and signature metadata.
Instructions
Inspect an OPA bundle, policy directory, or single Rego file with opa inspect. Returns manifest data, namespaces, rule annotations, and (if signed) signature metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Path to a bundle archive (`*.tar.gz`), directory, or single Rego file. | |
| v0Compatible | No | Read the policy as Rego v0 (`--v0-compatible`), the syntax OPA used before 1.0: rules without `if`, partial sets as `deny[msg] { ... }`. Needed for a policy that has not been migrated, which OPA 1.x otherwise refuses to load. Where the tool also takes a query, the query is read as v0 too, with the future keywords imported so `in`, `every` and `some x in` still work in it. |