Message ID | pull.1798.git.1726790423.gitgitgadget@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | maintenance: configure credentials to be silent | expand |
"Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes: > Add a new configuration value, 'credential.interactive', to specify to the > credential helper that it should not prompt for user interaction. This > option has been respected by Git Credential Manager since 2020 [1], so this > is now presenting it as an official Git config value. So, the other helpers are also supposed to check for the variable and fail when it has to go interactive now. > These changes were first merged into the microsoft/git fork in August 2023 > [2] but were not upstreamed immediately. The change has been a positive one > for users of that fork, as they no longer get pop-ups and they also are not > getting maintenance.lock file blocks when the prefetch task waits for > credentials. This has become even more important recently as credential > lifetimes have been restricted significantly, leading to a higher likelihood > that this will happen during a background prefetch. Sounds good.
On 9/20/24 5:56 PM, Junio C Hamano wrote: > "Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes: > >> Add a new configuration value, 'credential.interactive', to specify to the >> credential helper that it should not prompt for user interaction. This >> option has been respected by Git Credential Manager since 2020 [1], so this >> is now presenting it as an official Git config value. > > So, the other helpers are also supposed to check for the variable > and fail when it has to go interactive now. I would hold off from saying "supposed to" but Git is definitely hinting towards that behavior. Perhaps I'm just hung up on the idea that we are not adding a new wrinkle to the "contract" but recommending a good thing that was previously not part of the interaction. Thanks, -Stolee
Derrick Stolee <stolee@gmail.com> writes: > On 9/20/24 5:56 PM, Junio C Hamano wrote: >> "Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes: >> >>> Add a new configuration value, 'credential.interactive', to specify to the >>> credential helper that it should not prompt for user interaction. This >>> option has been respected by Git Credential Manager since 2020 [1], so this >>> is now presenting it as an official Git config value. >> So, the other helpers are also supposed to check for the variable >> and fail when it has to go interactive now. > > I would hold off from saying "supposed to" but Git is definitely hinting > towards that behavior. I would too. I didn't mean "they were behaving correctly, but we changed the rules from under them and they need to be fixed". With or without your patch, they would try to go interactive and make the process get stuck, until they start to check if they should refrain from going interactive. With your patch, they have a way to do that check in a documented way. > Perhaps I'm just hung up on the idea that we are not adding a new wrinkle > to the "contract" but recommending a good thing that was previously not part > of the interaction. > > Thanks, > -Stolee