-
-
Notifications
You must be signed in to change notification settings - Fork 665
Open
Labels
Description
Add a rule to warn about exported struct fields with JSON serialization that have a high chance of containing secrets.
Many enterprise environments using structured logging simply rely on json serialization and then inadvertently log secrets such as passwords, tokens or other sensitive information including PII etc. It would be good to have a rule that does static code analysis to warn about potential security vulnerabilities in this context. By offering a rule argument to set the list of fields to consider the rule could be customized to apply to a broad range of application or business specific use cases.
Idea: @boriwo
Copied from mgechev/revive#1488