Skip to content

fix: bump Go to 1.26.10 and terraform to 1.16.7 (backport 2.36) - #31304

Merged
zenithwolf1000 merged 3 commits into
release/2.36from
backport/31301-to-2.36
Oct 26, 2026
Merged

zenithwolf1000 merged 3 commits into
release/2.36from
backport/31301-to-2.36

Conversation

@sreya

@sreya sreya commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Backport of #31301 to release/2.36 for CVE-2026-111943 (compromised eMudhra intermediate CAs).

  • Go 1.26.9 to 1.26.10.
  • Terraform 1.16.6 to 1.16.7.
  • Base image alpine:3.24.1 to alpine:3.24.3, which ships ca-certificates-bundle-20261020-r0.

Verified: rebuilt scripts/Dockerfile.base on this branch (confirmed ca-certificates-bundle-20261020-r0 and Terraform v1.16.7) and go test ./provisioner/terraform/ passes. Local git hooks were skipped at the author's request; CI is the gate.

Also cherry-picks #30922, which renews the SMTP test certificate that expired on 2026-10-18 (TestSMTP fails on every release branch without it).

Generated by Coder Agents on behalf of @sreya.

Mitigates CVE-2026-111943 (compromised eMudhra intermediate CAs).

- Go 1.26.9 -> 1.26.10, which no longer trusts the compromised
  intermediates.
- Bundled Terraform 1.16.6 -> 1.16.7, which is built with Go 1.26.10.
  Older Terraform minor lines did not receive this fix.
- Base image alpine 3.24.1 -> 3.24.3 so it ships ca-certificates-bundle
  20261020-r0.
@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.

@sreya
sreya marked this pull request as ready for review October 26, 2026 21:38
@sreya
sreya requested a review from a team as a code owner October 26, 2026 21:38
…est certificate (#30922)

Renews the SMTP test server certificate in
`coderd/notifications/dispatch/smtptest/fixtures`. It expired on
2026-10-18 at 13:36:08Z, so the TLS cases of `TestSMTP`
(`TLS:_self-signed`, `TLS:_self-signed_+_SNI`, `PLAIN_auth_and_TLS`)
fail in `test-go-pg-17` and `test-go-race-pg` on every PR.

## What changed

- `server.crt`: the committed `server.csr`, re-signed with the committed
CA (`ca.crt`, `ca.key`) and `v3_ext.conf`. It is valid until 2034-07-12,
a day before the CA expires. The key pair, subject, and extensions (SANs
`myserver.local`, `www.myserver.local`, `127.0.0.1`) are unchanged. Only
the serial, the validity, and the signature differ.
- `ca.srl`: the next serial, which the new certificate uses.
- `generate.sh`: it issued the server certificate for 825 days, and
2024-07-15 plus 825 days is 2026-10-18. It now uses 3649 days, a day
less than the CA's 3650.

The command, run in the fixtures directory:

```sh
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -set_serial 0x0330C6D190E3FE649DAFCDA2F4D765E2D29328DF -out server.crt -days 2824 -extfile v3_ext.conf
```

With OpenSSL 3.0.2, `-CAserial ca.srl` issued a random serial and left
`ca.srl` unchanged, so the command sets the next serial explicitly.

## Review focus

Re-signing keeps the CA and the server key, so no other fixture or test
changes. The one choice is the validity: about 7.7 years, ending a day
before the CA.

## Validation

| Check | `main` | This PR |
|---|---|---|
| `openssl x509 -noout -dates` | `notAfter=Oct 18 13:36:08 2026 GMT` |
`notAfter=Jul 12 14:24:37 2034 GMT` |
| `openssl verify -CAfile ca.crt server.crt` | `certificate has expired`
| `server.crt: OK` |
| `go test ./coderd/notifications/dispatch/... -run TestSMTP -count=1` |
the 3 TLS cases fail with `x509: certificate has expired or is not yet
valid` | pass |

`go test ./coderd/notifications/... -count=1` passes, including
`notifications_test.go`, the other user of `smtptest`. A text diff of
the old and new certificates (`openssl x509 -noout -text`) shows only
the serial, the dates, and the signature.

> Xum, an AI agent, opened this PR for @ibetitsmike and wrote this
description.

(cherry picked from commit 1213938)

@nickvigilante nickvigilante left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs also LGTM, but let me know if you want me to do an actual thorough review of the rest of the PR or if you'd prefer an engineer to do it.

@cjfit cjfit left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zenithwolf1000
zenithwolf1000 merged commit 0671b65 into release/2.36 Oct 26, 2026
32 checks passed
@zenithwolf1000
zenithwolf1000 deleted the backport/31301-to-2.36 branch October 26, 2026 23:30
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants