You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ποΈ Load Dagger module from private Github repository via PAT auth.Β #7990
We tried to load Dagger module from our private Github repository but failed. We'd like to know whether this capability supported now? Or is there any plan to support this in the future? By the way, our company only allows PAT auth to do this.
Reacted by Bradford Wagner, Jonathan Sokolowski, Mikhail Pakhomov and Joaquin
changed the title [-]ποΈ Load Dagger module from private Github repository[/-][+]ποΈ Load Dagger module from private Github repository via PAT auth.[/+]on Jul 24, 2024
I am looking for the same feature. @grouville#7708 seems only for ssh auth, any plans for https+PAT token?
Hello everyone π
I am starting to implement it. Would mounting the .netrc from the host be a nice solution for your use-case ? cc @nipuna-perera
There is also a path to supporting git credential manager but is going to be a bit more work. Would the netrc file be a nice stopgap ? I am trying to estimate all the use-cases / potential DX that could be occuring
I am looking for the same feature. @grouville#7708 seems only for ssh auth, any plans for https+PAT token?
Hello everyone π
I am starting to implement it. Would mounting the .netrc from the host be a nice solution for your use-case ? cc @nipuna-perera
There is also a path to supporting git credential manager but is going to be a bit more work. Would the netrc file be a nice stopgap ? I am trying to estimate all the use-cases / potential DX that could be occuring
I have not used .netrc for git auth. When you say mount, do you mean an automatic mount of the global netrc? If so, is there a chance that could mess with other local settings? I am afraid it will add additional work for consumers. I would love to have support for GCM as that's one of the ways we get everyone to set up for git.
One example of a very smooth integration I've seen so far is how devcontainers handle transferring git auth into the container if you want to take inspiration.
I am out on vacation this week so apologies in advance if I'm not responding timely. But I am very excited this is finally being worked on!
One example of a very smooth integration I've seen so far is how devcontainers handle transferring git auth into the container if you want to take inspiration.
Thank you for the feedback π I'll definitely take a look. That's exactly what I needed π
In my case, it's private azure devops repos. So for many folks they'd get an oauth SSO from microsoft and that would do it. Ideally no PAT input required, so it uses just the credential provider and can allow the oauth browser to open if a user is running it directly too. Just mentioning this for some context as you pointed me to this from discord message link
In my case, it's private azure devops repos. So for many folks they'd get an oauth SSO from microsoft and that would do it. Ideally no PAT input required, so it uses just the credential provider and can allow the oauth browser to open if a user is running it directly too. Just mentioning this for some context as you pointed me to this from discord message link
Hey @sheldonhull, thanks for the feedback π Ok, so an oauth SSO from microsoft. This should be supported when relying on the git-credential-manager standard. Do you all authenticate using SSO when using git ? Or at least, does it trigger the auth step when cloning ?
In my case, it's private azure devops repos. So for many folks they'd get an oauth SSO from microsoft and that would do it. Ideally no PAT input required, so it uses just the credential provider and can allow the oauth browser to open if a user is running it directly too. Just mentioning this for some context as you pointed me to this from discord message link
Hey @sheldonhull, thanks for the feedback π Ok, so an oauth SSO from microsoft. This should be supported when relying on the git-credential-manager standard. Do you all authenticate using SSO when using git ? Or at least, does it trigger the auth step when cloning ?
Trying to do this without using hardcoded name:token in the string.
dagger functions -m dev.azure.com/MYORG/MYREPO/_git/daggerverse.git/tf-yolo@main
β connect 0.4s
β initialize 0.5s
! failed to get configured module: failed to get module ref kind: input: moduleSource resolve: failed to resolve git src to commit: failed to load cache key: failed to fetch remote https://dev.azure.com/MYORG/MYREPO/_git/daggerverse.git: git error: exit status 128
β resolving module ref 0.5s
! failed to get configured module: failed to get module ref kind: input: moduleSource resolve: failed to resolve git src to commit: failed to load cache key: failed to fetch remote https://dev.azure.com/MYORG/MYREPO/_git/daggerverse.git: git error: exit status 128
β moduleSource(refString: "dev.azure.com/MYORG/MYREPO/_git/daggerverse.git/tf-yolo@main"): ModuleSource! 0.4s
! failed to resolve git src to commit: failed to load cache key: failed to fetch remote https://dev.azure.com/MYORG/MYREPO/_git/daggerverse.git: git error: exit status 128
β cache request: git://dev.azure.com/MYORG/MYREPO/_git/daggerverse.git#main 0.4s
! failed to fetch remote https://dev.azure.com/MYORG/MYREPO/_git/daggerverse.git: git error: exit status 128
Error: failed to get configured module: failed to get module ref kind: input: moduleSource resolve: failed to resolve git src to commit: failed to load cache key: failed to fetch remote https://dev.azure.com/MYORG/MYREPO/_git/daggerverse.git: git error: exit status 128
stderr:
fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
So i've tried variations. The credential provider does support an oauth workflow so if that's possible let me know
Activity
grouville commentedon Jul 19, 2024
Hey π It's coming here: #7708
[-]Load Dagger module from private Github repositoryποΈ <title>[/-][+]ποΈ Load Dagger module from private Github repository[/+]Jim-ent commentedon Jul 22, 2024
I am looking for the same feature. @grouville #7708 seems only for ssh auth, any plans for https+PAT token?
[-]ποΈ Load Dagger module from private Github repository[/-][+]ποΈ Load Dagger module from private Github repository via PAT auth.[/+]grouville commentedon Aug 4, 2024
Hello everyone π
I am starting to implement it. Would mounting the
.netrcfrom the host be a nice solution for your use-case ? cc @nipuna-pereraThere is also a path to supporting git credential manager but is going to be a bit more work. Would the netrc file be a nice stopgap ? I am trying to estimate all the use-cases / potential DX that could be occuring
nipuna-perera commentedon Aug 4, 2024
I have not used .netrc for git auth. When you say mount, do you mean an automatic mount of the global netrc? If so, is there a chance that could mess with other local settings? I am afraid it will add additional work for consumers. I would love to have support for GCM as that's one of the ways we get everyone to set up for git.
One example of a very smooth integration I've seen so far is how devcontainers handle transferring git auth into the container if you want to take inspiration.
I am out on vacation this week so apologies in advance if I'm not responding timely. But I am very excited this is finally being worked on!
grouville commentedon Aug 4, 2024
Thank you for the feedback π I'll definitely take a look. That's exactly what I needed π
Jim-ent commentedon Aug 9, 2024
I prefer credential manager as well since that's what I saw most path developers in my group applied.
cndoit18 commentedon Sep 13, 2024
Hi, any updates?
grouville commentedon Sep 19, 2024
Hi @cndoit18,
I am currently on it. I had to fix a few bugs regarding the SSH support and now I am free to allocate on my time on this π
sheldonhull commentedon Sep 24, 2024
In my case, it's private azure devops repos. So for many folks they'd get an oauth SSO from microsoft and that would do it. Ideally no PAT input required, so it uses just the credential provider and can allow the oauth browser to open if a user is running it directly too. Just mentioning this for some context as you pointed me to this from discord message link
grouville commentedon Sep 26, 2024
Hey @sheldonhull, thanks for the feedback π Ok, so an oauth SSO from microsoft. This should be supported when relying on the git-credential-manager standard. Do you all authenticate using SSO when using git ? Or at least, does it trigger the auth step when cloning ?
sheldonhull commentedon Sep 27, 2024
Trying to do this without using hardcoded name:token in the string.
https://learn.microsoft.com/en-us/azure/devops/repos/git/set-up-credential-managers?view=azure-devops
So i've tried variations. The credential provider does support an oauth workflow so if that's possible let me know
sheldonhull commentedon Oct 15, 2024
following up. Is this still in the works @grouville? cheers
grouville commentedon Oct 16, 2024
Hello @sheldonhull,
Thanks for the ping π I have a working prototype now. I am slicing everything in a few PRs that will come along this week πΌ
sheldonhull commentedon Oct 25, 2024
Following up. I can't use dagger to try more work without private http support so looking forward to seeing it this solve some issues for me.