aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-02-26 10:40:18 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-02-26 10:40:18 -0500
commit9b4eb91f9ab7642823ccc1635d530cc150e29d97 (patch)
tree7eb07ba13bb7414813225ec12a4726926433e856
parent3f608ef85046bec4e2e8d8fe26e7c9df894ddb37 (diff)
downloadkorg-helpers-9b4eb91f9ab7642823ccc1635d530cc150e29d97.tar.gz
Print out an attested-by line
We need to see who is the person attesting the patches. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xattest-patches.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/attest-patches.py b/attest-patches.py
index ba3bcb3..896550d 100755
--- a/attest-patches.py
+++ b/attest-patches.py
@@ -382,6 +382,7 @@ def verify_attestation(cmdargs):
session = requests.session()
session.headers.update({'User-Agent': 'attest-patches/%s' % VERSION})
ecode = 1
+ attestors = set()
for msg in mbx:
content = msg.as_bytes()
ihash, mhash, phash = get_mailinfo_hashes(content)
@@ -413,6 +414,7 @@ def verify_attestation(cmdargs):
ecode = 128
else:
if ecode != 128:
+ attestors.update(('%s (%s)' % (siguid, sigkey),))
ecode = 0
break
else:
@@ -436,7 +438,9 @@ def verify_attestation(cmdargs):
for error in VALIDATION_ERRORS:
logger.critical(' %s', error)
else:
- logger.critical('All patches passed attestation.')
+ logger.critical('All patches passed attestation:')
+ for attestor in attestors:
+ logger.critical(' Attested-by: %s', attestor)
sys.exit(ecode)