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

Support SSH cloning. #52

Closed
djrichar opened this issue Nov 20, 2020 · 2 comments
Closed

Support SSH cloning. #52

djrichar opened this issue Nov 20, 2020 · 2 comments

Comments

@djrichar
Copy link

When using gitlab enterprise onprem, we don't allow ssh cloning and thus the bootstrapping fails to clone the repo.
If we provide --ssh-hostname the cloning still attempts over https.

could we enhance the cloning to force ssh url in the case that ssh is provided?

@kingdonb
Copy link
Member

kingdonb commented Oct 6, 2021

Thank you for reporting this! Do you know if the issue is still present?

I don't have access to a Gitlab enterprise onprem, can you tell which sub-package you meant to address this issue towards?

There is a test git subpackage which has a provider for gitlab, github, (it could be related to that.)

eg:

gl, err = gitlab.NewClient(r.Token, gitlab.WithBaseURL(fmt.Sprintf("https://%s/api/v4", r.Host)))

@stefanprodan
Copy link
Member

For SSH only bootstrap we provide a dedicated command flux bootstrap git

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

No branches or pull requests

3 participants