~sircmpwn/sr.ht-discuss

3 3

Signing only SSH keys

Details
Message ID
<1cb861e9-ff78-08b7-7b38-b2bdd22c4823@jacksonchen666.com>
DKIM signature
pass
Download raw message
Git supports signing with SSH keys, although documentation is scarce (I 
only found <https://blog.dbrgn.ch/2021/11/16/git-ssh-signatures/>).

Could support for SSH keys only for signing commits (i.e. no access to 
any (private) repositories) be added? Would patches be accepted?
Details
Message ID
<ca2b6631-28da-4439-b9f8-865f25aad75c@bitfehler.net>
In-Reply-To
<1cb861e9-ff78-08b7-7b38-b2bdd22c4823@jacksonchen666.com> (view parent)
DKIM signature
pass
Download raw message
On 11/20/23 21:56, Jackson wrote:
> Git supports signing with SSH keys, although documentation is scarce (I 
> only found <https://blog.dbrgn.ch/2021/11/16/git-ssh-signatures/>).
> 
> Could support for SSH keys only for signing commits (i.e. no access to 
> any (private) repositories) be added? Would patches be accepted?

Not sure I understand what you are trying to achieve. You should be able 
to sign your commits with whatever key you see fit, PGP or SSH, no 
special support from our side needed. If you don't want the key to have 
access to your repos, simply don't add it to your account?
Details
Message ID
<CX5H2THEQ4S5.1NENG8LO1UIZ7@poldrack.dev>
In-Reply-To
<ca2b6631-28da-4439-b9f8-865f25aad75c@bitfehler.net> (view parent)
DKIM signature
pass
Download raw message
On Wed Nov 22, 2023 at 5:09 PM CET, Conrad Hoffmann wrote:
> Not sure I understand what you are trying to achieve.

One thing is that it would make validating these signatures easier since
sourcehut provides an easy way to retrieve any accounts SSH keys.

-- 
Moritz Poldrack
https://moritz.sh

> For best results, follow directions carefully.
Details
Message ID
<19e309c2-e2e9-d79e-a175-af643128468f@jacksonchen666.com>
In-Reply-To
<ca2b6631-28da-4439-b9f8-865f25aad75c@bitfehler.net> (view parent)
DKIM signature
pass
Download raw message
On 2023-11-22 17:09, Conrad Hoffmann wrote:
> Not sure I understand what you are trying to achieve. You should be able 
> to sign your commits with whatever key you see fit, PGP or SSH, no 
> special support from our side needed. If you don't want the key to have 
> access to your repos, simply don't add it to your account?
Oh, you're right. I can just simply not add the SSH key to my account.

In the case of GitHub and GitLab, they can verify commit signatures and 
show them as verified on the web interface. Both provide adding SSH keys 
only for the purposes of signing commits.

I didn't consider that sourcehut still doesn't have commit signature 
verification when asking my question.
Reply to thread Export thread (mbox)