~/talk

Manage Vault programmatically with Terraform

Talkat HashiConf 2025 · 2025-09-24..09-26· [security]
links:none on file
slides:none on file

Shows how Terraform plus the Vault provider v5 actually prevents secrets from leaking into plans and state by using ephemeral resources and write-only attributes. Uses Terraform to provision a KV v2 mount, a database secrets engine and a Postgres instance (launched via Docker), demonstrates cleartext passwords appearing in tf.plan and state before changes, then upgrades to Vault provider v5 and the values become hidden/null in plan and state, proving the approach works end to end.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:03Terraform level set
  3. 3:08Why use Terraform with Vault
  4. 5:17Terraform Vault provider basics
  5. 7:20How Terraform interacts with Vault
  6. 8:02Terraform workflow overview
  7. 9:46Security concerns with secrets
  8. 11:08Introducing ephemeral values
  9. 13:06Hands-on lab setup
  10. 15:59Initial Terraform configuration
  11. 17:26Examining Terraform plan and state
  12. 19:14Applying Terraform configuration
  13. 20:40Updating to ephemeral values
  14. 25:38Verifying ephemeral value changes
  15. 27:28Security improvements with ephemeral values
  16. 27:50Vault CLI basics
  17. 29:37Self-guided challenges
  18. 31:21Prize draw and wrap-up
~/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.