From e494f24e35ec365eaf33744fd1712f589fd649ba Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 18 Mar 2020 12:28:02 -0400 Subject: Check the age of attestation If attestation is over 30 days older than the patch, then we refuse to accept it. This can be changed in configuration parameters by setting 'attestation-staleness-days' to a higher/lower value. Signed-off-by: Konstantin Ryabitsev --- man/b4.5 | 8 ++++---- man/b4.5.rst | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'man') diff --git a/man/b4.5 b/man/b4.5 index f64f6de..7667caa 100644 --- a/man/b4.5 +++ b/man/b4.5 @@ -31,11 +31,8 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS -.INDENT 0.0 -.INDENT 3.5 +.sp b4 {mbox,am,attest,attverify} [options] -.UNINDENT -.UNINDENT .SH DESCRIPTION .sp This is a helper utility to work with patches made available via a @@ -231,6 +228,9 @@ Default configuration, with explanations: # or simple checkmarks? attestation\-checkmarks = fancy # + # How long before we consider attestation to be too old? + attestation\-staleness\-days = 30 + # # You can point this at a non\-default home dir, if you like, or leave out to # use the OS default. attestation\-gnupghome = None diff --git a/man/b4.5.rst b/man/b4.5.rst index 92e413a..161e665 100644 --- a/man/b4.5.rst +++ b/man/b4.5.rst @@ -13,7 +13,7 @@ Work with patches in a public-inbox archive SYNOPSIS -------- - b4 {mbox,am,attest,attverify} [options] +b4 {mbox,am,attest,attverify} [options] DESCRIPTION ----------- @@ -161,6 +161,9 @@ Default configuration, with explanations:: # or simple checkmarks? attestation-checkmarks = fancy # + # How long before we consider attestation to be too old? + attestation-staleness-days = 30 + # # You can point this at a non-default home dir, if you like, or leave out to # use the OS default. attestation-gnupghome = None -- cgit v1.2.3