Skip to content

fix: bump bundled terraform to 1.17.2 - #32110

Merged
droopy4096 merged 1 commit into
mainfrom
fix/bump-bundled-terraform-patch
Nov 13, 2026
Merged

droopy4096 merged 1 commit into
mainfrom
fix/bump-bundled-terraform-patch

Conversation

@droopy4096

Copy link
Copy Markdown
Collaborator

Bumps the bundled Terraform from 1.17.1 to 1.17.2 (released 2026-11-11). 1.17.2 pins klauspost/compress v1.20.2, which contains the fix for GHSA-fpmh-frq8-7rj8 / GO-2026-6865 (panic in the zstd decoder on a crafted frame). 1.17.1 pins v1.19.1.

Iron Bank reports GO-2026-6865 against /opt/terraform/terraform in coder/coder-enterprise/coder-service-2:2.38.7 (High). The Iron Bank image takes its Terraform from the version coder bundles, so this bump is how that finding goes away.

This is a patch bump, so maxTerraformVersion stays at 1.17.9. It does not change the Go toolchain Terraform is built with (still go1.26.10) or its go-getter pin (still v1.8.6).

Changes

Same file set as #30516:

  • provisioner/terraform/install.go: TerraformVersion
  • install.sh, scripts/Dockerfile.base
  • mise.toml, mise.lock (checksums from HashiCorp's terraform_1.17.2_SHA256SUMS)
  • flake.nix (fetchurl SRI hashes derived from the same SHA256SUMS)
  • docs/install/prepare/airgap.md
  • provisioner/terraform/testdata/generation.sha1: fixture fingerprint, regenerated with generate.sh --if-needed. No plan or state fixture changed.

I checked the checksum conversion first by deriving the 1.17.1 values from terraform_1.17.1_SHA256SUMS; it reproduces every value currently in flake.nix and mise.lock.

Verification

$ mise install terraform        # mise.lock checksums verified against the download
$ mise exec -- terraform version
Terraform v1.17.2 on linux_amd64
$ ./provisioner/terraform/testdata/generate.sh --if-needed
only generation.sha1 changed
$ go test ./provisioner/terraform/ -run 'TestInstall|Version|Golden' -count=1
ok  github.com/coder/coder/v2/provisioner/terraform  (75 tests passed, 0 failed)

flake.nix was not evaluated with Nix; its hashes come from the same SHA256SUMS as mise.lock.

AI disclosure

Prepared with an AI coding agent on behalf of @droopy4096. The agent ran the verification above; a human review is still needed before merge.

Bumps the bundled Terraform from 1.17.1 to 1.17.2 (released 2026-11-11).
1.17.2 pins klauspost/compress v1.20.2, which contains the fix for
GHSA-fpmh-frq8-7rj8 / GO-2026-6865 (panic in the zstd decoder); 1.17.1
pins v1.19.1.

Patch bump, so maxTerraformVersion stays at 1.17.9. Same file set as
#30516: install.go, install.sh, scripts/Dockerfile.base, mise.toml,
mise.lock, flake.nix, docs/install/prepare/airgap.md and the fixture
fingerprint provisioner/terraform/testdata/generation.sha1.
@droopy4096
droopy4096 temporarily deployed to main November 12, 2026 17:54 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to main November 12, 2026 17:54 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to main November 12, 2026 17:55 — with GitHub Actions Inactive
@droopy4096
droopy4096 merged commit 872105c into main Nov 13, 2026
65 checks passed
@droopy4096
droopy4096 deleted the fix/bump-bundled-terraform-patch branch November 13, 2026 16:39
@droopy4096
droopy4096 temporarily deployed to main November 13, 2026 16:39 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to docs-preview November 13, 2026 16:39 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026
@droopy4096
droopy4096 temporarily deployed to main November 13, 2026 16:40 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to main November 13, 2026 16:40 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to main November 13, 2026 16:40 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to main November 13, 2026 16:40 — with GitHub Actions Inactive
@droopy4096
droopy4096 temporarily deployed to main November 13, 2026 16:40 — with GitHub Actions Inactive

This branch was previously deployed

2 inactive deployments
main — e805ad7e Deployed Nov 13, 2026 by droopy4096 via Backport to release/2.39 #6977
docs-preview — e805ad7e Deployed Nov 13, 2026 by droopy4096 via cleanup #44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants