Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-policy-engine

Policy Engine (OPA / Admission) Internals (Rego Eval, Bundles & Fail-Closed)

6 COMPONENTS · 5 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Policy Engine (OPA / Admission) Internals (Rego Eval, Bundles & Fail-Closed) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-policy-engine/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-policy-engine)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-policy-engine)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-policy-engine" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Policy Engine (OPA / Admission) Internals (Rego Eval, Bundles & Fail-Closed) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["PEP"]
  pdp_1["OPA Decision Engine"]
  idx_2[("Rule Indexing Cache")]
  bnd_3[("Signed Bundle Server")]
  dec_4[("Decision Audit Log")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Check · HTTP/WAS"| pdp_1
  pdp_1 -->|"2a. Evaluate · RAM"| idx_2
  bnd_3 -->|"Poll · HTTPS"| pdp_1
  pdp_1 -.->|"2b. Stream · Async"| dec_4
  dec_4 -.->|"3. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • PEPSTATELESS
    AuthZ / Admission Input
  • OPA Decision EngineSTATELESS
    In-RAM Rego/WASM evaluator
  • Rule Indexing CacheSTATEFUL
    O hashed policy lookup
  • Signed Bundle ServerSTATEFUL
    GitOps Rego + RBAC data tarballs
  • Decision Audit LogSTATEFUL
    Records every allow/deny + input
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (5)

  1. PEP → OPA Decision Engine (Check)[HTTP/WAS]
  2. OPA Decision Engine → Rule Indexing Cache (Evaluate)[RAM]
  3. Signed Bundle Server → OPA Decision Engine (Poll)[HTTPS]
  4. OPA Decision Engine → Decision Audit Log (Stream)[Async]
  5. Decision Audit Log → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →