A Terraform provider lock file is a checksum contract
Terraform configurations can select provider versions and install provider packages from a registry, a filesystem mirror, or another configured source. The dependency lock file records the selected provider versions and package checksums. That makes it an important control for reproducible infrastructure automation, but it does not prove that a provider is trustworthy or that the configuration is safe.
The lock file is consumed during initialization. Terraform verifies downloaded provider packages against the checksums recorded for the selected platform. When a team uses a filesystem or network mirror, the lock file can compare mirror packages with checksums obtained from the origin registry. This is how a mirror can remain useful without giving it unlimited authority to replace a provider binary.
Generate checksums from a trusted origin
Use terraform providers lock to populate checksums for the platforms the organization needs.…