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

Don't override authentication callbacks in libgit2 clone #319

Merged
merged 15 commits into from
Sep 20, 2023
Merged

Conversation

Keno
Copy link
Contributor

@Keno Keno commented Sep 13, 2023

Use the supported callbacks interface rather than trying to re-do the low level interface. As reported in JuliaPackaging/BinaryBuilder.jl#1287, we currently try to error when attempting to clone a repository over ssh (either directly or via the insteadOf git setting), because we accidentally override the base callback to provide ssh credentials.

Fixes JuliaPackaging/BinaryBuilder.jl#1287

Keno added 15 commits September 13, 2023 09:52
Use the supported callbacks interface rather than trying to re-do
the low level interface. As reported in JuliaPackaging/BinaryBuilder.jl#1287,
we currently try to error when attempting to clone a repository
over ssh (either directly or via the insteadOf git setting),
because we accidentally override the base callback to provide
ssh credentials.

Fixes JuliaPackaging/BinaryBuilder.jl#1287
- Setup a temporary SSH key, so that cloning from SSH works
- Don't use deprecated syntax for progress bar
- Make sure to actually test the progress bar case on CI,
  which is what was broken before.
Env vars are apparently not shared, so it can't find the agent
We ship GitHub's keys in julia, but the keys that were current
when older julia versions were released have since been rotated
by GitHub, so we need to keyscan (if we were relying on this for
MITM security, not just testing, we'd want to ship known keys,
but here it doesn't matter if the remote is actually github or not).
@Keno Keno merged commit 18e421f into master Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git error: authentication required but no callback set
1 participant