In an earlier post (Japanese) I set up a self-hosted GitLab with a Runner. This time I used it to stop risky Terraform settings before apply .
The tool is Checkov . It statically analyzes Terraform, CloudFormation, Kubernetes YAML and more, and tells you things like "this S3 bucket isn't encrypted" or "SSH is open to the world".
Two things I want to get across:
Running it in CI and blocking the MR saves a lot of review back-and-forth
You won't fix everything, so when you skip a check, keep the reason in the code
All screenshots are real checkov runs on my Linux box.…