Hey, I need some help accessing our private Bitbucket repositories.
I have tried authentication with both SSH and HTTPS, but neither was successful.
With SSH authentication, I think we are hitting an edge case since our Bitbucket SSH service is available on a non-standard port (7999).
SSH_AUTH_SOCK is correctly configured (I can fetch the repository within the Dagger engine container), but when Dagger tries to fetch it, the port is removed. Based on the Dagger code, I think this conflicts with how the GitHub user is currently handled—the port is filtered out as a username from the URL before fetching the repository (ssh://git@bitbucket.company.com:7999/scm/project/repo → ssh://git@bitbucket.company.com).
Is there any workaround to use the port? I tried configuring port in ssh/config without success.
With HTTPS authentication, I just can't figure out how to configure it in the Dagger engine container. I tried manually configuring .gitconfig and git-credentials, but it seems that the credentials are not being used. Based on the logs, the username is taken from /etc/gitconfig, but authentication fails regardless of how git-credentials is configured.
Is there any documentation on how to set up HTTPS authentication when the Dagger engine is manually started as a container?