Interview Prep/DevSecOps/Tool Internals and Comparisons

What are the ways to deploy OPA, and what are decision logs?

AdvancedConceptTool Internals and Comparisons
Answer
  • Library: embedded in a Go service, zero network hop.
  • Sidecar or host daemon: the app calls localhost:8181/v1/data/...; common for API authorisation and Envoy's ext_authz.
  • Gatekeeper: OPA wrapped as a Kubernetes admission controller.
  • CLI: Conftest or opa eval in CI.

Bundles let OPA pull signed policy and data from a server, so policy is versioned centrally and distributed. Decision logs record every query, input and result, which gives an audit trail of who was allowed what and why. Mask sensitive input fields before shipping them.

All DevSecOps questions

More on Tool Internals and Comparisons