From 3cd78de5843319b6d1c93f752b3e29abf4f17efa Mon Sep 17 00:00:00 2001 From: Blair Hamilton Date: Mon, 16 Nov 2026 09:43:20 -0500 Subject: [PATCH] build: move to Go 1.27.4 Go 1.26.10 is affected by GO-2026-6859 (net/http, fixed in 1.26.11 and 1.27.4). go-vulncheck reports it on every go.mod change, so dependency updates fail Pre-commit until Go moves. 1.27.4 is the latest release and clears it. Validated on go1.27.4 before the bump: go mod tidy, build, vet, test compilation and the tool block all pass. The Dockerfile's golang:1.27-alpine digest (Go 1.27.4) moves in the same change: the image builds with GOTOOLCHAIN=local, so it cannot build a go 1.27.4 module from the 1.26 image. --- .tool-versions | 2 +- AGENTS.md | 2 +- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.tool-versions b/.tool-versions index 7f7c764..740fb39 100644 --- a/.tool-versions +++ b/.tool-versions @@ -5,4 +5,4 @@ # `check-go-version-sync` hook enforces both halves: a `golang` line outside # this file is rejected, and every module's `go` directive must equal this pin. # Move this pin and go.mod's `go` directive together. -golang 1.26.10 +golang 1.27.4 diff --git a/AGENTS.md b/AGENTS.md index f9d5eb2..15042e6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,7 +10,7 @@ database: the role, schemas, grants and object ownership a service needs inside RDS, Aurora or a self-managed PostgreSQL. - Module: `github.com/blairham/database-access-controller` -- Go 1.26, `controller-runtime` v0.25, `aws-sdk-go-v2`, `pgx/v5`, +- Go 1.27, `controller-runtime` v0.25, `aws-sdk-go-v2`, `pgx/v5`, `hashicorp/cli`, [`k8s-controller-kit`](https://github.com/blairham/k8s-controller-kit) ## Quick Reference diff --git a/Dockerfile b/Dockerfile index 6ec5833..bcbf52e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # non-root image. Base images are pinned by digest and pulled from AWS's public # mirror of Docker Hub (no anonymous rate limits). The build cross-compiles # rather than emulating the target. -FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.26-alpine@sha256:a2012b4a1d1f9f7e9f44e0d39b805a901e856b1dd80b4e6ee4338db547050308 AS build +FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:1.27-alpine@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc924fb9100d1d8757c1575b280 AS build ARG TARGETOS TARGETARCH WORKDIR /src COPY . . diff --git a/go.mod b/go.mod index 21e3d06..ef4d595 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/blairham/database-access-controller -go 1.26.10 +go 1.27.4 require ( github.com/aws/aws-sdk-go-v2 v1.47.5