Skip to content

chore(deps): bump toolhive to v0.69.0 - #2982

Merged
ChrisJBurns merged 3 commits into
mainfrom
chore/bump-toolhive-v0.68.0
Nov 25, 2026
Merged

ChrisJBurns merged 3 commits into
mainfrom
chore/bump-toolhive-v0.68.0

Conversation

@rdimitrov

@rdimitrov rdimitrov commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Bump github.com/stacklok/toolhive from v0.66.0 to v0.69.0. This makes the later bump for #2727 (gateway token call binding) smaller. The PR first moved to v0.68.0; v0.69.0 shipped while it was in review, so the second commit moves it on. The branch name still says v0.68.0.

Mecatl's production behavior does not change. Production AS-2 still trusts no ID-JAG issuer, so its JWT-bearer grant stays off. The new accepted_assertion_types gate is left unset, and unset keeps the old default of accepting both jwt_bearer and id_jag. Only tests and two stale comments change.

ToolHive changes that matter to Mecatl

These all tighten the embedded authorization server. None loosens a check Mecatl relies on.

v0.69.0 adds (no code change needed in Mecatl; no other dependency moved):

Other changes in these releases don't touch what Mecatl configures. These include the SPIFFE client_credentials grant and resource changes, the DCR client_name, the opt-in vMCP scope authorization, and the delegated-access marker refusal.

Changes

  • go.mod, go.sum, integration/microvm/go.mod, integration/microvm/go.sum: the bump plus task deps:sync. The golang.org/x/exp/event and jsonrpc2 pins move with it. goldmark is now recorded as indirect in integration/microvm at the version root already uses.
  • internal/adapter/mcpbroker/as2_test.go:
    • A client assertion with the token endpoint as aud, or with an aud array, must now be refused.
    • A resource claim that names another server is refused, whether or not the request names the vMCP.
    • New refusal cases: an ID-JAG with a multi-valued aud, and an ID-JAG redeemed without client authentication.
  • internal/identitybroker/authorize_integration_test.go and internal/app/identitybroker_gateway_test.go: AS-2's refusals now carry a reason, so each test expects one ID-JAG and one redemption instead of a retry.
  • internal/identitybroker/authorize.go, internal/app/build.go: drop the comments saying AS-2 sends no reason codes.

Checks

On v0.69.0 (second commit): task build, go test -race on internal/adapter/mcpbroker/... and internal/identitybroker/..., the identity broker, MCP broker, gateway and AS tests in internal/app/..., the identity broker and gateway tests in cmd/mecak8s, task lint, task generate (no diff), task test:workspace-sync and go run ./cmd/mecademo: all pass. The hosted AS-1 Kind spec also passed 8 of 8 in a local regression run against v0.69.0 plus two open ToolHive PRs (#7284, #7290), with the image built from that combined source.

On v0.68.0 (first commit):

  • task build: pass.

  • go test -race on internal/adapter/mcpbroker/... and internal/identitybroker/...: pass.

  • go test -race on internal/app (identity broker, MCP broker, gateway and AS tests): pass.

  • task lint: pass. task generate leaves no diff. task test:workspace-sync: clean.

  • go run ./cmd/mecademo: pass.

  • task test: everything that touches ToolHive passes. The run stopped at test:microvm-dev-tag after five failures in tests that start subprocesses or daemons under 2–10s deadlines, while the machine's load average was about 30. All five pass when rerun alone:

    • TestDefaultRunnerDeliversPayloadAndHarness (cmd/mecatui/agenthook, which has no ToolHive dependency)
    • TestEndToEndThroughNotifierToScript (cmd/mecatui/agenthook)
    • TestWorkspaceSnapshotHostileHelpers (cmd/mecatui)
    • TestDefaultOperationsStartScrubsDaemonEnvironmentAndDetachesFromRequest
    • TestRepositoryGuestAuthenticationRejectsCompetingConnectorBeforeDisclosure

    task test:microvm-dev-tag also passes on its own. CI runs the full matrix.

Kind end-to-end

I ran the hosted AS-1 Kind spec mock-only, with no provider key. The command was go test -v -tags kind_e2e ./e2e/k8s/ -args -ginkgo.focus='hosted AS-1', and it passed 8 of 8. It covers mecatui signing in at a mecak8s-hosted AS-1 through Dex, and session open converting that sign-in. The conversion is the broker's token exchange at AS-1 with its private_key_jwt assertion, so it runs the issuer-only aud check against a deployed issuer. It also covers the refresh and pod-restart cases.

No deployment can test ID-JAG redemption at AS-2 through the vMCP yet. Build refuses a gateway entry that routes servers until AS-2 trusts AS-1 (#2533), and only tests can set that trust. That path is covered in-process, against the real embedded AS-2 and vMCP, by the mcpbroker, identitybroker and internal/app tests above.

Follow-ups (not in this PR)

🤖 Generated with Claude Code

rdimitrov and others added 2 commits November 24, 2026 22:03
Bump github.com/stacklok/toolhive from v0.66.0 to v0.68.0 and sync the
workspace metadata. No Mecatl production behavior changes: AS-2's
JWT-bearer grant stays off in production, and the new
accepted_assertion_types gate is left unset, which keeps accepting both
assertion types.

Update the tests that pin the embedded authorization server's behavior:

- AS-2 now accepts a client assertion only when aud is its issuer alone;
  the token endpoint and an array with another value are refused.
- AS-2 refuses an ID-JAG whose resource claim names a resource it does
  not govern, and one with a multi-valued aud, so the tracked shortcut
  case becomes a refusal.
- AS-2 refuses an ID-JAG redeemed without client authentication.
- AS-2 redemption refusals now carry reason codes (invalid_assertion,
  subject_unknown), so the broker no longer takes its reasonless
  invalid_grant retry for them. Drop the comments that said it would.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move from v0.68.0 to v0.69.0, released after this PR opened. It adds
the authorization-server changes for per-call gateway tokens that are
already merged (one reachability rule for the authorization_details
registry, refusing tokens and assertions that carry
authorization_details, and the vMCP argument hash), plus ID-JAG
subject resolution behind a setting, the actor check at ID-JAG
redemption, and EdDSA in the token validator. Mecatl needs no code
change: no other dependency moved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov rdimitrov changed the title chore(deps): bump toolhive to v0.68.0 chore(deps): bump toolhive to v0.69.0 Nov 24, 2026
@ChrisJBurns
ChrisJBurns merged commit 9d9079f into main Nov 25, 2026
50 checks passed
@ChrisJBurns
ChrisJBurns deleted the chore/bump-toolhive-v0.68.0 branch November 25, 2026 09:55
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.

Authorization server: reason codes in error_description for ID-JAG redemption refusals

2 participants