-
Notifications
You must be signed in to change notification settings - Fork 26
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
Put debug-dump-store behind a feature-flag #111
base: main
Are you sure you want to change the base?
Put debug-dump-store behind a feature-flag #111
Conversation
I thought the consensus is to not make a feature out of the debug switches (but use |
Ah, I just saw the review comment you referred to. I’ll have to think about that option. |
I think the main difference between the two is that the addition of the debug-dump-store is purely additive, whereas the removal of encryption is not. This flag does not change the test paths if you use Also removal of encryption is not something we want to encourage at any point, while features are easily discoverable, and therefore can mistakenly be enabled, which would be highly problematic. |
It's also consistent with the |
|
It makes the call available but you would still have to call it, and you would have to have the logs somehow accessible on a production device before this becomes really dangerous. |
Did you come to consensus? :) Slight tendency to cfg-flag on my side (default "off" naturally). |
8d75a20
to
ee3fa53
Compare
I moved it behind a CFG. This doesn't matter much if you prefer cfg we can merge it that way. |
When debugging Nitrokey/piv-authenticator#12 I realized this was not removed from production firmware. Putting it behind a feature flag will ensure that it does.