Skip to content

feat: SSH UI #1033

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

feat: SSH UI #1033

wants to merge 14 commits into from

Conversation

fabiovincenzi
Copy link
Contributor

@fabiovincenzi fabiovincenzi commented May 28, 2025

This PR adds an SSH-key management UI. Based on #987

To ease review, a separate PR has been opened against the SSH integration branch to highlight only the UI-related changes: G-Research#52

  • Frontend

    • Every key is displayed only by its SHA-256 fingerprint,
    • New SSH tab in the clone popup
  • Backend – Two endpoints make it work:

    • GET /:username/ssh-keys → returns all fingerprints for the user.
    • DELETE /:username/ssh-keys/fingerprint → accepts { fingerprint } in the body and removes the matching key.
Screenshot 2025-05-28 at 13 30 09 Screenshot 2025-05-28 at 13 29 56 Screenshot 2025-05-28 at 13 29 50

Copy link

netlify bot commented May 28, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit a80b65b
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/68500ea90e4f85000814ff42

Copy link
Contributor

@dcoric dcoric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Note:

The implementation looks good overall, but we need to address the SSH port handling in clone URLs.

Requested Changes:

  1. Currently when a non-standard SSH port is configured, the clone URL format needs to be adjusted to:
    git clone ssh://git@${host}:${SSHport}/${path}

Copy link
Contributor

@dcoric dcoric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! This is a bit larger PR since it's built on top of the SSH functionality PR. I've reviewed the UI portion (since the SSH changes are in the other PR).

One suggestion: it might make more sense to target this PR against the original SSH branch rather than main. That way, both features could be reviewed and merged together as a complete feature set. What do you think?

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

Successfully merging this pull request may close these issues.

[Feat] Add UI management for public SSH keys
2 participants