Skip to content

Conversation

@Ashutosh0x
Copy link

@Ashutosh0x Ashutosh0x commented Jan 28, 2026

This PR implements the generic credential helper API for pip, addressing #10389.

Key Changes:

  • Added --credential-helper <command> CLI option: Allows users to specify an external command for managing credentials.
  • Generic Provider Refactor: Refactored the internal authentication logic to use a common BaseCredentialProvider interface, moving away from keyring-specific implementations.
  • Implemented CredentialHelperProvider: A new provider that communicates with external tools via a simple JSON-based protocol over standard I/O (handling get, store, and erase actions).
  • Build Isolation Support: Correctly propagates the credential helper setting to isolated build environments, ensuring private dependencies can be fetched during the build process.
  • Documentation & Tests: Added comprehensive unit tests for the new provider and updated the authentication documentation with protocol details and usage examples.

"Can be used multiple times.",
)


Copy link
Member

Choose a reason for hiding this comment

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

This section of code seems unrelated to the purpose of the PR. What's going on here?

@Ashutosh0x
Copy link
Author

@pfmoore Fixed. I've removed the unrelated index strategy and mapping changes to keep this PR focused exclusively on the credential helper.

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