Draft: Add support for git credentials
What does this MR do?
This commit add a new internal git-credential command to the gitlab-runner and gitlab-runner-helper binaries and a new feature flag FF_USE_GIT_CREDENTIALS.
When enabled, repository credentials will be provided by using the git credential mechanism.
Why was this MR needed?
This MR allows cloning of repositories hosted on a Kerberized GitLab instance without a dedicated SPNEGO port.
What's the best way to test this MR?
-
Enable Kerberos on a GitLab instance, no need for a functioning Kerberos configuration, only setting
kerberos.enabled = trueshould be enough. Do not enablekerberos.use_dedicated_port. - Enable the
FF_USE_GIT_CREDENTIALSfeature flag - Start a pipeline on any repository
What are the relevant issue numbers?
Fixes: gitlab#49
Edited by Marin Hannache