24

A Gate For Insecure Terraform

Checkov and Trivy on every commit and pull request, and a required check that refuses the merge when either finds a problem.

A Gate For Insecure Terraform is a DevSecOps project by Kolade Eniola. Shipped 2026-11-05 with public source.

shippedterraform · checkov · trivy · pre-commit · github-actionsRepository

What it proves

A pull request with an open SSH port and a public bucket failed with 21 findings and was not merged; the hardened version passed. A one-line IMDSv1 change was refused by the merge API.

Done when

An insecure pull request blocked and its fixed version merged, with the CI runs as evidence.

Evidence

The product is an enforcement point, not another scan report. The same checks run in three places: pre-commit on the developer’s machine, CI as the gate of record, and make scan on demand. CI hard-fails on any finding, with no soft-fail and no || true.

The app it protects is small and real: a VPC, one web server reached through SSM Session Manager with no SSH, and one private bucket. The hardened version was deployed live once, checked, and destroyed. A repository always has findings it decides to accept, so suppressions are allowed only inline and with a reason.