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 evalin 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.
More on Tool Internals and Comparisons
How does Trivy get its vulnerability data, and how do you run it air-gapped?AdvancedWhich scan targets and scanners does Trivy support?IntermediateHow does Falco capture system calls?AdvancedHow does OPA evaluate a Rego policy? Give an example.IntermediateHow does Vault achieve high availability with integrated storage?AdvancedWhat are Vault secrets engines and auth methods? What changes in KV v2?Intermediate