(Optionally) expose SSH and GPG public keys via HTTP #1308

Closed
opened 2025-11-02 03:56:13 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @silverwind on GitHub (Dec 1, 2017).

GitHub has a useful feature where they expose SSH public keys on URLs like https://github.com/silverwind.keys. I think it would be great if Gitea would provide something similar, enabled by an option, which would expose both the SSH and GPG public keys of its users.

SSH keys should be sanitized to not include the comment, and GPG keys could be concatenated. To allow easy automation, there should be two routes, maybe /sshkeys and /gpgkeys, and possible also /keys that maps to SSH.

Originally created by @silverwind on GitHub (Dec 1, 2017). GitHub has a useful feature where they expose SSH public keys on URLs like https://github.com/silverwind.keys. I think it would be great if Gitea would provide something similar, enabled by an option, which would expose both the SSH and GPG public keys of its users. SSH keys should be sanitized to not include the comment, and GPG keys could be concatenated. To allow easy automation, there should be two routes, maybe `/sshkeys` and `/gpgkeys`, and possible also `/keys` that maps to SSH.
GiteaMirror added the issue/confirmedtype/feature labels 2025-11-02 03:56:14 -06:00
Author
Owner

@sapk commented on GitHub (Dec 1, 2017):

Could be based on what is behind : /user/keys /user/gpg_keys

@sapk commented on GitHub (Dec 1, 2017): Could be based on what is behind : `/user/keys` `/user/gpg_keys`
Author
Owner

@techknowlogick commented on GitHub (Jun 9, 2018):

This currently exists (for SSH at least). You can see an example here: https://try.gitea.io/techknowlogick.keys

@techknowlogick commented on GitHub (Jun 9, 2018): This currently exists (for SSH at least). You can see an example here: https://try.gitea.io/techknowlogick.keys
Author
Owner

@techknowlogick commented on GitHub (Jun 9, 2018):

On github there is also https://github.com/techknowlogick.gpg

@techknowlogick commented on GitHub (Jun 9, 2018): On github there is also https://github.com/techknowlogick.gpg
Author
Owner

@silverwind commented on GitHub (Jun 9, 2018):

Nice, SSH keys looks like a recent addition I must have missed. Agree on adding GPG for feature parity.

@silverwind commented on GitHub (Jun 9, 2018): Nice, SSH keys looks like a recent addition I must have missed. Agree on adding GPG for feature parity.
Author
Owner

@stale[bot] commented on GitHub (Jan 24, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 24, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@sapk commented on GitHub (Jan 24, 2019):

This is still needed and wait for #4193

@sapk commented on GitHub (Jan 24, 2019): This is still needed and wait for #4193
Author
Owner

@lunny commented on GitHub (Apr 21, 2019):

closed by #6610

@lunny commented on GitHub (Apr 21, 2019): closed by #6610
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1308