Interview Prep/Terraform/Security, Secrets and Access

How do you protect against a rogue module author or a compromised module repo?

AdvancedProductionSecurity, Secrets and Access
Answer

Pin to commit SHAs or signed tags for internal modules, require two reviewers on module repos, run the module test suite and Checkov on every release, keep a private registry as the single source and block direct Git sources by policy. Review upgrade diffs rather than trusting version bumps.

All Terraform questions Roadmap: Terraform in production

More on Security, Secrets and Access