Skip to content

Conversation

@krishnprakash
Copy link
Owner

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

To fix the problem, we need to ensure that sensitive information such as client_id and client_secret is not logged in clear text. Instead, we can log a generic message indicating that a service token was created without including the sensitive details. This way, we maintain the functionality of informing the user about the creation of the service token without exposing sensitive data.

We will modify the log message on line 150 to remove the client_id and avoid logging the client_secret. The new log message will simply inform the user that a service token was created and remind them to save the client secret securely.

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

…ensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@krishnprakash krishnprakash marked this pull request as ready for review March 17, 2025 05:26
@krishnprakash krishnprakash merged commit 2c27056 into production Mar 17, 2025
10 checks passed
@krishnprakash krishnprakash deleted the alert-autofix-26 branch March 17, 2025 05:27
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