-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
area/authRelated to the authenticator and keyringRelated to the authenticator and keyringarea/configRelated to configuration managementRelated to configuration managementkind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
- Poetry version: 1.6.1
- Python version: 3.10.12
- OS version and name: Ubuntu 22.04
- pyproject.toml: Irrelevant
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
Credentials configured in ~/.netrc are taking precedence over credentials configured with poetry config http-basic.repo-name. I've traced it down to the poetry.utils.Authenticator.request having the proper Authentication header for the credentials configured with poetry config, but the returned resp.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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/authRelated to the authenticator and keyringRelated to the authenticator and keyringarea/configRelated to configuration managementRelated to configuration managementkind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged