Skip to main content

The org's policy as an OPA bundle​

Serves the org's policy as a gzipped OPA bundle for gate's OPA plugin to fetch directly. Authenticated with the org API key gate already holds for telemetry, so enabling policy enforcement introduces no new credential to provision or rotate.

No x-rbac-enabled: the caller is a gate process, not a console session.

Responds 200 with application/gzip — a tarball containing /policy.rego and /.manifest — or 304 when the caller's If-None-Match matches the current revision's ETag. An org with no policy, or a policy with enabled: false, gets a valid permit-everything bundle rather than a 404: gate must always end up with a compilable bundle, and a fetch error would leave whatever policy it activated last in force indefinitely.

Header Parameters
  • SlashID-OrgID string required

    The organization ID

    Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
  • If-None-Match string

    ETag from a previous fetch. Send it to get a 304 when nothing changed.

Responses

The bundle. The ETag header carries the policy revision.

Response Headers
  • ETag string

    Opaque; echo it back as If-None-Match on the next poll.


Schema
  • string binary