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

Re: [PATCH] Documentation: clarify that cache forgets credentials if the system restarts

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 21, 2022, 22:09 UTC
Message-ID
<Y6OEFQs2OphhhuhB@tapette.crustytoothpaste.net>
In-Reply-To
<pull.1447.git.1671610994375.gitgitgadget@gmail.com>
On 2022-12-21 at 08:23:14, M Hickford via GitGitGadget wrote:
Show 32 quoted lines
> From: M Hickford <mirth.hickford@gmail.com>
> 
> Make it obvious to readers unfamiliar with Unix sockets.
> 
> Signed-off-by: M Hickford <mirth.hickford@gmail.com>
> ---
>     Documentation: clarify that cache forgets credentials if the system
>     restarts
>     
>     Make it obvious to readers unfamiliar with Unix sockets.
>     
>     Signed-off-by: M Hickford mirth.hickford@gmail.com
> 
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1447%2Fhickford%2Fpatch-2-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1447/hickford/patch-2-v1
> Pull-Request: https://github.com/gitgitgadget/git/pull/1447
> 
>  Documentation/git-credential-cache.txt | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/git-credential-cache.txt b/Documentation/git-credential-cache.txt
> index 432e159d952..83fb4d4c4dc 100644
> --- a/Documentation/git-credential-cache.txt
> +++ b/Documentation/git-credential-cache.txt
> @@ -16,7 +16,8 @@ DESCRIPTION
>  
>  This command caches credentials in memory for use by future Git
>  programs. The stored credentials never touch the disk, and are forgotten
> -after a configurable timeout.  The cache is accessible over a Unix
> +after a configurable timeout.  Credentials are forgotten sooner if you
> +log out or the system restarts.  The cache is accessible over a Unix
>  domain socket, restricted to the current user by filesystem permissions.

I don't think it's accurate to say that the credentials are forgotten sooner if you log out. That may be the case on Windows, or it may be the case if you or your distro have configured systemd to gratuitously murder all your local processes when your session exits[0], but it hasn't traditionally been the case on Unix that processes exit when your session or shell exits. For example, I don't believe that the statement is accurate on Debian, Ubuntu, or the BSDs by default, which constitute a substantial number of deployed Unix systems.

[0] Such as with KillUserProcesses=yes.
-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: M HickfordNext: M Hickford via GitGitGadget
Message 5 of 9 in “Documentation: clarify that cache forgets credentials if the system restarts”
  1. Documentation: clarify that cache forgets credentials if the system restartsM Hickford via GitGitGadget, Dec 21, 2022
  2. Junio C HamanoDec 21, 2022
  3. Jeff KingDec 22, 2022
  4. Documentation: clarify that cache forgets credentials if the system restartsM Hickford, Jan 28, 2023
  5. brian m. carlsonDec 21, 2022
  6. Documentation: clarify that cache forgets credentials if the system restartsM Hickford via GitGitGadget, Jan 28, 2023
  7. Documentation: clarify that cache forgets credentials if the system restartsM Hickford via GitGitGadget, Jan 28, 2023
  8. Jeff KingJan 29, 2023
  9. Junio C HamanoJan 29, 2023

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.