From ffe1bcf341a659238a39f014b78e94cd016fa391 Mon Sep 17 00:00:00 2001 From: Oscar Sanderson Date: Thu, 26 Nov 2026 09:50:25 +0800 Subject: [PATCH] docs: list the issuer key binding note under v0.86.0 The check merged before the 0.86.0 release, so it ships in it, not in 0.87.0. Its section follows the others under v0.86.0. Co-Authored-By: Claude Opus 5.5 --- UPGRADING.md | 64 +++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index ef7c9f00..96439747 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -18,39 +18,6 @@ Most production-assurance changes only affect `Config.Assurance = AssuranceProduction`. A development-assurance setup built on `memstore` and `keys/ephemeral` needs only the steps not marked *production only*. -## v0.87.0 - -### An issuer key source bound to another issuer is refused at construction (client, resource) - -**Affects:** a client whose `Dependencies.IssuerKeys`, or a resource -server whose `JWTAccessTokens.IssuerKeys`, is a `keys.LocalIssuerKeys` -or a `keys.JWKSIssuerKeySource` built with `keys.WithIssuer` for an -issuer other than the configured one (`client.Config.Issuer`, -`JWTAccessTokens.Issuer`), compared exactly, so a trailing slash or a -different scheme or host counts as different. A source built by -`DiscoveredMetadata.IssuerKeySource` is bound to the discovered issuer -and so matches a client built from the same metadata. - -**Why:** a bound source refuses every lookup for any issuer but its -own, so such a client or verifier could never verify anything its -issuer signs: every JARM response, ID token, signed UserInfo response -or JWT access token failed. The new optional `keys.IssuerBound` -interface lets a source report its binding, and construction now -checks it. - -**What fails:** `client.New` (and `client.NewFromDiscovery`), -`resource.NewJWTAccessTokens` and `resource.NewVerifier` return an -error naming both issuers ("issuer keys is bound to issuer ..., not -..."). A deployment that hit this was already failing every -verification; it now fails at startup instead. - -**What to change:** build the key source for the issuer the client or -verifier is configured for. An unbound source, or one of your own that -doesn't implement `keys.IssuerBound`, is accepted as before; if one -source is shared between clients or verifiers of different issuers, -bind it (`keys.WithIssuer`), or build one per issuer, so none of them -can be handed another issuer's keys. - ## v0.86.0 ### A Trust Chain that expires while it resolves is refused (federation) @@ -120,6 +87,37 @@ already decided): `storage.TestBackchannelAuthenticationStoreContract` checks it once you do. +### An issuer key source bound to another issuer is refused at construction (client, resource) + +**Affects:** a client whose `Dependencies.IssuerKeys`, or a resource +server whose `JWTAccessTokens.IssuerKeys`, is a `keys.LocalIssuerKeys` +or a `keys.JWKSIssuerKeySource` built with `keys.WithIssuer` for an +issuer other than the configured one (`client.Config.Issuer`, +`JWTAccessTokens.Issuer`), compared exactly, so a trailing slash or a +different scheme or host counts as different. A source built by +`DiscoveredMetadata.IssuerKeySource` is bound to the discovered issuer +and so matches a client built from the same metadata. + +**Why:** a bound source refuses every lookup for any issuer but its +own, so such a client or verifier could never verify anything its +issuer signs: every JARM response, ID token, signed UserInfo response +or JWT access token failed. The new optional `keys.IssuerBound` +interface lets a source report its binding, and construction now +checks it. + +**What fails:** `client.New` (and `client.NewFromDiscovery`), +`resource.NewJWTAccessTokens` and `resource.NewVerifier` return an +error naming both issuers ("issuer keys is bound to issuer ..., not +..."). A deployment that hit this was already failing every +verification; it now fails at startup instead. + +**What to change:** build the key source for the issuer the client or +verifier is configured for. An unbound source, or one of your own that +doesn't implement `keys.IssuerBound`, is accepted as before; if one +source is shared between clients or verifiers of different issuers, +bind it (`keys.WithIssuer`), or build one per issuer, so none of them +can be handed another issuer's keys. + ## v0.85.0 ### Codes, refresh tokens and `auth_req_id`s are stored under digests covering the issuer (server, storage)