Skip to content

Add inbound OIDC/JWT bearer-token validation (authn) to core #222

Closed

Description

@jhrozek

A second consumer needs the inbound token verification ToolHive already has, and hand-rolling it is the wrong answer for the specific reason that the hardening is where the bugs live.

Work exists on the unmerged authn branch (6 commits above the feat/networking port):

  • authn/ — authn.go, validate.go, discovery.go, jwks.go, keyprovider.go, errors.go, with tests
  • inbound OIDC/JWT bearer validation, OIDC discovery, JWKS retrieval, and a KeyProvider seam for embedded issuers
  • hardening already on the branch: default-deny SSRF on discovery and JWKS fetches, an RSA strength floor, a JWKS staleness bound, a typ gate, credentials no longer leaking into logs, plus a shutdown hang and an iat: 0 fix
  • issuer, audience and lifetime policy relaxed for ToolHive parity

Depends on #221, the networking port — the branch is stacked on it.

Scope note: this is inbound validation only. Token-exchange client behaviour and SVID handling are out of scope and belong elsewhere.

Done means merged and released, same as #221. Downstream consumers pin by version.

Activity

  1. added
    needs-triage
    on Aug 10, 2026
  2. self-assigned this
    on Aug 10, 2026
  3. removed
    needs-triage
    on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions