~/talk

Using tfsec to Scan Your Terraform Code

Talkat HashiTalks 2022 · 2022-02-17..02-18· [security, testing]
links:none on file
slides:none on file

tfsec scans .tf and .tf.json files and in the demo finds seven issues then reduces them to zero by adding an aws_s3_bucket_public_access_block and a KMS customer master key, fixing the ACL and encryption problems. It integrates as a tfsec CLI, a VSCode extension (live fixes and links to remediation) and a GitHub Actions PR commenter that posts findings and can fail a PR. Custom checks live in a .tfsec folder (example: require a cost_center tag or names ending with “sg”) and they work as shown.

AI-written summary · about

  1. 0:00Introduction to misconfigurations
  2. 4:20What is tfsec
  3. 7:53Demo setup and scanning
  4. 14:15Integrating tfsec in CI
  5. 18:30VS Code plugin demo
  6. 21:59Custom checks with tfsec
  7. 29:23Key takeaways and conclusion
~/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.