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

Re: Author signature

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
Jun 4, 2024, 13:12 UTC
Message-ID
<20240604-omniscient-skinny-dormouse-bfae0a@lemur>
In-Reply-To
<D1R8VB91BRR6.3M3651RXOQM5Q@strongly-typed-thoughts.net>
On Tue, Jun 04, 2024 at 02:50:49PM GMT, Dimitri Sabadie wrote:
Show 6 quoted lines
> On the other side, I just had another idea. What would be best to me
> is to actually provide a _proof_ that at least the author acknowledges
> the patch — whether he wrote it or not is another story and I don’t
> think we can enforce that completely. The goal I want to achieve is that
> if I send a patch via email, if the patch ends up committed by someone
> else, I still want to be able to have a proof that “I wrote the patch.”

On the kernel side of things, we're using patatt for this purpose: https://github.com/mricon/patatt

Show 25 quoted lines
> So assuming the committer is not of bad faith and doesn’t truncate my
> git commit message… why not simply adding a “sign-off” like line at the
> end of the commit, but instead of just putting a clear text that anyone
> could tamper with, we would sign the date at which the commit was made?
> 
> For instance, I could have a git message like:
> 
>     Fix typo. 
> 
>   	-----BEGIN PGP SIGNED MESSAGE-----
>     Hash: SHA512
> 
>     Tue Jun  4 02:49:26 PM CEST 2024
>     -----BEGIN PGP SIGNATURE-----
> 
>     iHUEARYKAB0WIQRsmRqgbXp8KFc3mc6pQ4aopiUuywUCZl8NVgAKCRCpQ4aopiUu
>     yyhWAQCScfP28Py0QbHuqzzOFyjAMwdK0LfwiGfYrfzfv0evlAD9Hd+x8NgvPq2p
>     nnnG5tQaHeIS/v8PMP0suy3QiWV8WQc=
>     =Ru+m
>     -----END PGP SIGNATURE-----
> 
> If a create another commit later with "Fix typo." as content, then the
> date will be different and the signature won’t be the same.
> 
> What do you think?

No, this is not a good solution, if only because the date of the commit can be freely edited to match whatever is in the signature, and then it can be reused for any commit at all.

-K
Previous: Dimitri Sabadie
Message 6 of 6 in “Author signature”
  1. Dimitri SabadieMay 14, 2024
  2. brian m. carlsonMay 14, 2024
  3. Konstantin RyabitsevMay 14, 2024
  4. Konstantin RyabitsevMay 14, 2024
  5. Dimitri SabadieJun 4, 2024
  6. Konstantin RyabitsevJun 4, 2024

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.