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.
More on Security, Secrets and Access
How do you avoid hardcoded credentials in Terraform?BeginnerIs reading a secret with a data source safe?IntermediateHow do ephemeral resources and write-only arguments keep secrets out of state?AdvancedWhat is the better pattern for RDS master passwords?BeginnerHow do you scope IAM for the Terraform deploy role?IntermediateWhat are dynamic provider credentials in HCP Terraform?Intermediate