Skip to content

Conversation

whyseu
Copy link

@whyseu whyseu commented Jun 15, 2025

Potential fix for https://github.com/agent-network-protocol/AgentConnect/security/code-scanning/1

To fix the issue, we should avoid logging sensitive data like secret_key_json. Instead, we can log only non-sensitive information, such as local_did and remote_did, or replace the sensitive data with a placeholder (e.g., [REDACTED]). This ensures that sensitive information is not exposed in the logs while still providing useful debugging information.

The changes will involve:

  1. Modifying the print statement on line 29 to exclude secret_key_json or replace it with a placeholder.
  2. Ensuring that no other sensitive data is logged in the function.

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>
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