diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f057c49..14a113c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: # The toolchain backendkit is built and tested with (go.mod's # toolchain line); checked below. - target: toolchain - go-version: "1.27.2" + go-version: "1.27.3" # The floor (go.mod's go line), the oldest Go an importer may use. - target: floor go-version: "1.26.0" @@ -92,12 +92,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.27.2" + go-version: "1.27.3" cache: true - uses: golangci/golangci-lint-action@v7 with: version: v2.14.0 - # Build golangci-lint with the job's Go toolchain (1.27.2). The prebuilt + # Build golangci-lint with the job's Go toolchain (1.27.3). The prebuilt # release binaries are compiled with an older Go and refuse to lint a # module whose toolchain directive targets a newer Go ("the Go language # version used to build golangci-lint is lower than the targeted Go @@ -116,10 +116,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.27.2" + go-version: "1.27.3" cache: true # Pinned, so a scanner release never changes the result unannounced. It - # is built with the job's Go (1.27.2): a govulncheck built with an older + # is built with the job's Go (1.27.3): a govulncheck built with an older # Go refuses a module targeting a newer one. - name: Install govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@v1.8.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 75e5c1a..455dbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ All notable changes to backendkit are documented here. Format: ## [Unreleased] +### Security +- **Toolchain Go 1.27.3** (the `toolchain` line in `go.mod`, CI and docs): Go 1.27.2's + `crypto/x509` trusts compromised intermediate certificates (GO-2026-6809), which + `govulncheck` reports through `socrate.Client.StreamSecurityEvents` (any TLS call). The `go` + line, the floor importers need, stays at 1.26.0; importers pick up the fix by building with + Go 1.27.3 or later. No API change. + ## [1.27.0] - 2026-10-11 Minor release on the **v1** line: additive API only. `socrate.Client.ServiceTokenWithScopes` diff --git a/CLAUDE.md b/CLAUDE.md index 51adb05..edc4365 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -50,7 +50,7 @@ go mod tidy && git diff --exit-code go.sum go build ./... go vet ./... go test -race -count=1 -timeout=120s ./... -golangci-lint run ./... # v2.14.0, built with Go 1.27.2 +golangci-lint run ./... # v2.14.0, built with Go 1.27.3 govulncheck ./... ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c9e298..369067c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ policy decisions. Contributions are accepted under the project's licence, ## Development setup -Requirements: Go (the `toolchain` line in `go.mod` downloads the exact version, 1.27.2; the +Requirements: Go (the `toolchain` line in `go.mod` downloads the exact version, 1.27.3; the `go` line, 1.26.0, is the floor importers need, and CI also tests on it). The tests need no database and no network service. @@ -38,7 +38,7 @@ go test ./... ## Tests and checks Run these before opening a pull request. CI runs the same in the jobs **Build & Test -(toolchain)** (Go 1.27.2) and **Build & Test (floor)** (Go 1.26.0, the `go` line), which check +(toolchain)** (Go 1.27.3) and **Build & Test (floor)** (Go 1.26.0, the `go` line), which check `go.sum`, build, test and vet, plus **golangci-lint** and **govulncheck**; all of them are required: @@ -47,7 +47,7 @@ go mod tidy && git diff --exit-code go.sum go build ./... go vet ./... go test -race -count=1 -timeout=120s ./... -golangci-lint run ./... # v2.14.0, built with Go 1.27.2 +golangci-lint run ./... # v2.14.0, built with Go 1.27.3 govulncheck ./... ``` diff --git a/README.md b/README.md index 7feeace..6c31735 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ to Socrate (`bff`, `pep`) and `ailang` for `aigateway`. - **Go 1.26.0 or later** to import the module (the `go` line in `go.mod`). The floor is the oldest supported Go release: a backendkit upgrade never forces a newer Go on its importers, and - CI builds and tests on the floor itself. backendkit is developed with Go 1.27.2 (the + CI builds and tests on the floor itself. backendkit is developed with Go 1.27.3 (the `toolchain` line). - **A Socrate server** for the packages that talk to it: `jwtauth`, `socrate`, `bff` and `pep`. They are written for Socrate's API and claims, not as a generic OAuth toolkit. The other diff --git a/go.mod b/go.mod index 7945e29..c5b1aea 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ module github.com/ovander/backendkit // backendkit is built and tested with; CI checks it against the Go CI runs. go 1.26.0 -toolchain go1.27.2 +toolchain go1.27.3 require ( github.com/golang-jwt/jwt/v5 v5.3.1