Repository navigation
build(deps): Bump github.com/spiffe/go-spiffe/v2 from 2.9.0 to 2.10.0 in /core - #2228
dependabot[bot] wants to merge 2 commits into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Dependency-only bump; the three changes in go-spiffe 2.10.0 that could affect a consumer do not apply here.
- Minimum Go is now 1.26.0; every module declares
go 1.26.10(core/go.modand the four others), so it is met. jwtsvid.ParseAndValidate/ParseInsecurenow reject a token with a missing or emptyaud. Production code only fetches JWT-SVIDs (core/spiffe/mirror.go:191,core/spiffe/workload_jwt.go:58); the onlyParseInsecurein the repo is a test that passes an explicit audience (core/spiffe/workload_jwt_test.go:73). Thejwt.ParseInsecureatcore/plugins/tokenexchange/plugin.go:821is lestrrat-go/jwx, a different library.- The TLS-hook changes (
HookTLSClientConfig,HookMTLS*,WithDialTLSConfigBase,WithListenTLSConfigBase, the newVerifyConnectionwrapper) do not apply: nospiffetlsortlsconfighook use in the repo. - Sums verified against
sum.golang.orgforgo-spiffe/v2 v2.10.0,go-jose/v4 v4.1.9andMicrosoft/go-winio v0.6.4, in each of the fivego.sumfiles the PR touches. Verify module graph is tidywas still queued at review time; the Go CI jobs that had finished are green.
Author: dependabot[bot] (CONTRIBUTOR — dependency bot)
Areas reviewed: go.mod/go.sum in the four modules plus scripts/readme-demo; go-spiffe 2.10.0 release notes; the spiffe packages' API surface used
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, signed-off: yes
CI status: 27 success, 14 queued, 2 skipped at review time (a Go CI (Windows build, archive and ledger) job had been in progress earlier)
Not checked:
- a local
go build/test run — module zips are not fetchable here (proxy blob host times out); the sums were checked against sum.golang.org and CI's Go jobs cover the build. - a live SPIFFE workload-API exchange — no SPIRE agent is available in this sandbox.
Generated by repoman github-pr-review@af425c8.
463af8e to
d599f93
Compare
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
Upgrades github.com/spiffe/go-spiffe/v2 2.9.0 to 2.10.0 in core, with the indirect go-jose/go-jose/v4 4.1.9 and Microsoft/go-winio 0.6.4 it pulls in. The second commit propagates those versions and their sums to cmd/* and scripts/readme-demo, so the module graph stays consistent. I verified every release-note item against the v2.10.0 tag and reviewed the ones that could reach this repo:
tlsconfighook /spiffetlsbase-config changes: cortex uses none ofHookTLS*,HookMTLS*,WithDialTLSConfigBaseorWithListenTLSConfigBase(grep).jwtsvid.ParseAndValidate/ParseInsecurenow reject a missing or emptyaud: the onlyParseInsecurecall iscore/spiffe/workload_jwt_test.go, which passes a real audience; production usesFetchJWTSVID.witsvid.Sourceinterface change: not used.- Bundle parsing now ignores unsupported JWKS key types: a spec fix, and cortex does not parse bundles itself.
- Minimum Go is now 1.26.0;
core/go.modsaysgo 1.26.10, so this is satisfied. - go-jose 4.1.9 is the release that fixes the v4.1.5
OpaqueSignerregression; go-winio 0.6.4 fixes a non-SystemDLL regression.
Probes at head: go test ./spiffe/... and go test ./plugins/tokenexchange/... pass.
Author: dependabot[bot] (automated dependency update)
Areas reviewed: Go module manifests (go.mod/go.sum), dependency release notes, SPIFFE call sites
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, all signed-off: yes
CI status: a fresh run is queued; DCO passed.
Not checked: go mod tidy -diff across cmd/* — blocked by a proxy timeout downloading google.golang.org/api; the CI tidy job will confirm the propagation commit.
Generated by repoman github-pr-review@af425c8.
Bumps [github.com/spiffe/go-spiffe/v2](https://github.com/spiffe/go-spiffe) from 2.9.0 to 2.10.0. - [Release notes](https://github.com/spiffe/go-spiffe/releases) - [Changelog](https://github.com/spiffe/go-spiffe/blob/main/CHANGELOG.md) - [Commits](spiffe/go-spiffe@v2.9.0...v2.10.0) --- updated-dependencies: - dependency-name: github.com/spiffe/go-spiffe/v2 dependency-version: 2.10.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
0007578 to
c8eadba
Compare
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
Upgrades github.com/spiffe/go-spiffe/v2 2.9.0 → 2.10.0 in core, with the two indirect bumps that 2.10.0's own go.mod requires: go-jose/go-jose/v4 4.1.5 → 4.1.9 and Microsoft/go-winio 0.6.2 → 0.6.4 (both exact matches to the upstream requirements). I checked every release-note item against the tag and the source diff:
- Minimum Go is now 1.26.0 (go-spiffe's own
go.mod), satisfied:core/go.moddeclaresgo 1.26.10. Nogo/toolchainline moved in this PR. jwtsvid.ParseAndValidate/ParseInsecurereject a missing or emptyaud: production only fetches SVIDs —FetchJWTSVIDwith an explicit audience atcore/spiffe/workload_jwt.go:58andcore/spiffe/mirror.go:191. The onlyParseInsecureiscore/spiffe/workload_jwt_test.go:73, which passes an audience. Not affected.- TLS hook changes (
HookTLS*,WithDialTLSConfigBase,WithListenTLSConfigBase, the newVerifyConnectionwrapper): cortex uses nospiffetls/tlsconfighook (grep). Not affected. witsvid.Sourceinterface change /GetWITSVID: nowitsviduse. Not affected.- Bundle parsing ignores unsupported JWKS key types: cortex imports
bundle/x509bundleonly, and that package is unchanged in 2.10.0. x509svid.keyMatchesnow compares viacrypto.Signer.Public().Equal: same result for the RSA/ECDSA/Ed25519 keys the workload API returns.- go-jose 4.1.9 carries the 4.1.6/4.1.7 security fixes (including the 4096-bit RSA modulus cap from GHSA-mgcc-cww5-fp2q) and fixes the 4.1.5
OpaqueSignerregression; it is reached only through go-spiffe's JWT-SVID path, which uses ECDSA/RSA keys well inside that cap. - Sums match the module zip hashes for all three modules.
Suggestion — the force-pushed head dropped the earlier tidy commit. scripts/readme-demo (and cmd/cortex, cmd/cortex-envoy) still pin the old versions through their replace ../../core. At this head, GOWORK=off go mod tidy -diff in scripts/readme-demo prints go-winio 0.6.2 → 0.6.4, go-jose 4.1.5 → 4.1.9 and go-spiffe 2.9.0 → 2.10.0 changes, so Verify module graph is tidy will fail until the propagation commit lands. The dependabot-tidy workflow is queued on this head and should push it.
Author: dependabot[bot] (CONTRIBUTOR — dependency bot)
Areas reviewed: Go module manifests (core/go.mod, core/go.sum), go-spiffe 2.10.0 release notes and source diff, go-jose/go-winio transitive changes, SPIFFE call sites, sibling-module tidy state
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: 1 pass (DCO), 40 pending, 2 skipped at review time — the run was still queued
Not checked:
go mod tidy -diffincore,cmd/cortex,cmd/cortex-envoy— blocked:github.com/rossoctl/context-guru v0.7.13is not in the local module cache and the module proxy is unreachable from the sandbox;scripts/readme-demoneeded no uncached module and was checked.- a live SPIFFE workload-API exchange — no SPIRE agent in this sandbox.
Verified by: go build ./spiffe/... at head (exit 0); go mod tidy -diff in scripts/readme-demo at head (diff shown above); ziphash comparison for all three modules.
Generated by repoman github-pr-review@af425c8.
Auto-tidied by dependabot-tidy workflow to keep cmd/* go.sum files in sync with core after a Dependabot bump. Signed-off-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
clawgenti
left a comment
There was a problem hiding this comment.
Clawgenti Code Review
Summary
github.com/spiffe/go-spiffe/v2 2.9.0 → 2.10.0 in core, with the two indirect bumps that 2.10.0's own go.mod requires: go-jose/go-jose/v4 4.1.5 → 4.1.9 and Microsoft/go-winio 0.6.2 → 0.6.4 (go-spiffe 2.10.0 lists exactly those two versions). The delta from the previously reviewed head (c8eadba) is the restored tidy commit: all five modules now carry the new versions and sums, so the tidy suggestion from the 19:05 review is resolved.
Release-note items checked against the v2.10.0 tag and source:
- Minimum Go is now 1.26.0 (go-spiffe's own
go.mod), satisfied:core/go.moddeclaresgo 1.26.10, and nogo/toolchainline moves in this PR. jwtsvidaudience tightening — measured, not assumed. A probe at both versions withParseInsecure(tok, nil)shows the real delta: 2.9.0 accepted tokens with a missing or emptyaud; 2.10.0 rejects them (token missing aud claim/token has an empty aud claim value). With a non-empty expected audience both versions already rejected. Cortex's onlyParseInsecurecall iscore/spiffe/workload_jwt_test.go:73, which passes a real audience, and production only mints throughFetchJWTSVID(core/spiffe/workload_jwt.go:58,core/spiffe/mirror.go:191). Nothing here passes a nil audience.- TLS hook changes (
HookTLS*,WithDialTLSConfigBase,WithListenTLSConfigBase, the newVerifyConnectionwrapper): nospiffetls/tlsconfighook is used (grep). witsvidinterface changes: nowitsviduse.- Bundle parsing ignores unsupported JWKS key types: cortex imports
bundle/x509bundleonly, which is unchanged. - go-jose 4.1.9 carries the 4.1.6/4.1.7 security fixes; it is reached only through go-spiffe's JWT-SVID path.
Author: dependabot[bot] (CONTRIBUTOR — dependency bot)
Areas reviewed: go.mod/go.sum in core, cmd/cortex, cmd/cortex-envoy, cmd/agentop, scripts/readme-demo; go-spiffe 2.10.0 release notes and source; go-jose/go-winio transitive changes; SPIFFE call sites
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, all signed-off: yes
CI status: DCO passed; verify-pr-title queued; no build/test workflows are attached to this head at review time
Not checked:
go mod tidy -diffincoreandcmd/*— blocked:modernc.org/sqlite v1.56.0is not in the local module cache and its zip host is unreachable from this sandbox. The version propagation itself was verified in all five modules.- a live SPIFFE workload-API exchange — no SPIRE agent in this sandbox.
Verified by: go test ./spiffe/... at head (pass, and identical at base); ParseInsecure probes at 2.9.0 vs 2.10.0 with a real audience, a missing aud, an empty aud, and a nil expected audience; go mod download zip-hash comparison for all three modules (all match every changed go.sum).
Generated by repoman github-pr-review@af425c8.
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Bumps github.com/spiffe/go-spiffe/v2 from 2.9.0 to 2.10.0.
Release notes
Sourced from github.com/spiffe/go-spiffe/v2's releases.
Changelog
Sourced from github.com/spiffe/go-spiffe/v2's changelog.
Commits
5abbbd9v2.10.0 changelog (#453)5978d44Add exp/witwpt with WPT minting (#415)bde5541Add a security policy (#451)44175f5Make bundle marshaling deterministic (#433)86037c9Set the Allow header on federation handler 405 responses (#434)ddc0140jwtsvid: reject tokens without an aud claim (#442)bd715falogger: add WithSlogger options for *slog.Logger (#449)93d2ad8Check the key type before decoding a JWK (#448)34f801dbundle: use a made-up key type in the ignored-key fixtures (#450)9ec1f33bundle: ignore JWKs with an unsupported key type or unknown use (#444)