Bumps the bundled Terraform from 1.16.7 to
[1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1)
(released 2026-10-28). 1.17.1 is built with `go-jose/v4` v4.1.6, which
fixes
[GHSA-mgcc-cww5-fp2q](https://github.com/go-jose/go-jose/security/advisories/GHSA-mgcc-cww5-fp2q)
(CPU DoS through crafted RSA JWKs). Terraform 1.16.7, 1.17.0 and the
current `v1.16` branch all still pin go-jose v4.1.4, so there's no
1.16.x release with the fix to move to yet.
The IronBank VAT scan of `coder-service-2:2.38.3` flags
`/opt/terraform/terraform` (High) for this. The 2.38 backport is #31441.
This is a minor bump, so `maxTerraformVersion` moves from 1.16.9 to
1.17.9. Same file set as #31301:
- `provisioner/terraform/install.go`: `TerraformVersion` and
`maxTerraformVersion`
- `install.sh`, `scripts/Dockerfile.base`,
`docs/install/prepare/airgap.md`
- `mise.toml`, `mise.lock`, `flake.nix`: checksums from
`terraform_1.17.1_SHA256SUMS`, GPG-verified against HashiCorp's signing
key (C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F). The flake SRI
hashes come from the same file.
- `provisioner/terraform/testdata/generation.sha1`: regenerated with
`generate.sh` under Terraform 1.17.1. No fixture outputs changed.
Verified: `go test ./provisioner/terraform/` passes with Terraform
1.17.1 on `PATH`. Local git hooks were skipped; CI is the gate.
Part of [ENT-228](https://linear.app/codercom/issue/ENT-228) (parent
[ENT-230](https://linear.app/codercom/issue/ENT-230)). 2.38 backport:
#31441.
Opened by Superblink on behalf of @droopy4096.
Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>