Run an OPA bundle server, configure OPA to poll it for policy bundles, and validate decision log and status plugin output

domain: security/compliance · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Build an OPA bundle from a local directory using opa build, which produces a bundle.tar.gz containing compiled policies and data; host this file on an HTTP server or object storage bucket.
  2. Write an OPA configuration file specifying services (the bundle server URL and optional authentication), a bundles section pointing to the bundle name and path, and a polling interval.
  3. Start the OPA server with opa run --server --config-file config.yaml; OPA will download and activate the bundle on startup and re-poll at the configured interval.
  4. Configure the decision_logs plugin in the config file with a console reporter or remote service endpoint; verify decisions appear in OPA logs after sending a policy query.
  5. Configure the status plugin to report bundle download status and activation events to a remote endpoint; query the OPA /health and /status HTTP endpoints to confirm bundle is active.

Known gotchas

Related routes

Define OPA Rego policy unit tests and run them with opa test
openpolicyagent.org · 6 steps · unrated
Sign and serve OPA bundles with signature verification enabled
openpolicyagent.org · 5 steps · unrated
Write an OPA Rego policy to enforce that all Kubernetes Deployments have resource requests and limits set, and integrate it with Conftest in a CI pipeline
www.openpolicyagent.org · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans