.netrc
credentials take precedence over poetry config http-basic
#8443
Labels
area/auth
Related to the authenticator and keyring
area/config
Related to configuration management
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
-vvv
option) and have included the output below.Issue
Credentials configured in
~/.netrc
are taking precedence over credentials configured withpoetry config http-basic.repo-name
. I've traced it down to thepoetry.utils.Authenticator.request
having the properAuthentication
header for the credentials configured withpoetry config
, but the returnedresp.request.headers
contains the credentials configured in~/.netrc
.I think this is a bug because the credentials configured explicitly with Poetry should take precedence over catch-all credentials configured in
~/.netrc
. There is also no log line with-vvv
indicating that credentials from~./netrc
are being used.The text was updated successfully, but these errors were encountered: