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

Re: [PATCH] doc: gpg: say which date SSH key lifetimes are checked against

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 22, 2026, 06:25 UTC
Message-ID
<atmsSIJrFhA0t1rH@pks.im>
In-Reply-To
<xmqqqzhior8t.fsf@gitster.g>
On Wed, Oct 21, 2026 at 11:14:42AM -0700, Junio C Hamano wrote:
Show 31 quoted lines
> Christian Noé Ramos López <chris@nortesoftware.dev> writes:
> 
> > -Since OpensSSH 8.8 this file allows specifying a key lifetime using valid-after &
> > -valid-before options. Git will mark signatures as valid if the signing key was
> > -valid at the time of the signature's creation. This allows users to change a
> > -signing key without invalidating all previously made signatures.
> > +Since OpenSSH 8.8 this file allows specifying a key lifetime using valid-after &
> > +valid-before options. When verifying a commit or a tag, Git checks that lifetime
> > +against the committer or tagger date recorded in the commit or tag. This allows
> > +users to change a signing key without invalidating all previously made
> > +signatures. That date is chosen by whoever creates the commit or tag, so it is
> > +not evidence of when the signature was made; the same is true of the creation
> > +time in a GPG signature, which is set by the signer's clock. Relying on a key
> > +lifetime is therefore only safe as long as the signing key has never leaked;
> > +once it has, valid-after and valid-before guarantee nothing.
> 
> Saying what we compare against may be valuable, but everything else
> sounds more like an empty fluff to me.  Isn't it self evident that
> validity time range is a useless concept unless you cannot tell when
> the signature was made?  In other words, instead of the long
> discussion of how useless the validity checks are, something
> succinct like
> 
>     Since OpensSSH 8.8 this file allows specifying a key lifetime using
>     valid-after & valid-before options. Git validates the signature by
>     checking the committer or tagger timestamp is within the validity
>     time range.  This allows users to change a signing key without
>     invalidating all previously made signatures.
> 
> should be sufficient, I would have to say.  Or am I missing
> something?

I think explicitly pointing out that the timestamp is under control by the signer would be useful context though. It's implicit to us, but it may not be implicit to everyone else. So maybe something like this?

     Since OpensSSH 8.8 this file allows specifying a key lifetime using
     valid-after & valid-before options. Git validates the signature by
     checking the committer or tagger timestamp is within the validity
     time range.  This does not provide any security guarantees as the
     timestamp can be chosen arbitrarily by the signer.  But it allows
     users to change a signing key without invalidating all previously
     made signatures.
Patrick
Previous: Christian Noé Ramos LópezNext: Junio C Hamano
Message 8 of 19 in “ssh signing: valid-before is checked at the signer's own date, and a missing revocationFile fails open”
  1. Christian Noé Ramos LópezOct 8, 2026
  2. Phillip WoodOct 8, 2026
  3. Patrick SteinhardtOct 9, 2026
  4. Phillip WoodOct 9, 2026
  5. doc: gpg: say which date SSH key lifetimes are checked againstChristian Noé Ramos López, Oct 21, 2026
  6. Junio C HamanoOct 21, 2026
  7. doc: gpg: say which date SSH key lifetimes are checked againstChristian Noé Ramos López, Oct 22, 2026
  8. Patrick SteinhardtOct 22, 2026
  9. Junio C HamanoOct 22, 2026
  10. Christian Noé Ramos LópezOct 30, 2026
  11. doc: gpg: say which date SSH key lifetimes are checked againstChristian Noé Ramos López, Oct 30, 2026
  12. Patrick SteinhardtOct 30, 2026
  13. gpg-interface: fail when the ssh revocation file is missingChristian Noé Ramos López, Oct 21, 2026
  14. Junio C HamanoOct 21, 2026
  15. gpg-interface: fail when the ssh revocation file is missingChristian Noé Ramos López, Oct 22, 2026
  16. Junio C HamanoOct 22, 2026
  17. Christian Noé Ramos LópezNov 13, 2026
  18. gpg-interface: fail when the ssh revocation file is missingChristian Noé Ramos López, Nov 13, 2026
  19. Phillip WoodOct 9, 2026

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.