git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: SSH Key Signatures: Feedback

From
DDanilo <mail@dbrgn.ch>
Date
Nov 15, 2021, 10:31 UTC
Message-ID
<9d264d41-7b24-40db-9c3e-28a8275db835@www.fastmail.com>
In-Reply-To
<20211115101945.scikeaptstuy64mi@fs>
Hello Fabian
> Unfortunately the flag
> themselves are often named --gpg-sign / commit.gpgSign which we can't
> change. We might add a new, more generically named flag & config as an
> alias to these in the future.
Aliases sound like a good idea, this would allow for a slow phase-out of the old flags.
Show 7 quoted lines
> Regarding the error messages I quite agree with you and had similar
> feedback with our internal testers. These error messages (invalid format
> & unexpected internal error) originate from ssh-keygen. I already
> checked if we can improve these but its not easy since those come from
> quite deep within ssh library code :/. I'll see what i can do, but since
> this changes ssh-keygen behaviour I'm not sure how well received changes
> like this would be.
I see. However, maybe some common cases (like missing or empty files) could be detected by git before even invoking the ssh-keygen command?
> When you say `gpg.ssh.allowedSigners` is not set is the option not
> present? or is it empty? The code should actually trigger
> `error(_("gpg.ssh.allowedSignersFile needs to be configured and exist
> for ssh signature verification"));` in this case.
The option `gpg.ssh.allowedSigners` is not present at all. I just checked again, and noticed that the error message you mentioned *is* there, however it's not part of the red error block, so I overlooked it: https://i.imgur.com/LLvrrxO.png
All other errors are part of the red error block, and are thus much more obvious to see.

Cheers, Danilo

Previous: Fabian Stelzer
Message 3 of 3 in “SSH Key Signatures: Feedback”
  1. DaniloNov 15, 2021
  2. Fabian StelzerNov 15, 2021
  3. DaniloNov 15, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.