Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sourcing repository credentials from the keyring #124

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atheriel
Copy link

This commit updates both the metadata and package caches to support downloading packages and package indexes from repositories that require HTTP basic authentication to access.

Initial support for these authenticated repositories is very narrow: the repository URL must contain a username, no password, and have an entry in the system keyring. We also don't make any attempt to prompt users for credentials when requests fail.

Unit tests are included for the new authentication header helpers, but there are currently no tests of end-to-end workflows with an authenticated repository, and I may have missed something.

Part of r-lib/pak#729.

@atheriel
Copy link
Author

I don't really have a great way to test that this is actually working yet, hence this remaining in draft.

This commit updates both the metadata and package caches to support
downloading packages and package indexes from repositories that require
HTTP basic authentication to access.

Initial support for these authenticated repositories is very narrow: the
repository URL must contain a username, no password, and have an entry
in the system keyring. We also don't make any attempt to prompt users
for credentials when requests fail.

Unit tests are included for the new authentication header helpers, but
there are currently no tests of end-to-end workflows with an
authenticated repository, and I may have missed something.

Part of r-lib/pak#729.

Signed-off-by: Aaron Jacobs <[email protected]>
@atheriel atheriel force-pushed the keyring-auth-support branch from 0bbe021 to 9b23bdd Compare January 16, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant