OPA Bundles and Policy Management
π Introduction
π¦ What Is an OPA Bundle?
bundle/
βββ .manifest # bundle metadata (revision, roots)
βββ policies/
β βββ pod-security.rego
β βββ image-registry.rego
β βββ resource-limits.rego
βββ data/
βββ config.json # data document loaded alongside policiesποΈ Bundle Manifest File
Field
Purpose
ποΈ Building a Bundle
Directory Structure
Build the Bundle
π₯οΈ Bundle Server Options
Option 1: Nginx (Simplest)
Option 2: Object Storage (S3 / GCS)
Option 3: OCI Registry
βοΈ Configuring OPA to Use Bundles
For Gatekeeper
π Bundle Update Workflow
π·οΈ Bundle Versioning Strategy
π Monitoring Bundle Status
π§ What's Next
π References
Last updated