~/talk

Implementing Unit Tests for Terraform with Open Policy Agent

Talkat HashiTalks 2019 · 2019-02-21..02-22· [security, testing]
links:none on file
slides:none on file

Shows how to run Open Policy Agent with Rego against Terraform plan JSON (uses parse-terraform-plan npm to convert HCL to JSON) to compute weighted scores for create/modify/delete operations and gate CI/CD actions. Builds a Rego policy that sums weights, blast radius <30 auto-approve, and explicitly deny changes to network security groups. OPA runs as local binary or daemon in pipeline; demo conversion and evaluation is shown (demo run fails but policy approach and CI integration work).

AI-written summary · about

  1. 0:00Introduction
  2. 0:37Why Unit Testing
  3. 1:46Open Policy Agent
  4. 3:17What is OPA
  5. 4:45OPA Implementation
  6. 6:50Rego Demo
  7. 7:45Use Cases
  8. 8:40Demo
  9. 15:05Summary
  10. 16:06References
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.