Skip to content

build(deps): Bump github.com/spiffe/go-spiffe/v2 from 2.9.0 to 2.10.0 in /core - #2228

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/go_modules/core/github.com/spiffe/go-spiffe/v2-2.10.0
Open

dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/go_modules/core/github.com/spiffe/go-spiffe/v2-2.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependabot is rebasing this PR ⚠️

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.

v2.10.0

Added

  • Experimental exp/witwpt package, which mints Workload Proof Tokens (WPTs) bound to a WIT-SVID and a request target (#415)
  • Support for ML-DSA keys in X509-SVIDs, JWT-SVIDs, WIT-SVIDs and bundles. ML-DSA support requires building with Go 1.27 or later. With earlier Go versions, ML-DSA keys in bundles are ignored (#440)
  • federation.WithSlogger and workloadapi.WithSlogger options to log through a *slog.Logger (#449)
  • tlsconfig.VerifyConnection and tlsconfig.WrapVerifyConnection, which verify and authorize the peer X509-SVID on every handshake, including resumed sessions (#447)
  • Custom claims on WIT-SVIDs are now available through the Claims field of witsvid.SVID (#410)
  • GetWITSVID method on workloadapi.WITSource, which returns the default WIT-SVID (#410)

Changed

  • Minimum Go version is now go1.26.0, following our support policy (#440, #447)
  • The tlsconfig Hook functions that verify the peer X509-SVID (HookTLSClientConfig, HookMTLSClientConfig, HookMTLSServerConfig and HookMTLSWebServerConfig) now also set VerifyConnection, and the two server ones also set WrapSession and UnwrapSession. Existing callbacks are wrapped, so they must be set before hooking, and a configuration should be hooked only once. Session ticket keys must be set on the hooked configuration (#447)
  • spiffetls.WithDialTLSConfigBase and spiffetls.WithListenTLSConfigBase now clone the base TLS configuration instead of modifying it (#447)
  • jwtsvid.ParseAndValidate and jwtsvid.ParseInsecure now reject tokens with a missing aud claim or an empty aud value (#442)
  • Bundle marshaling in bundle/jwtbundle, bundle/spiffebundle and exp/bundle/witbundle is now deterministic, with JWT and WIT authorities emitted in sorted key ID order (#433)
  • The experimental witsvid.Source interface now requires a GetWITSVID method, so existing implementations need to add it (#410)
  • Other dependency updates.

Fixed

  • The TLS configurations built by spiffetls/tlsconfig that verify the peer X509-SVID now also verify and authorize it on resumed sessions, which Go does not pass to VerifyPeerCertificate. Authorizers are now also called on resumed handshakes, and mTLS servers fall back to a full handshake when the client certificate of a session no longer verifies (#447)
  • Bundle parsing no longer fails on JWKS entries with an unsupported key type, or in spiffebundle a missing or unknown use. Those entries are now ignored, as the SPIFFE bundle specification requires (#444, #448)
  • The federation handler now sets the Allow header on 405 responses (#434)
Changelog

Sourced from github.com/spiffe/go-spiffe/v2's changelog.

[2.10.0] - 2026-11-27

Added

  • Experimental exp/witwpt package, which mints Workload Proof Tokens (WPTs) bound to a WIT-SVID and a request target (#415)
  • Support for ML-DSA keys in X509-SVIDs, JWT-SVIDs, WIT-SVIDs and bundles. ML-DSA support requires building with Go 1.27 or later. With earlier Go versions, ML-DSA keys in bundles are ignored (#440)
  • federation.WithSlogger and workloadapi.WithSlogger options to log through a *slog.Logger (#449)
  • tlsconfig.VerifyConnection and tlsconfig.WrapVerifyConnection, which verify and authorize the peer X509-SVID on every handshake, including resumed sessions (#447)
  • Custom claims on WIT-SVIDs are now available through the Claims field of witsvid.SVID (#410)
  • GetWITSVID method on workloadapi.WITSource, which returns the default WIT-SVID (#410)

Changed

  • Minimum Go version is now go1.26.0, following our support policy (#440, #447)
  • The tlsconfig Hook functions that verify the peer X509-SVID (HookTLSClientConfig, HookMTLSClientConfig, HookMTLSServerConfig and HookMTLSWebServerConfig) now also set VerifyConnection, and the two server ones also set WrapSession and UnwrapSession. Existing callbacks are wrapped, so they must be set before hooking, and a configuration should be hooked only once. Session ticket keys must be set on the hooked configuration (#447)
  • spiffetls.WithDialTLSConfigBase and spiffetls.WithListenTLSConfigBase now clone the base TLS configuration instead of modifying it (#447)
  • jwtsvid.ParseAndValidate and jwtsvid.ParseInsecure now reject tokens with a missing aud claim or an empty aud value (#442)
  • Bundle marshaling in bundle/jwtbundle, bundle/spiffebundle and exp/bundle/witbundle is now deterministic, with JWT and WIT authorities emitted in sorted key ID order (#433)
  • The experimental witsvid.Source interface now requires a GetWITSVID method, so existing implementations need to add it (#410)
  • Other dependency updates.

Fixed

  • The TLS configurations built by spiffetls/tlsconfig that verify the peer X509-SVID now also verify and authorize it on resumed sessions, which Go does not pass to VerifyPeerCertificate. Authorizers are now also called on resumed handshakes, and mTLS servers fall back to a full handshake when the client certificate of a session no longer verifies (#447)
  • Bundle parsing no longer fails on JWKS entries with an unsupported key type, or in spiffebundle a missing or unknown use. Those entries are now ignored, as the SPIFFE bundle specification requires (#444, #448)
  • The federation handler now sets the Allow header on 405 responses (#434)
Commits
  • 5abbbd9 v2.10.0 changelog (#453)
  • 5978d44 Add exp/witwpt with WPT minting (#415)
  • bde5541 Add a security policy (#451)
  • 44175f5 Make bundle marshaling deterministic (#433)
  • 86037c9 Set the Allow header on federation handler 405 responses (#434)
  • ddc0140 jwtsvid: reject tokens without an aud claim (#442)
  • bd715fa logger: add WithSlogger options for *slog.Logger (#449)
  • 93d2ad8 Check the key type before decoding a JWK (#448)
  • 34f801d bundle: use a made-up key type in the ignored-key fixtures (#450)
  • 9ec1f33 bundle: ignore JWKs with an unsupported key type or unknown use (#444)
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from a team as a code owner November 30, 2026 23:18
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0d7108dc-8d61-4b6f-85f8-120335f45169

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot closed this Nov 30, 2026
@github-actions github-actions Bot reopened this Nov 30, 2026
@github-actions github-actions Bot added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 30, 2026

@clawgenti clawgenti 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.

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.mod and the four others), so it is met.
  • jwtsvid.ParseAndValidate/ParseInsecure now reject a token with a missing or empty aud. Production code only fetches JWT-SVIDs (core/spiffe/mirror.go:191, core/spiffe/workload_jwt.go:58); the only ParseInsecure in the repo is a test that passes an explicit audience (core/spiffe/workload_jwt_test.go:73). The jwt.ParseInsecure at core/plugins/tokenexchange/plugin.go:821 is lestrrat-go/jwx, a different library.
  • The TLS-hook changes (HookTLSClientConfig, HookMTLS*, WithDialTLSConfigBase, WithListenTLSConfigBase, the new VerifyConnection wrapper) do not apply: no spiffetls or tlsconfig hook use in the repo.
  • Sums verified against sum.golang.org for go-spiffe/v2 v2.10.0, go-jose/v4 v4.1.9 and Microsoft/go-winio v0.6.4, in each of the five go.sum files the PR touches.
  • Verify module graph is tidy was 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.

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/core/github.com/spiffe/go-spiffe/v2-2.10.0 branch from 463af8e to d599f93 Compare December 1, 2026 17:56
@github-actions github-actions Bot closed this Dec 1, 2026
@github-actions github-actions Bot reopened this Dec 1, 2026
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Dec 1, 2026

@clawgenti clawgenti 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.

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:

  • tlsconfig hook / spiffetls base-config changes: cortex uses none of HookTLS*, HookMTLS*, WithDialTLSConfigBase or WithListenTLSConfigBase (grep).
  • jwtsvid.ParseAndValidate / ParseInsecure now reject a missing or empty aud: the only ParseInsecure call is core/spiffe/workload_jwt_test.go, which passes a real audience; production uses FetchJWTSVID.
  • witsvid.Source interface 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.mod says go 1.26.10, so this is satisfied.
  • go-jose 4.1.9 is the release that fixes the v4.1.5 OpaqueSigner regression; 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>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/core/github.com/spiffe/go-spiffe/v2-2.10.0 branch from 0007578 to c8eadba Compare December 1, 2026 18:46

@clawgenti clawgenti 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.

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.mod declares go 1.26.10. No go/toolchain line moved in this PR.
  • jwtsvid.ParseAndValidate/ParseInsecure reject a missing or empty aud: production only fetches SVIDs — FetchJWTSVID with an explicit audience at core/spiffe/workload_jwt.go:58 and core/spiffe/mirror.go:191. The only ParseInsecure is core/spiffe/workload_jwt_test.go:73, which passes an audience. Not affected.
  • TLS hook changes (HookTLS*, WithDialTLSConfigBase, WithListenTLSConfigBase, the new VerifyConnection wrapper): cortex uses no spiffetls/tlsconfig hook (grep). Not affected.
  • witsvid.Source interface change / GetWITSVID: no witsvid use. Not affected.
  • Bundle parsing ignores unsupported JWKS key types: cortex imports bundle/x509bundle only, and that package is unchanged in 2.10.0.
  • x509svid.keyMatches now compares via crypto.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 OpaqueSigner regression; 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 -diff in core, cmd/cortex, cmd/cortex-envoy — blocked: github.com/rossoctl/context-guru v0.7.13 is not in the local module cache and the module proxy is unreachable from the sandbox; scripts/readme-demo needed 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>
@github-actions github-actions Bot closed this Dec 1, 2026
@github-actions github-actions Bot reopened this Dec 1, 2026

@clawgenti clawgenti 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.

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.mod declares go 1.26.10, and no go/toolchain line moves in this PR.
  • jwtsvid audience tightening — measured, not assumed. A probe at both versions with ParseInsecure(tok, nil) shows the real delta: 2.9.0 accepted tokens with a missing or empty aud; 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 only ParseInsecure call is core/spiffe/workload_jwt_test.go:73, which passes a real audience, and production only mints through FetchJWTSVID (core/spiffe/workload_jwt.go:58, core/spiffe/mirror.go:191). Nothing here passes a nil audience.
  • TLS hook changes (HookTLS*, WithDialTLSConfigBase, WithListenTLSConfigBase, the new VerifyConnection wrapper): no spiffetls/tlsconfig hook is used (grep).
  • witsvid interface changes: no witsvid use.
  • Bundle parsing ignores unsupported JWKS key types: cortex imports bundle/x509bundle only, 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 -diff in core and cmd/* — blocked: modernc.org/sqlite v1.56.0 is 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code ready-for-ai-review Request automated AI code review from clawgenti

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant