Avoid plaintext warning when .netrc doesn't contain uri of HTTP cache
See original GitHub issueDescription of the problem / feature request:
We have a .netrc that does not contain the uri of our HTTP cache. The .netrc only contains credential for other purposes.
We use a HTTP cache without authentication. We are not using HTTPS for performance reasons.
We don’t want the new warning printed by bazel: “Username and password from .netrc is transmitted in plaintext. Please consider using an HTTPS endpoint.”
The new warning was introduced:
commit ae28ab7d911460839c1db65c0c325717fdeaa13b Date: Sun Oct 11 21:05:27 2020 -0700
here:
Feature requests: what underlying problem are you trying to solve with this feature?
Avoid the warning message when the .netrc does not contain the uri for the remote http cache.
Bugs: what’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Enable --remote_cache with HTTP (not HTTPS) Have .netrc with other credentials, but not for the remote cache uri
What’s the output of bazel info release
?
3.7.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Create a netrc file: /Documentation - LabKey Support
A netrc file (.netrc or _netrc) is used to hold credentials necessary to login to your LabKey Server and authorize access to data...
Read more >Git - How to use .netrc file on Windows to save user and ...
9+ (January 2012): This answer from Mark Longair details the credential cache mechanism which also allows you to not store your password in...
Read more >Permanently authenticating with Git repositories
This page describes two methods for permanently authenticating with Git repositories so that you can avoid typing your username and password ...
Read more >curl.1 the man page
curl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer resume and...
Read more >aria2c(1) — aria2 1.36.0 documentation
If true is given, aria2 just checks whether the remote file is available and doesn't download data. This option has effect on HTTP/FTP...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah I just ran into this when attempting to upgrade the bazel version. This prints a scary warning message which is wrong since I don’t have any creds to the remote cache in my
.netrc
: if you use an remote cache withhttp
and have a.netrc
that has no entry for the remote cache url (or even an empty.netrc
file) this warning is printed.I would have figured out where this warning was coming from faster if the warning also printed the url it is complaining about. I originally thought it was coming from some
http_archive
dependency in myWORKSPACE
.@coeuvre Is there any flag that can disable this warning? This is going to cause a lot of users to worry when they see it.
@coeuvre We did use 4.0 but possibly we didn’t see this warning due to the fact that we were using a gRPC cache until some time ago. I guess we switched to an HTTP cache right at the same time we switched to 4.1.