fix: bump Go to 1.26.10, terraform to 1.16.7, alpine to 3.24.3 (CVE-2026-111943) (#31301)
Mitigates CVE-2026-111943 (compromised eMudhra intermediate CAs). - **Go 1.26.9 to 1.26.10** (`go.mod`, `mise.toml`, `mise.lock`). Go 1.26.10 no longer trusts certificates issued through the compromised intermediates. - **Bundled Terraform 1.16.6 to 1.16.7** (`install.go`, `install.sh`, `scripts/Dockerfile.base`, `mise.toml`, `mise.lock`, `flake.nix`, airgap docs, `testdata/generation.sha1`). [1.16.7](https://github.com/hashicorp/terraform/releases/tag/v1.16.7) is built with Go 1.26.10. Checksums come from the GPG-verified `terraform_1.16.7_SHA256SUMS`. `maxTerraformVersion` stays at 1.16.9. - **Base image `alpine:3.24.2` to `alpine:3.24.3`**. 3.24.2 ships `ca-certificates-bundle-20260909-r0`; 3.24.3 ships `20261020-r0`. Verification: - Rebuilt `scripts/Dockerfile.base` for linux/amd64 and linux/arm64. Both contain `ca-certificates-bundle-20261020-r0` and `Terraform v1.16.7`. - `go test ./provisioner/terraform/...` passes with Terraform 1.16.7. - `scripts/check_go_versions.sh` passes. - Local git hooks were skipped at the author's request because the dogfood host was overloaded. CI is the gate. Backports to `release/2.34` through `release/2.38` follow as separate PRs. Older Terraform minor lines did not get the Go 1.26.10 rebuild (1.15.9 is built with Go 1.25.10, 1.14.9 with Go 1.25.8), so release/2.35 also moves to 1.16.7. <details> <summary>Decision log</summary> - The request named Go 1.26.1. Main and every release branch were already on 1.26.9, so @sreya confirmed the target is 1.26.10. - release/2.34 stays on the Alpine 3.23 line (`alpine:3.23.7`, which also ships `ca-certificates-bundle-20261020-r0`) instead of jumping to 3.24. - release/2.35 had drifted: `install.go` pinned 1.14.5 (max 1.14.9) while the image and `mise.toml` used 1.15.5. Its backport sets both to 1.16.7 and raises max to 1.16.9. </details> > Generated by Coder Agents on behalf of @sreya.
This commit is contained in:
1 parent
aa9b0a950a
commit
688c4a390c
9 files changed
+61
-61
No files matched your search
@@ -50,7 +50,7 @@ RUN mkdir -p /opt/terraform
|
||||
# The below step is optional if you wish to keep the existing version.
|
||||
# See ../../provisioner/terraform/install.go#L27-L28
|
||||
# for supported Terraform versions.
|
||||
ARG TERRAFORM_VERSION=1.16.6
|
||||
ARG TERRAFORM_VERSION=1.16.7
|
||||
RUN apk update && \
|
||||
curl -LOs https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
|
||||
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
|
||||
|
||||
@@ -195,28 +195,28 @@
|
||||
releases = {
|
||||
x86_64-linux = {
|
||||
platform = "linux_amd64";
|
||||
hash = "sha256-OANLONAwljmaehJkoUVhqAKbK0lv0fFpRSZW5Tlo8bc=";
|
||||
hash = "sha256-VFTvz3/IfwwhExEbmlxxgvDKHG8PI6HhEKUHcKj+Rzs=";
|
||||
};
|
||||
aarch64-linux = {
|
||||
platform = "linux_arm64";
|
||||
hash = "sha256-p1C1oRA48WWEayZYxAyIzXBwqmemG6tDGhS6J5KOqeo=";
|
||||
hash = "sha256-LWo/EJjelPFnKqpOaHPvka3p6sOIUdOkA+IAkZMgjeQ=";
|
||||
};
|
||||
aarch64-darwin = {
|
||||
platform = "darwin_arm64";
|
||||
hash = "sha256-heG8eKtFvcX4KnusOSnjfQcoNKWE0iWDokmNxnu2JM0=";
|
||||
hash = "sha256-gemNkYbgzRvIjK6yQDRT/dS97t1XTKTb6PtqKIDJxRo=";
|
||||
};
|
||||
x86_64-darwin = {
|
||||
platform = "darwin_amd64";
|
||||
hash = "sha256-eUo2w/fr9sWPIInCJgaKU50XBbo1ilZ5tRZxyNx+vHs=";
|
||||
hash = "sha256-0X0QU7y95lCoqRm3IY7yiG6sdsR0MG6ezYvWRCdAh0E=";
|
||||
};
|
||||
};
|
||||
target = releases.${system} or null;
|
||||
in
|
||||
if target != null then
|
||||
pkgs.runCommand "terraform-1.16.6" {
|
||||
pkgs.runCommand "terraform-1.16.7" {
|
||||
nativeBuildInputs = [ pkgs.unzip ];
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_${target.platform}.zip";
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_${target.platform}.zip";
|
||||
hash = target.hash;
|
||||
};
|
||||
} ''
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/coder/coder/v2
|
||||
|
||||
go 1.26.9
|
||||
go 1.26.10
|
||||
|
||||
// Required until a v3 of chroma is created to lazily initialize all XML files.
|
||||
// None of our dependencies seem to use the registries anyways, so this
|
||||
|
||||
+1
-1
@@ -276,7 +276,7 @@ EOF
|
||||
main() {
|
||||
MAINLINE=1
|
||||
STABLE=0
|
||||
TERRAFORM_VERSION="1.16.6"
|
||||
TERRAFORM_VERSION="1.16.7"
|
||||
|
||||
if [ "${TRACE-}" ]; then
|
||||
set -x
|
||||
|
||||
@@ -433,52 +433,52 @@ checksum = "sha256:e1245a0a760a45b236e7a25bf118c1defc8447734bdeb4260ea3ec15d1797
|
||||
url = "https://github.com/digitalocean/doctl/releases/download/v1.158.0/doctl-1.158.0-windows-amd64.zip"
|
||||
|
||||
[[tools.go]]
|
||||
version = "1.26.9"
|
||||
version = "1.26.10"
|
||||
backend = "core:go"
|
||||
|
||||
[tools.go."platforms.linux-arm64"]
|
||||
checksum = "sha256:4a97373d49fcacdcf3694fea368a500b00ee3e963974f3e7514132717632f052"
|
||||
url = "https://dl.google.com/go/go1.26.9.linux-arm64.tar.gz"
|
||||
checksum = "sha256:3f4227ce7b206a513e794f1393adb473a07b46e94d18bd15d1c684bbb7319797"
|
||||
url = "https://dl.google.com/go/go1.26.10.linux-arm64.tar.gz"
|
||||
|
||||
[tools.go."platforms.linux-arm64-musl"]
|
||||
checksum = "sha256:4a97373d49fcacdcf3694fea368a500b00ee3e963974f3e7514132717632f052"
|
||||
url = "https://dl.google.com/go/go1.26.9.linux-arm64.tar.gz"
|
||||
checksum = "sha256:3f4227ce7b206a513e794f1393adb473a07b46e94d18bd15d1c684bbb7319797"
|
||||
url = "https://dl.google.com/go/go1.26.10.linux-arm64.tar.gz"
|
||||
|
||||
[tools.go."platforms.linux-x64"]
|
||||
checksum = "sha256:42d158b4d8f7b61ac0a830567c940a86098fb7aac52e467a5ebec03ef5cc2f8d"
|
||||
url = "https://dl.google.com/go/go1.26.9.linux-amd64.tar.gz"
|
||||
checksum = "sha256:ccfe7ae822d2c2f41f4fe7c956199967a4dac22d0ee0d2b2bfdb440aab3b20c5"
|
||||
url = "https://dl.google.com/go/go1.26.10.linux-amd64.tar.gz"
|
||||
|
||||
[tools.go."platforms.linux-x64-baseline"]
|
||||
checksum = "sha256:42d158b4d8f7b61ac0a830567c940a86098fb7aac52e467a5ebec03ef5cc2f8d"
|
||||
url = "https://dl.google.com/go/go1.26.9.linux-amd64.tar.gz"
|
||||
checksum = "sha256:ccfe7ae822d2c2f41f4fe7c956199967a4dac22d0ee0d2b2bfdb440aab3b20c5"
|
||||
url = "https://dl.google.com/go/go1.26.10.linux-amd64.tar.gz"
|
||||
|
||||
[tools.go."platforms.linux-x64-musl"]
|
||||
checksum = "sha256:42d158b4d8f7b61ac0a830567c940a86098fb7aac52e467a5ebec03ef5cc2f8d"
|
||||
url = "https://dl.google.com/go/go1.26.9.linux-amd64.tar.gz"
|
||||
checksum = "sha256:ccfe7ae822d2c2f41f4fe7c956199967a4dac22d0ee0d2b2bfdb440aab3b20c5"
|
||||
url = "https://dl.google.com/go/go1.26.10.linux-amd64.tar.gz"
|
||||
|
||||
[tools.go."platforms.linux-x64-musl-baseline"]
|
||||
checksum = "sha256:42d158b4d8f7b61ac0a830567c940a86098fb7aac52e467a5ebec03ef5cc2f8d"
|
||||
url = "https://dl.google.com/go/go1.26.9.linux-amd64.tar.gz"
|
||||
checksum = "sha256:ccfe7ae822d2c2f41f4fe7c956199967a4dac22d0ee0d2b2bfdb440aab3b20c5"
|
||||
url = "https://dl.google.com/go/go1.26.10.linux-amd64.tar.gz"
|
||||
|
||||
[tools.go."platforms.macos-arm64"]
|
||||
checksum = "sha256:f9bb7c0a02506c5d9bf0d1eb1f7ee6c7684f844ae49558308a0427b830e022cc"
|
||||
url = "https://dl.google.com/go/go1.26.9.darwin-arm64.tar.gz"
|
||||
checksum = "sha256:0b5183492292ada170f9b561a834863808dd02edba599e4ad0e89899330020b3"
|
||||
url = "https://dl.google.com/go/go1.26.10.darwin-arm64.tar.gz"
|
||||
|
||||
[tools.go."platforms.macos-x64"]
|
||||
checksum = "sha256:00c29e3d4c8562f547410daa18d2959b641bd691ab00c4a525ea817a0253d4bd"
|
||||
url = "https://dl.google.com/go/go1.26.9.darwin-amd64.tar.gz"
|
||||
checksum = "sha256:e820ab780c273ae4a340b79d0f3c4313b74ee029aa3874792145d44b9f4f91da"
|
||||
url = "https://dl.google.com/go/go1.26.10.darwin-amd64.tar.gz"
|
||||
|
||||
[tools.go."platforms.macos-x64-baseline"]
|
||||
checksum = "sha256:00c29e3d4c8562f547410daa18d2959b641bd691ab00c4a525ea817a0253d4bd"
|
||||
url = "https://dl.google.com/go/go1.26.9.darwin-amd64.tar.gz"
|
||||
checksum = "sha256:e820ab780c273ae4a340b79d0f3c4313b74ee029aa3874792145d44b9f4f91da"
|
||||
url = "https://dl.google.com/go/go1.26.10.darwin-amd64.tar.gz"
|
||||
|
||||
[tools.go."platforms.windows-x64"]
|
||||
checksum = "sha256:d722201a9c0c086d1610e111c48203009af690892ed708072bd5ae20160e7a59"
|
||||
url = "https://dl.google.com/go/go1.26.9.windows-amd64.zip"
|
||||
checksum = "sha256:7ecd2d7260e82c59bcbd7f1077a07cee2dea607295b858df67195a1e4e09629b"
|
||||
url = "https://dl.google.com/go/go1.26.10.windows-amd64.zip"
|
||||
|
||||
[tools.go."platforms.windows-x64-baseline"]
|
||||
checksum = "sha256:d722201a9c0c086d1610e111c48203009af690892ed708072bd5ae20160e7a59"
|
||||
url = "https://dl.google.com/go/go1.26.9.windows-amd64.zip"
|
||||
checksum = "sha256:7ecd2d7260e82c59bcbd7f1077a07cee2dea607295b858df67195a1e4e09629b"
|
||||
url = "https://dl.google.com/go/go1.26.10.windows-amd64.zip"
|
||||
|
||||
[[tools."go:github.com/coder/paralleltestctx/cmd/paralleltestctx"]]
|
||||
version = "95009df793fb85bcbe71628e6dded30e5cfdb3c3"
|
||||
@@ -945,52 +945,52 @@ checksum = "sha256:7af7acb9f81bdddbc343855cb3a42e1d38ae9a1b044bfcd9b975a118d1078
|
||||
url = "https://github.com/anchore/syft/releases/download/v1.26.1/syft_1.26.1_windows_amd64.zip"
|
||||
|
||||
[[tools.terraform]]
|
||||
version = "1.16.6"
|
||||
version = "1.16.7"
|
||||
backend = "aqua:hashicorp/terraform"
|
||||
|
||||
[tools.terraform."platforms.linux-arm64"]
|
||||
checksum = "sha256:a750b5a11038f165846b2658c40c88cd7070aa67a61bab431a14ba27928ea9ea"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_arm64.zip"
|
||||
checksum = "sha256:2d6a3f1098de94f1672aaa4e6873ef91ade9eac38851d3a403e2009193208de4"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_arm64.zip"
|
||||
|
||||
[tools.terraform."platforms.linux-arm64-musl"]
|
||||
checksum = "sha256:a750b5a11038f165846b2658c40c88cd7070aa67a61bab431a14ba27928ea9ea"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_arm64.zip"
|
||||
checksum = "sha256:2d6a3f1098de94f1672aaa4e6873ef91ade9eac38851d3a403e2009193208de4"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_arm64.zip"
|
||||
|
||||
[tools.terraform."platforms.linux-x64"]
|
||||
checksum = "sha256:38034b38d03096399a7a1264a14561a8029b2b496fd1f169452656e53968f1b7"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_amd64.zip"
|
||||
checksum = "sha256:5454efcf7fc87f0c2113111b9a5c7182f0ca1c6f0f23a1e110a50770a8fe473b"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.linux-x64-baseline"]
|
||||
checksum = "sha256:38034b38d03096399a7a1264a14561a8029b2b496fd1f169452656e53968f1b7"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_amd64.zip"
|
||||
checksum = "sha256:5454efcf7fc87f0c2113111b9a5c7182f0ca1c6f0f23a1e110a50770a8fe473b"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.linux-x64-musl"]
|
||||
checksum = "sha256:38034b38d03096399a7a1264a14561a8029b2b496fd1f169452656e53968f1b7"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_amd64.zip"
|
||||
checksum = "sha256:5454efcf7fc87f0c2113111b9a5c7182f0ca1c6f0f23a1e110a50770a8fe473b"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.linux-x64-musl-baseline"]
|
||||
checksum = "sha256:38034b38d03096399a7a1264a14561a8029b2b496fd1f169452656e53968f1b7"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_amd64.zip"
|
||||
checksum = "sha256:5454efcf7fc87f0c2113111b9a5c7182f0ca1c6f0f23a1e110a50770a8fe473b"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.macos-arm64"]
|
||||
checksum = "sha256:85e1bc78ab45bdc5f82a7bac3929e37d072834a584d22583a2498dc67bb624cd"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_darwin_arm64.zip"
|
||||
checksum = "sha256:81e98d9186e0cd1bc88caeb2403453fdd4bdeedd574ca4dbe8fb6a2880c9c51a"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_darwin_arm64.zip"
|
||||
|
||||
[tools.terraform."platforms.macos-x64"]
|
||||
checksum = "sha256:794a36c3f7ebf6c58f2089c226068a539d1705ba358a5679b51671c8dc7ebc7b"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_darwin_amd64.zip"
|
||||
checksum = "sha256:d17d1053bcbde650a8a919b7218ef2886eac76c474306e9ecd8bd64427408741"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_darwin_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.macos-x64-baseline"]
|
||||
checksum = "sha256:794a36c3f7ebf6c58f2089c226068a539d1705ba358a5679b51671c8dc7ebc7b"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_darwin_amd64.zip"
|
||||
checksum = "sha256:d17d1053bcbde650a8a919b7218ef2886eac76c474306e9ecd8bd64427408741"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_darwin_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.windows-x64"]
|
||||
checksum = "sha256:6ea2c186e0e76a113af30fbcdcf7a4b4c70756317994a04929e5c90b9e94b1df"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_windows_amd64.zip"
|
||||
checksum = "sha256:b22dfa64a9530c9b7774f840d98e9bfadc1ae33b1bd2083ffa976828c46e542c"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_windows_amd64.zip"
|
||||
|
||||
[tools.terraform."platforms.windows-x64-baseline"]
|
||||
checksum = "sha256:6ea2c186e0e76a113af30fbcdcf7a4b4c70756317994a04929e5c90b9e94b1df"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_windows_amd64.zip"
|
||||
checksum = "sha256:b22dfa64a9530c9b7774f840d98e9bfadc1ae33b1bd2083ffa976828c46e542c"
|
||||
url = "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_windows_amd64.zip"
|
||||
|
||||
[[tools.vercel]]
|
||||
version = "54.14.0"
|
||||
|
||||
@@ -9,7 +9,7 @@ lockfile = true
|
||||
[tools]
|
||||
# Languages and runtimes.
|
||||
bun = "1.2.15"
|
||||
go = "1.26.9"
|
||||
go = "1.26.10"
|
||||
node = "22.23.4"
|
||||
pnpm = "10.33.2"
|
||||
|
||||
@@ -59,7 +59,7 @@ crane = "0.21.6"
|
||||
helm = "3.21.0"
|
||||
kubectx = "0.9.4"
|
||||
syft = "1.26.1"
|
||||
terraform = "1.16.6"
|
||||
terraform = "1.16.7"
|
||||
zizmor = "1.11.0"
|
||||
|
||||
# Developer-environment niceties for the dogfood image. Non-dogfood
|
||||
|
||||
@@ -22,7 +22,7 @@ var (
|
||||
// when Terraform is not available on the system.
|
||||
// NOTE: Keep this in sync with the version in scripts/Dockerfile.base.
|
||||
// NOTE: Keep this in sync with the version in install.sh.
|
||||
TerraformVersion = version.Must(version.NewVersion("1.16.6"))
|
||||
TerraformVersion = version.Must(version.NewVersion("1.16.7"))
|
||||
|
||||
minTerraformVersion = version.Must(version.NewVersion("1.1.0"))
|
||||
maxTerraformVersion = version.Must(version.NewVersion("1.16.9")) // use .9 to automatically allow patch releases
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
6c0c4588ca5921519627d4c1394da76b965b0e31
|
||||
24ac1d5b3f0cd208261e9d7651d4cc9235b02291
|
||||
@@ -1,7 +1,7 @@
|
||||
# This is the base image used for Coder images. It's a multi-arch image that is
|
||||
# built in depot.dev for all supported architectures. Since it's built on real
|
||||
# hardware and not cross-compiled, it can have "RUN" commands.
|
||||
FROM alpine:3.24.2@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6
|
||||
FROM alpine:3.24.3@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a
|
||||
|
||||
# We use a single RUN command to reduce the number of layers in the image.
|
||||
# NOTE: Keep the Terraform version in sync with minTerraformVersion and
|
||||
@@ -27,7 +27,7 @@ RUN apk add --no-cache \
|
||||
# Terraform was disabled in the edge repo due to a build issue.
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/-/commit/f3e263d94cfac02d594bef83790c280e045eba35
|
||||
# Using wget for now. Note that busybox unzip doesn't support streaming.
|
||||
RUN ARCH="$(arch)"; if [ "${ARCH}" == "x86_64" ]; then ARCH="amd64"; elif [ "${ARCH}" == "aarch64" ]; then ARCH="arm64"; elif [ "${ARCH}" == "armv7l" ]; then ARCH="arm"; fi; wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.16.6/terraform_1.16.6_linux_${ARCH}.zip" && \
|
||||
RUN ARCH="$(arch)"; if [ "${ARCH}" == "x86_64" ]; then ARCH="amd64"; elif [ "${ARCH}" == "aarch64" ]; then ARCH="arm64"; elif [ "${ARCH}" == "armv7l" ]; then ARCH="arm"; fi; wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.16.7/terraform_1.16.7_linux_${ARCH}.zip" && \
|
||||
busybox unzip /tmp/terraform.zip -d /usr/local/bin && \
|
||||
rm -f /tmp/terraform.zip && \
|
||||
chmod +x /usr/local/bin/terraform && \
|
||||
|
||||
Reference in new issue
Block a user