Skip to content

fix: bump bundled terraform to 1.17.1 - #31438

Merged
denisra merged 1 commit into
mainfrom
superblink/ent-228-terraform-1171-main
Nov 2, 2026
Merged

denisra merged 1 commit into
mainfrom
superblink/ent-228-terraform-1171-main

Conversation

@coder

@coder coder Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the bundled Terraform from 1.16.7 to 1.17.1 (released 2026-10-28). 1.17.1 is built with go-jose/v4 v4.1.6, which fixes 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 (parent ENT-230). 2.38 backport: #31441.

Opened by Superblink on behalf of @droopy4096.

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
@linear-code

linear-code Bot commented Oct 28, 2026

Copy link
Copy Markdown

ENT-228

@github-actions github-actions Bot added the community Pull Requests and issues created by the community. label Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

Check 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.

@droopy4096
droopy4096 marked this pull request as ready for review October 28, 2026 21:34
@coder
coder Bot requested review from denisra and jdomeracki-coder October 29, 2026 17:20
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
denisra merged commit 11aaca1 into main Nov 2, 2026
42 checks passed
@denisra
denisra deleted the superblink/ent-228-terraform-1171-main branch November 2, 2026 18:30
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community Pull Requests and issues created by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants