Skip to content

Conversation

miketheman
Copy link
Member

@miketheman miketheman commented Oct 16, 2025

When receiving an inbound JWT, handle cases where the inbound issuer is not one of the "standard" service URLs, such as in the case of GitLab Self-Managed or GitHub Enterprise Server instances.

Refs: #18865

Calling PendingGitLabPublisher.reify() with a custom issuer_url has not been implemented yet.

When receiving an inbound JWT, handle cases where the inbound issuer is
not one of the "standard" service URLs, such as in the case of GitLab
Self-Managed or GitHub Enterprise Server instances.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman requested a review from a team as a code owner October 16, 2025 20:51

# Associate the given issuer claim with Warehouse's OIDCPublisherService.
# First, try the standard issuers
service_name = OIDC_ISSUER_SERVICE_NAMES.get(unverified_issuer)
Copy link
Member Author

Choose a reason for hiding this comment

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

If nobody ever uses a custom issuer, there's no lookup penalty, since it'll match the static dictionary value. This should be the case for most lookups.

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.

2 participants