Skip to content

Configuring credentials for private repositories #8959

@AdrianSchneble

Description

@AdrianSchneble
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

The current documentation on authentication for private repositories (web link, source code) states that "Depending on your system configuration, credentials might be saved in your command line history".

This is an important disclaimer, as you should generally never type credentials into the terminal prompt itself. However, the only suggested solution is prefixing your command with a space, which does not work for me in the shells I tested (on both Windows and Unix).

There is, however, a much simpler way: just run poetry config http-basic.foo <username>, i.e. don't enter the password, and you will be prompted for it with an "invisible" password prompt, which does not show up in the shell history, nor anywhere else as far as I understand (tested on Windows powershell with poetry version 1.7.1).

Should be a pretty trivial fix if you're set up for contributing to this repository, but I don't really want to go through the trouble to set that up - hence this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsDocumentation issues/improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions