Skip to content

Conversation

@akabarki76
Copy link
Member

Potential fix for https://github.com/AKA-NETWORK/cli/security/code-scanning/25

To address the issue, the InsecureSkipVerify: true setting should be replaced with custom certificate validation logic. This can be achieved by implementing a custom VerifyPeerCertificate function. This function should verify the self-signed certificates based on specific criteria, such as expected certificate fingerprint or other attributes relevant to the context.

The changes will involve:

  1. Defining a VerifyPeerCertificate function within the tls.Config configuration.
  2. Removing the InsecureSkipVerify field from the configuration.

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

…e check

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@akabarki76 akabarki76 marked this pull request as ready for review July 16, 2025 01:03
@akabarki76 akabarki76 merged commit aaf3394 into trunk Jul 16, 2025
4 of 19 checks passed
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.

2 participants