Repository navigation
fix: bump bundled terraform to 1.17.1 - #31438
Merged
Merged
Conversation
Terraform 1.17.1 is built with go-jose v4.1.6, which fixes GHSA-mgcc-cww5-fp2q in /opt/terraform/terraform (flagged by the IronBank VAT scan of 2.38.3). 1.16.7 and 1.17.0 still ship go-jose v4.1.4. Refs ENT-228
Contributor
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
This was referenced Oct 28, 2026
droopy4096
marked this pull request as ready for review
October 28, 2026 21:34
denisra
pushed a commit
that referenced
this pull request
Nov 2, 2026
Backport of #31438 to `release/2.37`. Bumps the bundled Terraform from 1.16.7 to [1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1), which is built with `go-jose/v4` v4.1.6 and fixes [GHSA-mgcc-cww5-fp2q](GHSA-mgcc-cww5-fp2q) in `/opt/terraform/terraform`. Flagged by the IronBank VAT scan of 2.38.3. No 1.16.x release has the fix yet, so this is a minor jump and `maxTerraformVersion` moves from 1.16.9 to 1.17.9. Files follow this branch's previous Terraform bumps: `install.go`, `install.sh`, `scripts/Dockerfile.base`, `mise.toml`, `mise.lock`, `flake.nix`, the airgap docs, and `testdata/version.txt`. Checksums come from HashiCorp's GPG-verified `terraform_1.17.1_SHA256SUMS`. Verified: `go test ./provisioner/terraform/` passes with Terraform 1.17.1. 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)). Backported to every supported release line per the backport policy in CONTRIBUTING.md. Opened by Superblink on behalf of @droopy4096. Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
denisra
pushed a commit
that referenced
this pull request
Nov 2, 2026
Backport of #31438 to `release/2.39`. Bumps the bundled Terraform from 1.16.7 to [1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1), which is built with `go-jose/v4` v4.1.6 and fixes [GHSA-mgcc-cww5-fp2q](GHSA-mgcc-cww5-fp2q) in `/opt/terraform/terraform`. Flagged by the IronBank VAT scan of 2.38.3. No 1.16.x release has the fix yet, so this is a minor jump and `maxTerraformVersion` moves from 1.16.9 to 1.17.9. Files follow this branch's previous Terraform bumps: `install.go`, `install.sh`, `scripts/Dockerfile.base`, `mise.toml`, `mise.lock`, `flake.nix`, the airgap docs, and `testdata/generation.sha1` (regenerated with `generate.sh` under 1.17.1; no fixture outputs changed). Checksums come from HashiCorp's GPG-verified `terraform_1.17.1_SHA256SUMS`. Verified: `go test ./provisioner/terraform/` passes with Terraform 1.17.1. 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)). Backported to every supported release line per the backport policy in CONTRIBUTING.md. Opened by Superblink on behalf of @droopy4096. Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
denisra
pushed a commit
that referenced
this pull request
Nov 2, 2026
Backport of #31438 to `release/2.38`. Bumps the bundled Terraform from 1.16.7 to [1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1), which is built with `go-jose/v4` v4.1.6 and fixes [GHSA-mgcc-cww5-fp2q](GHSA-mgcc-cww5-fp2q) in `/opt/terraform/terraform`. The IronBank VAT scan of `coder-service-2:2.38.3` flags this (High). Terraform 1.16.7, 1.17.0 and the `v1.16` branch all still pin go-jose v4.1.4, so there's no 1.16.x release with the fix. This is a minor jump, so `maxTerraformVersion` moves from 1.16.9 to 1.17.9. There's precedent for minor Terraform bumps on release branches: #31305 moved `release/2.35` to 1.16. The file set matches #31438: `install.go`, `install.sh`, `scripts/Dockerfile.base`, `mise.toml`, `mise.lock` and `flake.nix`, plus the airgap docs. Checksums come from HashiCorp's GPG-verified `terraform_1.17.1_SHA256SUMS`. `testdata/generation.sha1` was regenerated with `generate.sh` under 1.17.1, and no fixture outputs changed. Verified: `go test ./provisioner/terraform/` passes with Terraform 1.17.1. Local git hooks were skipped; CI is the gate. The IronBank hardening manifest still needs a matching update. Part of [ENT-228](https://linear.app/codercom/issue/ENT-228) (parent [ENT-230](https://linear.app/codercom/issue/ENT-230)). Opened by Superblink on behalf of @droopy4096. Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
denisra
pushed a commit
that referenced
this pull request
Nov 2, 2026
Backport of #31438 to `release/2.29`. Bumps the bundled Terraform from 1.16.6 to [1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1), which is built with `go-jose/v4` v4.1.6 and fixes [GHSA-mgcc-cww5-fp2q](GHSA-mgcc-cww5-fp2q) in `/opt/terraform/terraform`. Flagged by the IronBank VAT scan of 2.38.3. No 1.16.x release has the fix yet, so this is a minor jump and `maxTerraformVersion` moves from 1.16.9 to 1.17.9. Files follow this branch's previous Terraform bumps: `install.go`, `install.sh`, `scripts/Dockerfile.base`, `dogfood/coder/Dockerfile`, `.github/actions/setup-tf/action.yaml`, the airgap docs, and both `testdata` `version.txt` files. Checksums come from HashiCorp's GPG-verified `terraform_1.17.1_SHA256SUMS`. Verified: `go test ./provisioner/terraform/` passes with Terraform 1.17.1. 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)). Backported to every supported release line per the backport policy in CONTRIBUTING.md. Opened by Superblink on behalf of @droopy4096. Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
denisra
pushed a commit
that referenced
this pull request
Nov 2, 2026
Backport of #31438 to `release/2.34`. Bumps the bundled Terraform from 1.16.7 to [1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1), which is built with `go-jose/v4` v4.1.6 and fixes [GHSA-mgcc-cww5-fp2q](GHSA-mgcc-cww5-fp2q) in `/opt/terraform/terraform`. Flagged by the IronBank VAT scan of 2.38.3. No 1.16.x release has the fix yet, so this is a minor jump and `maxTerraformVersion` moves from 1.16.9 to 1.17.9. Files follow this branch's previous Terraform bumps: `install.go`, `install.sh`, `scripts/Dockerfile.base`, `.github/actions/setup-tf/action.yaml`, `mise.toml`, `mise.lock`, `flake.nix`, the airgap docs, and `testdata/version.txt`. Checksums come from HashiCorp's GPG-verified `terraform_1.17.1_SHA256SUMS`. Verified: `go test ./provisioner/terraform/` passes with Terraform 1.17.1. 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)). Backported to every supported release line per the backport policy in CONTRIBUTING.md. Opened by Superblink on behalf of @droopy4096. Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
denisra
pushed a commit
that referenced
this pull request
Nov 2, 2026
Backport of #31438 to `release/2.36`. Bumps the bundled Terraform from 1.16.7 to [1.17.1](https://github.com/hashicorp/terraform/releases/tag/v1.17.1), which is built with `go-jose/v4` v4.1.6 and fixes [GHSA-mgcc-cww5-fp2q](GHSA-mgcc-cww5-fp2q) in `/opt/terraform/terraform`. Flagged by the IronBank VAT scan of 2.38.3. No 1.16.x release has the fix yet, so this is a minor jump and `maxTerraformVersion` moves from 1.16.9 to 1.17.9. Files follow this branch's previous Terraform bumps: `install.go`, `install.sh`, `scripts/Dockerfile.base`, `mise.toml`, `mise.lock`, `flake.nix`, the airgap docs, and `testdata/version.txt`. Checksums come from HashiCorp's GPG-verified `terraform_1.17.1_SHA256SUMS`. Verified: `go test ./provisioner/terraform/` passes with Terraform 1.17.1. 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)). Backported to every supported release line per the backport policy in CONTRIBUTING.md. Opened by Superblink on behalf of @droopy4096. Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
denisra
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the bundled Terraform from 1.16.7 to 1.17.1 (released 2026-10-28). 1.17.1 is built with
go-jose/v4v4.1.6, which fixes GHSA-mgcc-cww5-fp2q (CPU DoS through crafted RSA JWKs). Terraform 1.16.7, 1.17.0 and the currentv1.16branch 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.3flags/opt/terraform/terraform(High) for this. The 2.38 backport is #31441.This is a minor bump, so
maxTerraformVersionmoves from 1.16.9 to 1.17.9. Same file set as #31301:provisioner/terraform/install.go:TerraformVersionandmaxTerraformVersioninstall.sh,scripts/Dockerfile.base,docs/install/prepare/airgap.mdmise.toml,mise.lock,flake.nix: checksums fromterraform_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 withgenerate.shunder Terraform 1.17.1. No fixture outputs changed.Verified:
go test ./provisioner/terraform/passes with Terraform 1.17.1 onPATH. Local git hooks were skipped; CI is the gate.Part of ENT-228 (parent ENT-230). 2.38 backport: #31441.
Opened by Superblink on behalf of @droopy4096.