bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.09k stars 4.04k forks source link

http_archive and http_file should be wired to support --google_default_credentials #23951

Open udaya2899 opened 1 day ago

udaya2899 commented 1 day ago

Description of the feature request:

Currently --google_default_credentials i.e. ADC supports only authenticating for remote cache and RBE. It doesn't use it to support downloading http_archive or http_file repositories if they are stored in a GCS bucket.

Feature request is for http_archive to also use the --google_default_credentials option to authenticate.

Which category does this issue belong to?

No response

What underlying problem are you trying to solve with this feature?

Support an existing way of authentication across other workflows.

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

udaya2899 commented 1 day ago

Raising this issue per conversation with @tjgq