Skip to content

Conversation

@krishnprakash
Copy link
Owner

Potential fix for https://github.com/krishnprakash/cloudflare-docs/security/code-scanning/1

To fix the problem, we need to ensure that sensitive information such as client_secret is not logged in clear text. Instead of logging the entire command, we can log a sanitized version of it that excludes the sensitive information. This way, we can still have useful logging for debugging purposes without exposing sensitive data.

We will modify the logging statement on line 72 to exclude the client_secret from the logged command. We will also add a helper function to sanitize the command before logging it.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…nsitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Mar 7, 2025

Howdy and thanks for contributing to our repo. We review new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

@github-actions github-actions bot added the size/s label Mar 7, 2025
@krishnprakash krishnprakash marked this pull request as ready for review March 7, 2025 01:16
@krishnprakash krishnprakash merged commit 7915e13 into production Mar 7, 2025
11 checks passed
@krishnprakash krishnprakash deleted the alert-autofix-1 branch March 7, 2025 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants