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 for SSH based private repositories #30

Open
vglafirov opened this issue Dec 22, 2021 · 2 comments
Open

Support for SSH based private repositories #30

vglafirov opened this issue Dec 22, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@vglafirov
Copy link

Currently it's possible to specify .git-credentials file for cloning private repositories using HTTPS but not SSH. Also if module contain references to another modules using SSH URL terraform failed to initialise workspace.

What problem are you facing?

I managed to clone terraform module using .git-credentials, but provider failed to initialise workspace because module contains references to another private repos using ssh based url

How could Crossplane help solve your problem?

Please make git configuration more flexible. Please add support for specifying ssh keys for terraform.

@vglafirov vglafirov added the enhancement New feature or request label Dec 22, 2021
@vglafirov vglafirov mentioned this issue Dec 24, 2021
2 tasks
@vglafirov vglafirov mentioned this issue Jul 19, 2022
2 tasks
@davidwincent
Copy link

Has anyone successfully used private github repositories with provider-terraform?

github seems to have dropped support for password authentication 2021?

git clone https://github.com/***/argocd-apps.git
Cloning into 'argocd-apps'...
Username for 'https://github.com': ***
Password for 'https://***@github.com':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/***/argocd-apps.git/'

See https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls

@ytsarev
Copy link
Collaborator

ytsarev commented Jun 6, 2023

@davidwincent we recommend using personal access tokens https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#using-a-personal-access-token-on-the-command-line that is totally supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants