Skip to content
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

feat: Opt-in logging via feature flag #33

Merged
merged 1 commit into from
Mar 16, 2023
Merged

Conversation

Pscheidl
Copy link
Contributor

Logging in debug mode can still be considered a security problem by some. First, debug may be used in non-prod environments, yet those environments still have secrets. Second, it only takes deploying a debug build by mistake to reveal environment's secrets. This is a huge potential risk. Therefore, as a final solution to this, I propose leaving logging off by default. Also, this crate itself will be lighter without the log dependency.

Thank you for considering this proposal.

Logging in `debug` mode can still be considered a security
problem by some. First, `debug` may be used in non-prod environments,
yet those environments still have secrets. Second, it only takes
deploying a debug build by mistake to reveal environment's secrets. This
is a huge potential risk. Therefore, as a final solution to this,
I propose leaving logging off by default. Also, this crate itself will
be lighter without the `log` dependency.
@Xuanwo
Copy link
Owner

Xuanwo commented Mar 16, 2023

Thanks a lot!

@Xuanwo Xuanwo merged commit 04f0115 into Xuanwo:main Mar 16, 2023
@Pscheidl Pscheidl deleted the opt-in-logging branch March 16, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants