Terraform “Unsupported state file format”: S3 race?
Summary As of November 2026, the cited report reproduces trailing NUL padding when an S3 state object shrinks during download; a buffer-trimming repair was proposed in [PR #39444](https://github.com/hashicorp/terraform/pull/39444), closed without merging on 2026-10-26, with no verified operational workaround or released fix here.