gitness icon indicating copy to clipboard operation
gitness copied to clipboard

[Feature request] SSH Cloning

Open MarioGK-AutoSystem opened this issue 1 year ago • 12 comments

It would be great to clone the repositories using an SSH key instead of login and ~~password~~ api key

MarioGK-AutoSystem avatar Sep 28 '23 16:09 MarioGK-AutoSystem

@MarioGK-AutoSystem thanks for your feedback! We will look into adding this support and keep you updated

avanmathur1 avatar Sep 28 '23 17:09 avanmathur1

@MarioGK-AutoSystem wanted to provide some more context on this. While GIT prompts a username and password during clone via http/https, we actually expect an API KEY to be provided as password, as it has limited lifetime and can be revoked. Your Gitness username + password won't actually work with git. If you are being asked for the credentials on every pull/push, you can try to configure your git with a credentials manager, which will allow git to store the credentials for the domain locally and reuse them the next time.

This is similar to what Github is doing, where they explicitly disabled username + password credentials for git protocol due to security concerns (See they blob post)

johannesHarness avatar Sep 29 '23 00:09 johannesHarness

@MarioGK-AutoSystem wanted to provide some more context on this. While GIT prompts a username and password during clone via http/https, we actually expect an API KEY to be provided as password, as it has limited lifetime and can be revoked. Your Gitness username + password won't actually work with git. If you are being asked for the credentials on every pull/push, you can try to configure your git with a credentials manager, which will allow git to store the credentials for the domain locally and reuse them the next time.

This is similar to what Github is doing, where they explicitly disabled username + password credentials for git protocol due to security concerns (See they blob post)

Edited my issue to say api key instead of password.

Yeah i think ssh keys are more convenient and safer than API keys for git operations

MarioGK-AutoSystem avatar Sep 29 '23 02:09 MarioGK-AutoSystem

This feature should be implemented along with commit signing validation. A user should be able to register ssh keys and mark them as authentication and/or signing keys

sachaw avatar Oct 01 '23 03:10 sachaw

This seems to be a pretty big blocker to me as to why I won't use Gitness. SSH key verification and authenication would be perfect..

fucksophie avatar Nov 04 '23 09:11 fucksophie

Yep, this issue would not be with SSH.

$ git push gitness main                                                            
Enumerating objects: 2498, done.
Counting objects: 100% (2498/2498), done.
Delta compression using up to 12 threads
Compressing objects: 100% (1420/1420), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (2498/2498), 20.83 MiB | 9.95 MiB/s, done.
Total 2498 (delta 1414), reused 1629 (delta 975), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

amatiasq avatar Nov 16 '23 12:11 amatiasq

+1 without SSH keys this is no bueno

mikekuzak avatar Feb 08 '24 23:02 mikekuzak

Yeah.. No ssh or ssh over https is a no go :/

pryorda avatar Mar 04 '24 05:03 pryorda

Is there an ETA for this? I would love to use gitness and this is the only feature holding me back...

notarock avatar Apr 30 '24 03:04 notarock

+1

This is not the opencore model you're looking for.

kbaegis avatar May 17 '24 14:05 kbaegis

Hi, everyone. We appreciate the feedback and are actively working on adding SSH to Gitness to an upcoming release.

pwolf-harness avatar May 17 '24 18:05 pwolf-harness

Excellent. This is really missing.

cocoonkid avatar Jun 12 '24 08:06 cocoonkid