anfragment / zen

Simple, free and efficient ad-blocker and privacy guard for Windows, macOS and Linux
https://zenprivacy.net
MIT License
2.43k stars 61 forks source link

Implement redaction of sensitive data in logs #158

Closed anfragment closed 4 days ago

anfragment commented 5 days ago

This PR addresses a privacy risk associated with writing logs to disk, where sensitive information about a client's traffic history could potentially be exposed to third parties - either located on the client's computer or during transmission for debugging purposes.

To mitigate this risk, the PR introduces a new logger.Redacted function, which enables us to easily redact sensitive data from production logs.

anfragment commented 5 days ago

@AitakattaSora Could you please review the implementation of the new functions and also take a moment to confirm that the redaction is comprehensive?

AitakattaSora commented 4 days ago

@anfragment Everything looks solid. However, I believe we should consider redacting this log as well. What are your thoughts?