Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_iac-policy-as-code-in-pipeline

Policy-as-code in the IaC pipeline

7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[![Policy-as-code in the IaC pipeline — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_iac-policy-as-code-in-pipeline/opengraph-image)](https://archos.sageideas.dev/d/dgm_iac-policy-as-code-in-pipeline)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_iac-policy-as-code-in-pipeline)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_iac-policy-as-code-in-pipeline" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Policy-as-code in the IaC pipeline — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  src_0[("Client application")]
  n0_1["CI runner"]
  n1_2["Guardrails"]
  n2_3["Deploy orchestrator"]
  n3_4[("Audit log")]
  ctrl_5["OpenTelemetry Collector"]
  sink_6[("Client application")]
  src_0 -->|"1. Plans JSON · HTTPS"| n0_1
  n0_1 -->|"2. Evaluates · HTTP"| n1_2
  n1_2 -->|"3. Gates apply · HTTPS"| n2_3
  n2_3 -->|"4. Audits · TCP"| n3_4
  n3_4 -->|"5. Compliant · HTTPS"| sink_6
  n1_2 -->|"Logs deny · OTLP"| ctrl_5

COMPONENT STACK (7)

  • Client applicationSTATEFUL
    Terraform PR + plan
  • CI runnerSTATELESS
    Outputs plan.json
  • GuardrailsSTATELESS
    OPA Rego + Trivy scan
  • Deploy orchestratorSTATELESS
    Blocks public S3 / *:*
  • Audit logSTATEFUL
    Signed exception trail
  • OpenTelemetry CollectorSTATELESS
    Policy violation metrics
  • Client applicationSTATEFUL
    Zero public leaks

REQUEST & DATA FLOW (6)

  1. Client application → CI runner (Plans JSON)[HTTPS]
  2. CI runner → Guardrails (Evaluates)[HTTP]
  3. Guardrails → Deploy orchestrator (Gates apply)[HTTPS]
  4. Deploy orchestrator → Audit log (Audits)[TCP]
  5. Audit log → Client application (Compliant)[HTTPS]
  6. Guardrails → OpenTelemetry Collector (Logs deny)[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →