Skip to content

Potential fix for code scanning alert no. 3: Clear-text logging of sensitive information #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sljory
Copy link

@sljory sljory commented Mar 19, 2025

Potential fix for https://github.com/deliveroo/yopass/security/code-scanning/3

To fix the problem, we should avoid logging the secretKey directly. Instead, we can log a message indicating the failure without including the sensitive secretKey. This approach maintains the functionality of logging errors while ensuring that sensitive information is not exposed.

  • Remove the logging of secretKey in the error messages.
  • Update the logging statements to exclude the secretKey.

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>
@sljory sljory requested a review from roo-ahine March 19, 2025 13:22
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.

1 participant