You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to add an example of safe code to the Remediation section of javascript_lang_logger_leak
Do not include sensitive data directly in logger messages. This can lead to the exposure of such data in log files, which might be accessible to unauthorized individuals.
Do use logging levels appropriately to control the verbosity of log output and minimize the risk of leaking sensitive information in production environments.
logger.info(`Results: ${data}`)// unsafe
logger.info(`Results received: ${data.unsensitive}`)// safe as no sensitive data is output in info levellogger.debug(`Results: ${data}`)// safe: log the details of the issue with debug level only, disabled in production
The text was updated successfully, but these errors were encountered:
Would be nice to add an example of safe code to the Remediation section of
javascript_lang_logger_leak
The text was updated successfully, but these errors were encountered: