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 GitLab #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Support for GitLab #4

wants to merge 4 commits into from

Conversation

lukeburciu
Copy link
Contributor

@lukeburciu lukeburciu commented Aug 3, 2024

Proposing adding support for GitLab, this flows like:

$ keycutter create gitlab.com_lukeb@lukeb --type ed25519-sk                                                                                                                                            
❓ Append the current device to the SSH Keytag? (gitlab.com_lukeb@lukeb). (Y/n) n
Proceeding with original ssh_keytag: gitlab.com_lukeb@lukeb
➕ Generating FIDO SSH key: /Users/lukeb/.ssh/keycutter/keys/gitlab.com_lukeb@lukeb
Generating public/private ed25519-sk key pair.
You may need to touch your authenticator to authorize key generation.
Enter PIN for authenticator:
You may need to touch your authenticator again to authorize key generation.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/lukeb/.ssh/keycutter/keys/gitlab.com_lukeb@lukeb
Your public key has been saved in /Users/lukeb/.ssh/keycutter/keys/[email protected]
The key fingerprint is:
SHA256:... gitlab.com_lukeb@lukeb
The key's randomart image is:
+[ED25519-SK 256]-+
...
+----[SHA256]-----+
❓ Upload public key to GitLab for auth using GitLab CLI? (Y/n)  Y
Logged in as lukeburciu.
❓ Do you want to switch to another GitLab account? (y/N): N

➕ Add SSH authentication & signing key (/Users/lukeb/.ssh/keycutter/keys/[email protected]) to GitLab
✓ New SSH public key added to your account.

⚠️ Note: Enforce SSO-only authentication for Git and Dependency Proxy will require additional setup.
❓ Symlink key to enable ssh.gitlab.com:443? [Y/n] Y

➕ Creating symlink: ln -sf /Users/lukeb/.ssh/keycutter/keys/gitlab.com_lukeb@lukeb /Users/lukeb/.ssh/keycutter/keys/ssh.gitlab.com_lukeb@lukeb
✅ Success! Setup complete for key: gitlab.com_lukeb@lukeb

@lukeburciu
Copy link
Contributor Author

It proposes a change in how:

check-service in bin/keycutter works.

@mbailey
Copy link
Owner

mbailey commented Aug 3, 2024

Thanks Luke, was thinking it could do with gitlab support

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.

2 participants