Skip to content

[887] add support for netrc in remote asset downloads #892

Open
vcomito-apexai wants to merge 1 commit intobuchgr:masterfrom
vcomito-apexai:887-add-remote-asset-downloads-support-for-netrc
Open

[887] add support for netrc in remote asset downloads #892
vcomito-apexai wants to merge 1 commit intobuchgr:masterfrom
vcomito-apexai:887-add-remote-asset-downloads-support-for-netrc

Conversation

@vcomito-apexai
Copy link
Copy Markdown

@vcomito-apexai vcomito-apexai commented May 4, 2026

Addresses #887

with these changes, the bazel-remote server will use the credentials stored in the .netrc file for accessing artifacts that require username:password

Changes:

  • When --experimental_remote_asset_api is enabled, bazel-remote now loads credentials from NETRC env variable (if specified) or the process user’s ~/.netrc
  • When an HTTP request is made to a domain listed in the .netrc file, the credentials are used as HTTP Basic Auth for asset fetches.
  • .netrc files are parsed like curl would do

@vcomito-apexai vcomito-apexai force-pushed the 887-add-remote-asset-downloads-support-for-netrc branch from 127619f to e55d792 Compare May 4, 2026 14:51
@vcomito-apexai vcomito-apexai changed the title [887] add remote asset downloads support for netrc [887] add support for netrc in remote asset downloads May 4, 2026
@vcomito-apexai
Copy link
Copy Markdown
Author

I guess the gazelle & bazel mod tidy on should be run separately?

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