-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
What's the problem this feature will solve?
Some OIDC providers may not match the formats currently available, and some of the supported ones (e.g. GitHub) allow customization of the subject, which breaks publishing.
Describe the solution you'd like
A Trusted Publisher configuration that allows us to provide the issuer URL and subject identifier directly. That way, any provider is able to be used to obtain a publishing token, but configuration still requires interactive logon.
Additional context
GitHub organizations are able to override the OIDC configuration for all their repositories, which means some umbrella orgs may choose a more secure configuration (e.g. immutable IDs instead of repo names) and enforce it. This situation can usually be overridden, but it's likely often easier (and potentially safer) to update PyPI to accept the new subject rather than reverting the OIDC config.