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

feat: known_hosts support for initial cloning #701

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sgaist
Copy link
Collaborator

@sgaist sgaist commented Aug 22, 2024

Describe your changes

This PR implements ssh's known_hosts handling to allow cloning git repositories using the ssh protocol.

In this initial implementation, the admin can create a ConfigMap object named ssh-known-hosts containing a key named known_hosts which content should be the same as a standard known_hosts file.

The content can be generate using ssh-keyscan followed by the name of the git service of interest (for example GitHub, GitLab, Bitbucket, etc.).

This method allows for both public and private git services to be used.

Issue ticket number and link

Fixes: #700
Part of SwissDataScienceCenter/renku#3679

In order to clone a git repository using the ssh protocol,
one must accept to connect to the remote service as must
be done when using ssh alone. Since it's an interactive
operation that is not possible when in an init container,
one solution is to provide the known_hosts files through
a ConfigMap containing a list of validated hosts.
@sgaist sgaist requested review from olevski and a team as code owners August 22, 2024 12:55
@sgaist sgaist marked this pull request as draft August 22, 2024 12:55
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 this pull request may close these issues.

Support for ssh git cloning
1 participant