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

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

From
CLChristian Noé Ramos López <chris@nortesoftware.dev>
Date
Oct 22, 2026, 05:44 UTC
Message-ID
<20261022054453.761650-1-chris@nortesoftware.dev>
In-Reply-To
<xmqqqzhior8t.fsf@gitster.g>

The description of gpg.ssh.allowedSignersFile says that Git marks a signature as valid if the signing key was valid at the time of the signature's creation. An SSH signature does not record when it was made, though. When verifying a commit or a tag, Git passes the committer or tagger date to ssh-keygen with -Overify-time, and the valid-after and valid-before options of a key are checked against that date.

Say which date is used. While at it, fix the spelling of "OpenSSH" in the same paragraph.

Helped-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Christian Noé Ramos López <chris@nortesoftware.dev>
---
Changes since v1: Junio's wording, with "OpenSSH" spelled right. That
drops two sentences asked for in the thread, the one on the time in a
GPG signature (Phillip) and the one on leaked keys (Patrick); say if
you want either back.
 Documentation/config/gpg.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/config/gpg.adoc b/Documentation/config/gpg.adoc
index 240e46c05..f5bb3cbf3 100644
--- a/Documentation/config/gpg.adoc
+++ b/Documentation/config/gpg.adoc
@@ -70,9 +70,9 @@ A repository that only allows signed commits can store the file
 in the repository itself using a path relative to the top-level of the working tree.
 This way only committers with an already valid key can add or change keys in the keyring.
 +
-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
+Since OpenSSH 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.
 +
 Using a SSH CA key with the cert-authority option

base-commit: 47fdf2208c5b94c8cc01c106b8f7c85efb91c926
-- 
2.47.3
Previous: Junio C HamanoNext: Patrick Steinhardt
Message 7 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.