Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where approved credentials were not sent to git credential helpers #40161

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

omus
Copy link
Member

@omus omus commented Mar 23, 2021

If a Julia user was setup to use git credential helpers then Julia was supposed to interact with the credential helpers such that if a user was prompted for credentials those credentials would be sent to the helper and stored appropriately. Due to this bug a user would be repeated asked for credentials which is annoying. Unfortunately, only if a user had used git or another tool that properly interacted with the helpers would the prompts be avoided. Essentially Julia was interacting with the helpers in a read-only mode.

This is a long standing issue that was introduced in: 8abc616fb0#diff-c023d2e7a114f660901703fc5bec91bcff1215f598f6126561a050defeced5d1R31.

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.
@omus omus added backport 1.6 Change should be backported to release-1.6 bugfix This change fixes an existing bug libgit2 The libgit2 library or the LibGit2 stdlib module labels Mar 23, 2021
@omus
Copy link
Member Author

omus commented Mar 23, 2021

I believe the reason I hadn't noticed this earlier is I use the osxkeychain credential helper. With that helper credentials are stored (pretty much) permanently so as long as I used git from the command line and filled in my credentials once Julia could work nicely in read-only mode.

@ararslan ararslan mentioned this pull request Mar 23, 2021
10 tasks
@omus
Copy link
Member Author

omus commented Mar 23, 2021

I'll add all the backport labels as it affects all of these versions and the fix is small and should apply cleanly

@omus
Copy link
Member Author

omus commented Mar 25, 2021

Single buildbot failure is from LibGit2_jll. All of the LibGit2 tests passed on that buildbot

@KristofferC KristofferC mentioned this pull request Mar 26, 2021
33 tasks
@omus
Copy link
Member Author

omus commented Mar 29, 2021

Will merge by end of day if there are no other comments

@omus omus merged commit ac50ac6 into master Mar 29, 2021
@omus omus deleted the cv/git-cred-helper-store-fix branch March 29, 2021 21:33
@StefanKarpinski
Copy link
Member

Thanks for finding and fixing that!

KristofferC pushed a commit that referenced this pull request Apr 4, 2021
…helpers (#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.

(cherry picked from commit ac50ac6)
KristofferC pushed a commit that referenced this pull request Apr 4, 2021
…helpers (#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.

(cherry picked from commit ac50ac6)
KristofferC pushed a commit that referenced this pull request Apr 4, 2021
…helpers (#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.

(cherry picked from commit ac50ac6)
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label May 4, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
…helpers (JuliaLang#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
…helpers (JuliaLang#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
…helpers (JuliaLang#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
…helpers (#40161)

Due to the bug in the `GitCredential` constructor we were never writing
credential data to the credential helper effectively making our use of
git credential helpers read-only.

(cherry picked from commit ac50ac6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants