makefiles/suit: make use of SUIT_SEC_PASSWORD optional #20862
makefiles/suit: make use of SUIT_SEC_PASSWORD optional #20862benpicco merged 2 commits intoRIOT-OS:masterfrom
SUIT_SEC_PASSWORD optional #20862Conversation
Specifying the password of the SUIT private key on the command line and thereby committing it to shell history is a security issue. Instead ask for the password interactively when an encrypted private key is used.
|
How will this work in an CI / automatic build? |
|
I am with @kfessel / passing through ENV should be possible. It also bothers me that beside the change of behavior / usage, there is no adjustment to the documentation or a tutorial. We have that documented somewhere, do we? 😰😱 |
|
Aren't there ci tools that provide a separate storage for password that are used in the build process and ingested through environment - but they probably are all providing a file-storage as well which is as easy to handle If there is a buildsystem that just supports the first option or you want someone to not just be able to copy the keyfile (keyfiles might be floating around somwhere) with a seperate password ( in a "secure" ci env storage) you at least add a little extra barrier to just copy the file. of cause no one should put their buildkeypassword int the make command line that would be crazy to do |
|
I re-added the possibility to use |
SUIT_SEC_PASSWORD optional
c4a12bf to
50e3d61
Compare
maribu
left a comment
There was a problem hiding this comment.
Code looks good and I trust your testing

Contribution description
Specifying the password of the SUIT private key on the command line and thereby committing it to shell history is a security issue.
Instead ask for the password interactively when an encrypted private key is used.
Testing procedure
if you don't have an encrypted SUIT key, create one first
sign a manifest with the new key
Issues/PRs references