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

How to authenticate with repository_ctx.download? How does auth work? #23481

Open
grepwood opened this issue Aug 30, 2024 · 2 comments
Open

How to authenticate with repository_ctx.download? How does auth work? #23481

grepwood opened this issue Aug 30, 2024 · 2 comments
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Documentation Documentation improvements that cannot be directly linked to other team labels team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: documentation (cleanup)

Comments

@grepwood
Copy link

grepwood commented Aug 30, 2024

Crossposting from #7469

For the last 3 years people have been wanting to know how to achieve this. The only person who did is sitting duck and not telling anybody.

We owe this state of affair to the lackluster documentation: https://bazel.build/rules/lib/builtins/repository_ctx

auth 	[dict](https://bazel.build/rules/lib/core/dict.html); default is {}
An optional dict specifying authentication information for some of the URLs.

As such I would like to ask on behalf of everyone who asked so far, to please update the documentation in that regard.

@iancha1992 iancha1992 added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: documentation (cleanup) team-Documentation Documentation improvements that cannot be directly linked to other team labels untriaged labels Aug 30, 2024
@peakschris
Copy link

@grepwood I believe you can use a credential helper #18429

@peakschris
Copy link

Here is the credential helpers spec, including the api for between bazel and the helper: https://github.com/bazelbuild/proposals/blob/main/designs/2022-06-07-bazel-credential-helpers.md

@meteorcloudy meteorcloudy added P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Documentation Documentation improvements that cannot be directly linked to other team labels team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: documentation (cleanup)
Projects
None yet
Development

No branches or pull requests

4 participants