Repository navigation
chore(deps): bump toolhive to v0.70.1 - #3014
Conversation
v0.70.1 turns on subject resolution at ID-JAG redemption (stacklok/toolhive#7247), which #2533 needs. Co-authored-by: Mecatl <[email protected]>
There was a problem hiding this comment.
The bump is correct, but two CI failures it causes need fixing before merge.
Blocking
1. Six standalone modules no longer build without the workspace. go work sync dropped the /go.mod hash for each new version, so GOWORK=off builds now fail with missing go.sum entry for go.mod file:
environment/microvmauthn/oidcprovider/anthropic,provider/openai,provider/openaichat,provider/ssefilter
All six build on main. The microVM release path builds this way, which is why Test GitHub Actions scripts fails.
Fix: run task tidy:module MODULE=<module> for each one. I tried it locally: it adds 44 go.sum lines and changes nothing else, all six build again, and task test:workspace-sync stays clean.
2. go-redis 9.24 deprecates ScanIterator.Next/Val, so adapters fails lint. Six SA1019 errors at adapters/redisstore/redisstore.go:528-529 and adapters/redisstore/schedulestore.go:688-689 and :722-723. The root lint run doesn't cover this module.
Fix: for key := range scan.Vals(ctx) { ... }, keeping the scan.Err() check after the loop. Don't mix Vals with Next on the same iterator, because in 9.24.1 they share a position.
Worth knowing for the release notes
- Redis connection failures are reported faster. In go-redis 9.24, a refused connection fails after about 0.4s instead of 1.7s (measured locally). A pod that starts before Redis exits sooner and restarts a few more times, and
/readyzfails sooner during a Redis blip. The chart's probe settings absorb this, and the nextadaptersrelease passes the same change on to its users. - The vMCP's call-binding refusals gain a
reasonfield. A 401 gets it inWWW-Authenticateand the body, and a 403 gets it aserror.data.reason. The change is additive and existing clients are unaffected.
For the rest of #2533
v0.70.1 removes the gate that refused every redemption from a resolve issuer. Nothing changes today, because Mecatl doesn't set resolve. Once Mecatl does, nothing upstream refuses those redemptions any more. The change that turns resolution on should land together with the ticket's subject_unknown and "no user created" tests.
Checked
- Every bumped version is the minimum ToolHive v0.70.1 requires.
cedar-go1.9.4 doesn't change policy evaluation.jwx4.7.0 adds options but no changed defaults.sigstore-go1.4.1 only adds features, and the real cosign bundle test passes.- No storage or token format changed, so old and new replicas can run side by side and a rollback needs no migration.
- Local runs on this branch:
task buildpasses.- Focused tests pass across the identity broker (including the real AS-1/AS-2 redemption and call-binding tests), the MCP broker, the server,
internal/app,mecak8s,mecatui,environment/microvm,adaptersandauthn/oidc. - The
mecademosmoke test passes. mecatui --mockstarts and exits cleanly in a real pseudo-terminal.
- CI's race tests and govulncheck pass.
🤖 Generated with Claude Code
…s scans `go work sync` dropped the go.mod hashes the standalone modules need, so `GOWORK=off` builds failed; `task tidy:module` restores them for environment/microvm, authn/oidc and the providers. go-redis 9.24 deprecates ScanIterator.Next and Val, so the Redis stores range over Vals instead. Co-authored-by: Mecatl <[email protected]>
|
Thanks. Both are fixed in 4e617a0.
On #2533: agreed. The change that turns on |
rdimitrov
left a comment
There was a problem hiding this comment.
Both blockers are fixed in 4e617a0.
- Standalone builds: all six modules build with
GOWORK=offagain, including the microVMmecatl-oci-tree-digestrelease build. Test GitHub Actions scripts now passes, andtask test:workspace-syncstays clean. - go-redis deprecation: all four scan loops now range over
Vals. That includesListFires, which I missed. Each loop still checksscan.Err()afterwards, andValsstores a failed page fetch on the same command thatErr()reads, so error handling hasn't changed. The pinned linter reports 0 issues onadapters, and theredisstoretests pass.
The release-note items and the #2533 follow-up from my earlier review still apply and don't block this PR. The rest of CI was still running when I approved.
🤖 Generated with Claude Code
Brings in #3014 (toolhive v0.70.1) and #3015 (AS-2 resolves AS-1's ID-JAG users through the company IdP). The gateway tests keep main's AS-2 sign-in and read the ID-JAG records from the audit file, since the in-memory recorder is gone on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bumps ToolHive from v0.70.0 to v0.70.1. v0.70.1 turns on subject resolution at ID-JAG redemption (stacklok/toolhive#7247), which the rest of #2533 needs. Mecatl doesn't configure subject resolution yet, so behaviour is unchanged.
go getraised some indirect requirements to the versions ToolHive v0.70.1 needs: go-redis 9.24.1, k8s 0.37.3, go-spiffe 2.10.0, jwx 4.7.0, and charmbracelet/x/ansi 0.12.0.task deps:synccarried them into the other workspace modules.API compatibility
No wire change: this is a dependency bump with no Mecatl behaviour change.
Testing
task buildandgolangci-lint(all root packages) pass, andtask test:workspace-syncis clean.task testpasses except for packages that fail the same way onmainin this local environment:deploy/helm/mecatl-execution: Helm schema;deploy/mecatl-execution-kind: macOS/privatetemp paths;environment/microvm/gitexec: nobashonPATH.cmd/mecatui/agenthookfailed once on a temp-dir cleanup race and passes on rerun (-count=3).