-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts: west_commands: ncs-provision locked key #19328
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 7e5cbef86ad26baa2cdf0234a26cc1c5d3108974 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
@@ -34,6 +36,8 @@ def do_add_parser(self, parser_adder): | |||
"-k", "--key", type=Path, action='append', dest="keys", | |||
help="Input .pem file with ED25519 private key" | |||
) | |||
upload_parser.add_argument("-p", "--policy", type=str, help="Keys policy", | |||
choices=["default", "lock"], default="default") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear what default
means, why don't you use choices=["revoked", "locked"]
and
"-r",
args.policy.uppder(),
"-v",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translation table on top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree with @fundakol , don't need extra table, and why to change parameter names from nrfprovision
tool?
you can use:
upload_parser.add_argument("-p", "--policy", type=str.upper, help="Keys policy",
choices=["REVOKED", "ROTATING", "LOCKED"], default="REVOKED")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name 'revoked' suggests it's dead right away. It should be named differently earlier on but here we are.
de12bf0
to
eb606bb
Compare
adds ability to upload key as locked. Signed-off-by: Mateusz Michalek <[email protected]>
eb606bb
to
7e5cbef
Compare
rebase |
@nvlsianpu should this be backported to 2.8 branch as well ? |
@shanthanordic Yes it should - it's mitigation to known issue, backward compatible. |
adds ability to upload key as locked.
ref.: NCSDK-30867