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

Fwd: [Bug] `credential fill` prints incomplete bearer credential

From
M Hickford <mirth.hickford@gmail.com>
Date
Dec 18, 2024, 20:42 UTC
Message-ID
<CAGJzqsnAO_vDSYOC7ZbYUQHJ3fT10JuQ2RrC2cvY4hcPMnZ=bg@mail.gmail.com>
In-Reply-To
<CAGJzqs=ksKqY2M8Px3uv6ut=MBwkmpPUqp3xVzVpNMJ0YBrBww@mail.gmail.com>
Hi. Is this a bug in git version 2.47.1? Or am I using it incorrectly?
# erase existing example.com credentials
printf "host=example.com\nprotocol=https\n" | git -c
credential.helper= -c credential.helper=cache credential reject
# store bearer token with expiry in far future in credential-cache
printf "host=example.com\nprotocol=https\nauthtype=bearer\ncredential=letmein\npassword_expiry_utc=2147483640\n"
| git credential-cache store
# try to retrieve credential
printf "host=example.com\nprotocol=https\n" | git -c
credential.helper= -c credential.helper=cache credential fill
Expected output (complete credential):

protocol=https host=example.com authtype=bearer credential=letmein password_expiry_utc=2147483640

Actual output (incomplete credential, no prompt for username or password):

protocol=https host=example.com password_expiry_utc=2147483640

Next: brian m. carlson
Message 1 of 6 in “Fwd: [Bug] `credential fill` prints incomplete bearer credential”
  1. M HickfordDec 18, 2024
  2. brian m. carlsonDec 19, 2024
  3. Junio C HamanoDec 19, 2024
  4. M HickfordDec 19, 2024
  5. M HickfordDec 19, 2024
  6. M HickfordDec 21, 2024

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.