-
Notifications
You must be signed in to change notification settings - Fork 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
makefiles/suit: place keys in $XDG_DATA_HOME #18157
Conversation
Placing the SUIT key in the RIOT repository folder is dangerous as a repo checkout is by most people considered a volatile location. Since all important files are stored in git, deleting the entire folder or it's contents is not an uncommon cleanup operation. If the user is at that point unaware that SUIT key material is stored in that folder, that key will then be lost. Another workflow may involve multiple checkouts of the RIOT repository to multiple folders to work on several features at the same time, or for easy cross-referencing or splitting of off features from an integration into a feature branch. In that case each checkout would use it's own incompatible SUIT key. To avoid all these pitfalls, place the SUIT keys outside the RIOT repository in the $XDG_DATA_HOME directory.
Can you post some test output? |
|
Of your suggested test procedure :) |
This might fail on CI, as parallel builds share some random |
So, if I'd want to get back the original behavior, I'd have to inject a local makefile, right? |
You can still set the |
ok
But, |
make suit/publish
|
Contribution description
Placing the SUIT key in the RIOT repository folder is dangerous as a repo checkout is by most people considered a volatile location.
Since all important files are stored in git, deleting the entire folder or it's contents is not an uncommon cleanup operation.
If the user is at that point unaware that SUIT key material is stored in that folder, that key will then be lost.
Another workflow may involve multiple checkouts of the RIOT repository to multiple folders to work on several features at the same time, or for easy cross-referencing or splitting of off features from an integration into a feature branch.
In that case each checkout would use it's own incompatible SUIT key.
To avoid all these pitfalls, place the SUIT keys outside the RIOT repository in the
$XDG_DATA_HOME
directory.Testing procedure
should still work (with a new key being generated in
~/.local/share/RIOT/keys
).Issues/PRs references