Skip to content

Conversation

@akabarki76
Copy link
Member

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

To fix the issue, the InsecureSkipVerify: true setting should be removed, and proper certificate validation should be implemented. If the application requires custom handling of certificates (e.g., due to CDN-related issues), a trusted certificate authority (CA) or a custom certificate pool should be configured using the RootCAs field in tls.Config. This ensures that the application validates certificates securely while accommodating specific requirements.

The changes will involve:

  1. Removing InsecureSkipVerify: true.
  2. Configuring a custom certificate pool if necessary, using x509.NewCertPool() and loading trusted certificates.
  3. Updating the TLSClientConfig to use the custom certificate pool.

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

… 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 June 28, 2025 18:33
@akabarki76 akabarki76 merged commit 97640aa into trunk Jun 28, 2025
16 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