Replies: 2 comments 1 reply
-
Maybe we can mark |
Beta Was this translation helpful? Give feedback.
1 reply
-
This has been resolved in #44 -> closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Logging is now opt-in via a feature named
log
. This was done to resolve the issue of secrets potentially being log when logging is set to debug/trace. In most cases, this crate will now be safe to use.However, there's still room for malicious intents or leaking secrets simply by mistake. It's due to the way
cargo
handles optional features.E.g. if a lib/app depends on serde-env directly, and also on yet another crate with serde-env as a transitive dependency with
log
feature enabled, logging will be enabled for the app as well.Opting out doesn't seem to solve the issue, as per Cargo book
If one crate opts in, then all others do. And it is difficult to verify this every time a dependency is updated or added.
I can think of one solution: remove logging for good, and only add it for debugging if necessary during development. Replace debug/trace logging with more tests if required.
Is there any other way ? Am I missing something ? @Xuanwo
Beta Was this translation helpful? Give feedback.
All reactions