Skip to content

Conversation

@miketheman
Copy link
Member

@miketheman miketheman commented Oct 14, 2025

Currently, any custom issuer keys would be stored alongside the "parent" keys for the service, intermingling and making it less clear which keys belong to which service.

Store with the issuer_url instead, as redis is fine with keys using special characters, and thus allow storage and lookups for a given issuer.

No migration path necessary, as an empty cache will trigger a fresh lookup and storage the first time.

Resolves #18845

Currently, any custom issuer keys would be stored alongside the "parent"
keys for the service, intermingling and making it less clear which keys
belong to which service.

Store with the `issuer_url` instead, as redis is fine with keys using
special characters, and thus allow storage and lookups for a given
issuer.

No migration path necessary, as an empty cache will trigger a fresh
lookup and storage the first time.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman requested a review from a team as a code owner October 14, 2025 15:03
Copy link
Member

@ewdurbin ewdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no test code change reeks of relentless mocking and stubbing.

   assert service.store_jwt_identifier(pretend.stub(), pretend.stub()) is None

😂

@miketheman miketheman merged commit 310954b into pypi:main Oct 14, 2025
21 checks passed
@miketheman miketheman deleted the miketheman/18845-change-oidc-cache-key branch October 14, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store JWKS keys based on Issuer URL instead of publisher name

2 participants