GithubHelp home page GithubHelp logo

`credential.helper=/usr/local/share/gcm-core/git-credential-manager` makes GUI windows pop up. How many windows pop up may have confusing aspects. about carthage HOT 3 OPEN

alu0100207385 avatar alu0100207385 commented on June 10, 2024
`credential.helper=/usr/local/share/gcm-core/git-credential-manager` makes GUI windows pop up. How many windows pop up may have confusing aspects.

from carthage.

Comments (3)

jdhealy avatar jdhealy commented on June 10, 2024

Might be that some piece of software installed a 'git credential helper'.

Could you run git config --show-origin --list and strings "$(which git)" | grep com.apple.dt.xcode_select.tool-shim | wc -c and post here with any relevant lines?

(Thanks for the screen recording demo, it was helpful (well, we'll see how this goes) 😄☀️)

from carthage.

alu0100207385 avatar alu0100207385 commented on June 10, 2024

Sure. Thanks for answering.

git config --show-origin --list

file:/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig credential.helper=osxkeychain
file:/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig init.defaultbranch=main
file:/Users/XXXXXXXXX/.gitconfig credential.helper=
file:/Users/XXXXXXXXX/.gitconfig credential.helper=/usr/local/share/gcm-core/git-credential-manager
file:/Users/XXXXXXXXX/.gitconfig credential.https://dev.azure.com.usehttppath=true
file:/Users/XXXXXXXXX/.gitconfig user.email=[email protected]
file:/Users/XXXXXXXXX/.gitconfig user.name=XXXXXXXXX
file:/Users/XXXXXXXXX/.gitconfig core.excludesfile=/Users/XXXXXXXXX/.gitignore_global
file:/Users/XXXXXXXXX/.gitconfig difftool.sourcetree.cmd=opendiff "$LOCAL" "$REMOTE"
file:/Users/XXXXXXXXX/.gitconfig difftool.sourcetree.path=
file:/Users/XXXXXXXXX/.gitconfig mergetool.sourcetree.cmd=/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
file:/Users/XXXXXXXXX/.gitconfig mergetool.sourcetree.trustexitcode=true

strings "$(which git)" | grep com.apple.dt.xcode_select.tool-shim | wc -c

53

from carthage.

jdhealy avatar jdhealy commented on June 10, 2024

From file:/Users/XXXXXXXXX/.gitconfig credential.helper=/usr/local/share/gcm-core/git-credential-manager – I found git-ecosystem/git-credential-manager#336 which (from the video, thanks!) seems to match what’s seen. ☀️

git-credential-manager seems to exist (this is my read) to enforce multi-factor authentication.

You can view this as dissimilar to using Carthage with --use-ssh. ⋯⋯⋯ Carthage with --use-ssh (or git using ssh to credential for a repo) is a solution that is 'somewhat' single factor (but many people view it as good enough for their security purposes.)

So, solutions that enforce multi-factor authentication often have an ‘upfront cost’ — where, if no prior checkout/credentialing of that repo happened before, then →→→ first time: user takes action • second time: no action required as the token needed is pulled from secure storage.

We’ll assume that (1) the secure storage is able to be accessed correctly on your machine and (2) the repo host servers are not constantly invalidating the tokens.

✨ If (1) and (2) are true, then one would experience an 'upfront wave' of those windows popping up and requiring action…

✨ …but there's no technical reason (seemingly) why ’getting through the upfront wave’ is unviable.

@alu0100207385 — was it a situation for you where it ‘seemed’ the ‘upfront wave’ would never end? Or are we in a much buggier situation where the ‘upfront wave’ truly never ends?

⋯⋯⋯ Perhaps a good debugging step is looking repeatedly at a ps -axww | grep git-credential-manager each time the window opens and seeing if particular URLs ‘enter the wave’ more than once?

⋯⋯⋯ Also, worth checking for any of these environment variables that would make (1) and (2) not hold true.

Alternatively, some view the multi-step authentication as not necessary, and ssh keys and Carthage’s --use-ssh is fine — but one’s workplace may mandate differently (so I can’t really advise.) ⋯⋯⋯ I will note that Carthage’s --use-ssh isn’t often the path taken for CI services, but that's a different story.

from carthage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.