Repository navigation
Backlog
Labels
authenticationauthorizationneeds-triageIssue needs initial triage by a maintaineroauthrefactorsecuritytesting
Description
The first PR, the pinning tests, can start now. The rest waits on #7471, the SPIFFE delegation work, and
toolhive-core.
Why. The authorization server's own key fetching and issuer routing duplicate authn, and its acceptance rules
keep growing: grant profiles, Workload Authorization Grants, claim bindings. With authn's immutable TrustSet,
built anew and swapped, trusted issuers can also change at runtime. It also removes three copies of the audience
check.
What, in this order:
- Pinning tests, through the real handlers, asserting the wire answer (error code, reason, hint) for JWT-bearer
assertions, ID-JAG and WAG redemption, and token-exchange subject tokens:typhandling, including every spelling of the grant types;- missing
exp,iatorsub; single and multiple audiences; a wrong issuer; leeway edges; - a
resourcethat must equal an allowed audience; a multi-valuedaudon grants; - delegated-access marker tokens and tokens carrying
authorization_details, both refused as input; - issuer assertion types and claim bindings; the actor check at redemption; subject resolution;
- the grant profiles advertised in discovery.
- The rebuild. Each external issuer becomes a trust, and rules are chosen by grant profile. The
authorization-server policy stays: actor consent, delegate clients, assertion age and subject binding, replay,
andiss#subqualification. Today's behaviour thatauthnlacks needs a core option or a release note. - Runtime trusted issuers. An API that lets a host program replace the trusted issuers by building a new set and
swapping it, through authserver: export the RunConfig→Config construction so embedders can use authserver.New without reimplementing it #5773 (let host programs build the auth server config without copying code).
Done when. The pinning tests pass after the rebuild, except rows changed on purpose with a release note. A host
program can change trusted issuers without a restart.
Blocked by (the rebuild):
- One place that builds and bounds the act claim #7471;
- the SPIFFE delegation work on branch
spiffe-v2-13-delegation, not yet a PR,
which changes the same code; - in toolhive-core: authn: report an issuer that failed to build as unavailable toolhive-core#597, authn: per-trust
typrules toolhive-core#600 and authn: per-issuer key and fetch options toolhive-core#601.
Metadata
Metadata
Assignees
Labels
authenticationauthorizationneeds-triageIssue needs initial triage by a maintaineroauthrefactorsecuritytesting
Activity