git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] Mention that password could be a personal access token.

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Nov 2, 2022, 10:54 UTC
Message-ID
<CAPig+cQ2Tqt8rzvXsRjCsPFTkbq7B06gq2pourKXi5dKNx8oAA@mail.gmail.com>
In-Reply-To
<pull.1396.v2.git.1667385022103.gitgitgadget@gmail.com>

On Wed, Nov 2, 2022 at 6:36 AM M Hickford via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 13 quoted lines
> These days, the 'password' for a software forge might be personal access
> token or OAuth access token. These are popular, so worth clarifying that
> Git treats them just the same.
>
> Signed-off-by: M Hickford <mirth.hickford@gmail.com>
> ---
> diff --git a/Documentation/gitcredentials.txt b/Documentation/gitcredentials.txt
> @@ -21,6 +21,9 @@ in order to access a remote repository over HTTP. This manual describes
>  the mechanisms Git uses to request these credentials, as well as some
>  features to avoid inputting these credentials repeatedly.
>
> +Some repositories accept multiple passwords, including personal access
> +tokens and OAuth access tokens. Git handles all of these the same.

I easily understood Ævar's point about these types of secrets all being different names for a password, but I find the above change rather confusing when it mentions "multiple passwords". That makes me think I may need to somehow configure multiple passwords for a site (even though I know that's not what you meant).

How about a different approach, calling it a "secret" first, and then defining "secret" as different names for "password". Perhaps something like this:

    Git will sometimes need credentials from the user in order to
    perform operations; for example, it may need to ask for a username
    and secret in order to access a remote repository over HTTP.  The
    secret may be a password, passcode, personal access token, OAuth
    access token, etc.  This manual describes the mechanisms Git uses
    to request these credentials, as well as some features to avoid
    inputting these credentials repeatedly.
Previous: M Hickford via GitGitGadgetNext: Junio C Hamano
Message 9 of 15 in “Mention that password could be a personal access token.”
  1. Mention that password could be a personal access token.M Hickford via GitGitGadget, Oct 27, 2022
  2. Junio C HamanoOct 27, 2022
  3. Jeff KingOct 27, 2022
  4. Junio C HamanoOct 27, 2022
  5. M HickfordNov 1, 2022
  6. Ævar Arnfjörð BjarmasonNov 1, 2022
  7. M HickfordNov 1, 2022
  8. Mention that password could be a personal access token.M Hickford via GitGitGadget, Nov 2, 2022
  9. Eric SunshineNov 2, 2022
  10. Junio C HamanoNov 2, 2022
  11. Eric SunshineNov 2, 2022
  12. Philip OakleyNov 2, 2022
  13. M HickfordNov 8, 2022
  14. Mention that password could be a personal access token.M Hickford via GitGitGadget, Nov 8, 2022
  15. Taylor BlauNov 8, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.