Hey, next step in getting Dagger running alongside our Gitlab runners. Used glab for auth on the instance that the Dagger engine is running on. If I exec into that instance and run sudo glab auth status I get:
gitlab.com
✓ Logged in to gitlab.com as <name> (/root/.config/glab-cli/config.yml)
✓ Git operations for gitlab.com configured to use https protocol.
✓ API calls for gitlab.com are made over https protocol.
✓ REST API Endpoint: https://gitlab.com/api/v4/
✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
✓ Token: **************************
I can double-check that with sudo glab api user which returns a json object of my user as expected.
Dagger however doesn't seem to have access to that authentication:
▼ detect module: https://gitlab.com/path/to/module.git 1.1s ERROR
! failed to resolve git src: failed to resolve git src: select: cannot resolve "https://gitlab.com/path/to/module.git": git error: exit status 128
stderr:
remote: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was
provided, it was either incorrect, expired, or improperly scoped. See https://gitlab.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/path/to/module.git/'
These docs (https://docs.dagger.io/api/remote-repositories/#https-authentication) are a little slim, but I think I've followed them as intended?
Note: I'm on an EC2 using Session Manager (which is why I'm using sudo). The Dagger Engine (and all setup steps beforehand) are run as part of userdata as root, and do not use sudo. Dagger is running on the instance and accessible: