aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-14 16:35:16 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-14 16:35:16 -0400
commitfd66babbab0dc2f63972a16e7a148cff4621ed71 (patch)
tree032e4dd2b748e4bfa5016ae84ba02c12f028c3c7
parenta186515dc19e1c56eb28446be0aac74b839eba60 (diff)
downloadb4-fd66babbab0dc2f63972a16e7a148cff4621ed71.tar.gz
Restore check for attestation-check-dkim
Seems we have lost this check in the rewrite, so restore it to make sure that we only check dkim if b4.attestation-check-dkim == 'yes' (default). Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index dee182e..11ad012 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -954,7 +954,7 @@ class LoreMessage:
if self.msg.get(DEVSIG_HDR):
self._load_patatt_attestors()
- if self.msg.get('dkim-signature'):
+ if self.msg.get('dkim-signature') and config['attestation-check-dkim'] == 'yes':
self._load_dkim_attestors()
return self._attestors