-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
makefiles/suit: make use of SUIT_SEC_PASSWORD
optional
#20862
Conversation
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
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.
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