Skip to content

chore(deps): bump toolhive to v0.70.1 - #3014

Merged
ChrisJBurns merged 2 commits into
mainfrom
chris/toolhive-v0.70.1
Nov 28, 2026
Merged

ChrisJBurns merged 2 commits into
mainfrom
chris/toolhive-v0.70.1

Conversation

@ChrisJBurns

Copy link
Copy Markdown
Contributor

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 get raised 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:sync carried them into the other workspace modules.

API compatibility

No wire change: this is a dependency bump with no Mecatl behaviour change.

Testing

  • task build and golangci-lint (all root packages) pass, and task test:workspace-sync is clean.

  • task test passes except for packages that fail the same way on main in this local environment:

    • deploy/helm/mecatl-execution: Helm schema;
    • deploy/mecatl-execution-kind: macOS /private temp paths;
    • environment/microvm/gitexec: no bash on PATH.

    cmd/mecatui/agenthook failed once on a temp-dir cleanup race and passes on rerun (-count=3).

v0.70.1 turns on subject resolution at ID-JAG redemption
(stacklok/toolhive#7247), which #2533 needs.

Co-authored-by: Mecatl <[email protected]>

@rdimitrov rdimitrov left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/microvm
  • authn/oidc
  • provider/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 /readyz fails sooner during a Redis blip. The chart's probe settings absorb this, and the next adapters release passes the same change on to its users.
  • The vMCP's call-binding refusals gain a reason field. A 401 gets it in WWW-Authenticate and the body, and a 403 gets it as error.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-go 1.9.4 doesn't change policy evaluation.
  • jwx 4.7.0 adds options but no changed defaults.
  • sigstore-go 1.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 build passes.
    • 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, adapters and authn/oidc.
    • The mecademo smoke test passes.
    • mecatui --mock starts 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]>
@ChrisJBurns

Copy link
Copy Markdown
Contributor Author

Thanks. Both are fixed in 4e617a0.

  1. Standalone module sums. I ran task tidy:module for environment/microvm, authn/oidc and the four providers: 44 go.sum lines, nothing else. All six build with GOWORK=off, and task test:workspace-sync is clean.
  2. go-redis 9.24 deprecations. The scans now range over scan.Vals(ctx), and scan.Err() is still checked after each loop. There was a fourth site beyond the three you listed: the schedule-fire scan in adapters/redisstore/schedulestore.go. golangci-lint on adapters now reports 0 issues, go test ./redisstore/ passes, and task lint is clean across the modules.

On #2533: agreed. The change that turns on resolve is #3015, stacked on this PR. It carries the subject_unknown and "no user created" tests, and production still doesn't set the trust until the follow-up that wires it from configuration.

@rdimitrov rdimitrov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both blockers are fixed in 4e617a0.

  • Standalone builds: all six modules build with GOWORK=off again, including the microVM mecatl-oci-tree-digest release build. Test GitHub Actions scripts now passes, and task test:workspace-sync stays clean.
  • go-redis deprecation: all four scan loops now range over Vals. That includes ListFires, which I missed. Each loop still checks scan.Err() afterwards, and Vals stores a failed page fetch on the same command that Err() reads, so error handling hasn't changed. The pinned linter reports 0 issues on adapters, and the redisstore tests 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

@ChrisJBurns
ChrisJBurns enabled auto-merge (squash) November 28, 2026 13:24
@ChrisJBurns
ChrisJBurns merged commit fc634e6 into main Nov 28, 2026
79 of 81 checks passed
@ChrisJBurns
ChrisJBurns deleted the chris/toolhive-v0.70.1 branch November 28, 2026 14:23
rdimitrov added a commit that referenced this pull request Nov 28, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants