Learning center

How do we catch configuration changes that are incompatible with production?

Compare the version of the application that reads a setting with the configuration each target supplies. Check names, types, defaults, and when a missing value becomes an error.

Try the upgrade in both directions#

A worker might change a timeout from seconds to milliseconds while keeping the key REQUEST_TIMEOUT. Both versions accept the integer 30. One waits thirty seconds and the other waits thirty milliseconds. A presence check will pass in both cases. Trace the value to the timer and compare it with the documented unit.

Consider introducing a new key that includes the unit. Test old and new configuration during rollout, including rollback to the previous binary. Use key names or a synthetic value when demonstrating the failure. A secret's contents are unnecessary for checking its binding name. Terraform configuration validation · Proofline coverage and availability

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading