Skip to content

Release v0.68.0 - #7243

Merged
rdimitrov merged 1 commit into
mainfrom
release/v0.68.0
Nov 23, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
release/v0.68.0

Conversation

@toolhive-release-app

Copy link
Copy Markdown
Contributor

Release v0.68.0

Version Bump

minor release

Files Updated

  • VERSION
  • deploy/charts/operator-crds/Chart.yaml (path: version)
  • deploy/charts/operator-crds/Chart.yaml (path: appVersion)
  • deploy/charts/operator/Chart.yaml (path: version)
  • deploy/charts/operator/Chart.yaml (path: appVersion)
  • deploy/charts/operator/values.yaml (path: operator.image)
  • deploy/charts/operator/values.yaml (path: operator.toolhiveRunnerImage)
  • deploy/charts/operator/values.yaml (path: operator.vmcpImage)
  • Helm chart docs (via helm-docs)

Next Steps

  1. Review this PR
  2. Merge to main
  3. Release automation will handle the rest

Checklist

  • Version bump is correct
  • All CI checks pass

Release-Triggered-By: rdimitrov
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.64%. Comparing base (5d2fd9a) to head (d7f9251).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7243      +/-   ##
==========================================
- Coverage   81.64%   81.64%   -0.01%     
==========================================
  Files         903      903              
  Lines       91789    91789              
==========================================
- Hits        74939    74938       -1     
- Misses      16845    16846       +1     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rdimitrov
rdimitrov merged commit 46d464d into main Nov 23, 2026
44 checks passed
@rdimitrov
rdimitrov deleted the release/v0.68.0 branch November 23, 2026 13:34
@github-actions

Copy link
Copy Markdown
Contributor

📝 Generated release notes for v0.68.0

Auto-generated by the release-notes skill. Review and, if good, apply with:

gh release edit v0.68.0 --notes-file <paste-below>.md
Click to expand release notes

🚀 Toolhive v0.68.0 is live!

This release tightens authentication. Kubernetes service-account OIDC configs now enforce their serviceAccount and namespace restrictions, and the embedded authorization server now follows RFC 10070 and the ID-JAG draft more strictly. It also adds per-issuer assertion-type gating and lays groundwork for delegated access.

⚠️ Breaking Changes

  • MCPOIDCConfig service-account restrictions are now enforced (security fix): on kubernetesServiceAccount configs, serviceAccount and namespace used to be documented but ignored. Now a caller whose token sub doesn't match gets 401 invalid_token. Set these fields to the caller's identity before upgrading. (migration guide)
  • Client assertion aud must be the issuer, and nothing else: a private_key_jwt client assertion whose aud is the token endpoint URL, or an array with more than one value, now gets 401 invalid_client. Switch clients to send the issuer as aud before upgrading. (migration guide)
  • ID-JAG redemption requires client authentication, and cnf-bound assertions are refused: public clients can no longer redeem ID-JAGs (401 invalid_client). Any ID-JAG or RFC 7523 assertion that carries cnf is refused (400 invalid_grant). Register redeeming clients as confidential. (migration guide)

Migration guide: MCPOIDCConfig service-account restrictions are now enforced

Who is affected: anyone with an MCPOIDCConfig of type: kubernetesServiceAccount that sets serviceAccount and/or namespace, used by MCPServer, MCPRemoteProxy, or VirtualMCPServer workloads.

Before: both fields were ignored. Any token from the cluster issuer with the right audience was accepted, so any pod that could request a projected token for that audience could authenticate.

After: the token's sub claim is now checked against the config:

Config Accepted callers
serviceAccount: X Only system:serviceaccount:<ns>:X. <ns> is namespace if set, otherwise the namespace of the workload that references the config.
namespace: N only Any service account in namespace N (sub starts with system:serviceaccount:N:)
Neither set ({}) No subject restriction. Audience-only behaviour, unchanged from before.
  • Rejected requests: callers that don't match get 401 invalid_token ("invalid subject"). The server logs the rejected and required subject at WARN, at most once per subject every 5 minutes.
  • Admission validation: both fields are now validated as DNS-1123 names (serviceAccount ≤ 253 chars, namespace ≤ 63 chars). A value such as system:serviceaccount:ns:sa, or one containing uppercase letters or underscores, is now rejected at admission.
  • Clusters without CRD validation ratcheting: on clusters older than Kubernetes 1.30, or where ratcheting is disabled, any update to a stored object that holds such a value (including finalizer removal) may be rejected. Fix these values before upgrading.

Common trap: the old docs said serviceAccount was "the service account to validate tokens for" and that it defaulted to the pod's own service account. Many configs therefore set it to the server's own service account. After upgrading, only that service account can call the server.

Before

apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPOIDCConfig
spec:
  type: kubernetesServiceAccount
  kubernetesServiceAccount:
    serviceAccount: mcp-server   # the server's own SA; silently ignored in v0.67.x

After

apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPOIDCConfig
spec:
  type: kubernetesServiceAccount
  kubernetesServiceAccount:
    # Option A: allow exactly one caller service account
    serviceAccount: my-agent
    namespace: agents        # optional; defaults to the referencing workload's namespace
    # Option B: allow any service account in a namespace
    # namespace: agents

Migration steps

  1. List every MCPOIDCConfig with type: kubernetesServiceAccount, and check its serviceAccount and namespace values.
  2. Change them to name the calling workload's service account, or use the namespace-only form to allow several callers. Only one service account can be named per config.
  3. Make sure both values are valid DNS-1123 names. Use the bare service account name, not the full system:serviceaccount:... subject.
  4. After upgrading, watch the server logs for token subject rejected by OIDC subject restriction warnings to find callers you missed.
  5. Leaving both fields empty restores the old audience-only behaviour. That is the weaker mode and is not recommended.

Commit: 5d2fd9a (security fix)

Migration guide: Client assertion aud must be the issuer, and nothing else

Who is affected: private_key_jwt clients of the embedded authorization server that send the token endpoint URL ({issuer}/oauth/token) as aud, an array with more than one value, or a missing or empty aud.

  • Endpoints: this applies everywhere the server authenticates clients: token, token exchange, revocation, introspection and PAR.
  • Encoding: assertions with non-canonical encoding (padded base64, or whitespace inside a segment) are refused too.
  • Client libraries: Spring Security and authlib use the token endpoint URL as aud by default, so clients built on them need reconfiguring.
  • Unchanged: SPIFFE JWT-SVID client authentication, and the aud checks on JWT-bearer and ID-JAG grant assertions.
  • ToolHive components: none of them sign client assertions for the embedded server, so none are affected.

This closes the audience injection attack described in RFC 10070 §4. The token-URL form has been documented as deprecated since v0.58.0.

Before

{ "iss": "my-client", "sub": "my-client", "aud": "https://as.example.com/oauth/token" }
{ "iss": "my-client", "sub": "my-client", "aud": ["https://as.example.com", "https://other-as.example"] }

After

{ "iss": "my-client", "sub": "my-client", "aud": "https://as.example.com" }

(A one-element array, ["https://as.example.com"], is also accepted.)

Migration steps

  1. Configure every private_key_jwt client to send the authorization server's issuer, exactly as published in discovery metadata, as the only aud value.
  2. Roll out the client change before upgrading the server. Earlier releases already accept the issuer form, so this order needs no downtime.
  3. If you share Redis across replicas, expect intermittent 401s during a rolling upgrade for any client that hasn't switched yet.
  4. Watch for WARN log lines naming the refused client_id.

PR: #7213 (closes #7039)

Migration guide: ID-JAG redemption requires client authentication, and cnf-bound assertions are refused

Who is affected:

  • Public clients that redeem ID-JAGs: any CIMD client, or a DCR client with token_endpoint_auth_method: none. These now get 401 invalid_client, with the reason client_authentication_required. The ID-JAG is not consumed, so a confidential client can still redeem it.
  • ID-JAG requests with no client credentials: these used to get invalid_request. They now get 401 invalid_client.
  • IdPs that put a cnf (RFC 7800) claim in ID-JAGs or plain RFC 7523 assertions: any value is refused with 400 invalid_grant, including null and {}. Proof of possession (DPoP or mTLS) isn't supported yet, and there is no opt-out.

ToolHive's own callers are unaffected. ToolHive never mints ID-JAGs with cnf, and vMCP's XAA strategy always authenticates as a confidential client.

Before

# DCR registration
token_endpoint_auth_method: none
# Token request
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=<ID-JAG>&client_id=my-app

After

# DCR registration
token_endpoint_auth_method: private_key_jwt   # or client_secret_basic / client_secret_post
# Token request
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=<ID-JAG>
  &client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
  &client_assertion=<JWT with aud=issuer>

Migration steps

  1. Re-register every client that redeems ID-JAGs as a confidential client (client_secret_basic, client_secret_post or private_key_jwt).
  2. Update those clients to authenticate at the token endpoint. For private_key_jwt, use the issuer as aud (see the previous guide).
  3. Configure your IdP not to include a cnf claim in the ID-JAGs or JWT-bearer assertions it issues for this server.

PR: #7214 (closes #6984)

🆕 New Features

  • Embedded authorization server issuers can now be limited to plain RFC 7523 JWT-bearer assertions or to ID-JAG assertions with the new optional per-issuer acceptedAssertionTypes field (jwt_bearer, id_jag). Leaving it out accepts both, as before. (#6678)
  • VirtualMCPServer OIDC config gains optional requiredSubject and requiredSubjectPrefix fields. The operator fills them in from the referenced MCPOIDCConfig. (5d2fd9a)
  • New subject resolver and actor policy packages lay the groundwork for delegated access. Nothing calls them yet. (#7215)

🐛 Bug Fixes

  • vMCP pods no longer flood the info log with routine cache-sync messages from readiness checks. These messages now log at debug, and sync-failure warnings are unchanged. (#7216)

🧹 Misc

  • The authorization_details parameter reader and the hook Subject builder are shared across token exchange and exchange-grant opening, with no behaviour change. (#7217)
  • JWT-bearer and ID-JAG redemption handlers now take their dependencies as a single struct, which makes future additions easier. (#7220)

📦 Dependencies

Module Version
golang.org/x/exp/jsonrpc2 digest e1094ee
actions/create-github-app-token v3.4.0
anthropics/claude-code-action v1.0.286
github/codeql-action v4.39.4
slackapi/slack-github-action v4.1.0
zizmorcore/zizmor-action v0.9.0

👋 Welcome to our newest contributor: @FOWEPJF255 🎉

Full commit log

What's Changed

New Contributors

Full Changelog: v0.67.1...v0.68.0

🔗 Full changelog: v0.67.1...v0.68.0

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

Labels

release size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant