aboutsummaryrefslogtreecommitdiff
path: root/b4/command.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-10-02 21:03:25 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-10-02 21:03:25 -0400
commit0d759ee9113b371a678c4acafffafa79570e9511 (patch)
tree5f2b074ea2c81208802c1db1efef29c0a1c438b1 /b4/command.py
parentca6d35e7728c17b505e6be62ec3b6687aa5bf26b (diff)
downloadb4-0d759ee9113b371a678c4acafffafa79570e9511.tar.gz
Reimplement attestation for in-header hashes
Rewrite attestation to implement in-header hashing and signing. For now, just implementing mode=pgp, but other modes are coming next. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r--b4/command.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/b4/command.py b/b4/command.py
index ffa58ef..d3624e9 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -42,7 +42,7 @@ def cmd_am(cmdargs):
def cmd_attest(cmdargs):
import b4.attest
- b4.attest.create_attestation(cmdargs)
+ b4.attest.attest_patches(cmdargs)
def cmd_verify(cmdargs):
@@ -116,14 +116,13 @@ def cmd():
sp_am.set_defaults(func=cmd_am)
# b4 attest
- sp_att = subparsers.add_parser('attest', help='Submit cryptographic attestation for patches')
- # GDPR-proofing: by default, we add as little PII-sensitive info as possible
- sp_att.add_argument('-f', '--from', dest='sender', default='devnull@kernel.org',
- help='Use a custom From field')
+ sp_att = subparsers.add_parser('attest', help='Create cryptographic attestation for a set of patches')
+ sp_att.add_argument('-f', '--from', dest='sender', default=None,
+ help='OBSOLETE: this option does nothing and will be removed')
sp_att.add_argument('-n', '--no-submit', dest='nosubmit', action='store_true', default=False,
- help='Do not submit attestation, just save the message ready to send')
- sp_att.add_argument('-o', '--output', default='xxxx-attestation-letter.patch',
- help='Save attestation message in this file if not submitting it')
+ help='OBSOLETE: this option does nothing and will be removed')
+ sp_att.add_argument('-o', '--output', default=None,
+ help='OBSOLETE: this option does nothing and will be removed')
sp_att.add_argument('patchfile', nargs='+', help='Patches to attest')
sp_att.set_defaults(func=cmd_attest)