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 git cloning #700

Open
sgaist opened this issue Aug 22, 2024 · 0 comments · May be fixed by #701
Open

Support for ssh git cloning #700

sgaist opened this issue Aug 22, 2024 · 0 comments · May be fixed by #701

Comments

@sgaist
Copy link
Collaborator

sgaist commented Aug 22, 2024

One of the protocol git offers uses ssh so that one can clone repositories using an ssh key to connect to the remote service.

This has one requirement: interactively accept the connection to the remote server on first connection (as must be done when using the ssh cli) or if the server keys are changed.

This operation is not possible when in an init container since there's no users to accept the connection.

There are several options in order to use the protocol anyway:

  • Deactivate the remote validation (which is in fact not an option for security reasons)
  • Provide a known_hosts file to the container with a set of validated known hosts.

The latter can be achieved using a ConfigMap. If not using a standard path, theSSH_KNOWN_HOSTS environment variable can be used to point ssh to where the file is mounted.

@sgaist sgaist linked a pull request Aug 22, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant