Skip to content

docs(rules): add safe examples to javascript_lang_logger_leak#485

Open
vincent067 wants to merge 1 commit into
Bearer:mainfrom
vincent067:add-safe-examples-javascript-logger-leak
Open

docs(rules): add safe examples to javascript_lang_logger_leak#485
vincent067 wants to merge 1 commit into
Bearer:mainfrom
vincent067:add-safe-examples-javascript-logger-leak

Conversation

@vincent067

Copy link
Copy Markdown

Hi team! 👋

This small PR adds safe-code examples to the remediation section of the javascript_lang_logger_leak rule, as suggested in Bearer/bearer#1701.

What changed:

  • Added a safe example showing how to log only non-sensitive fields at production levels (e.g. info).
  • Added a safe example demonstrating the use of debug levels for detailed data, assuming debug is disabled in production.

I tried to keep the tone consistent with the existing documentation—hope it helps new users understand the fix at a glance. 😊

Happy to adjust the wording or examples if anything feels off. Just let me know!

Cheers,
Vincent

Closes Bearer/bearer#1701

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.

Add safe example to javascript_lang_logger_leak

1 participant