Skip to content

Potential fix for code scanning alert no. 3: Disabled TLS certificate check#36

Merged
Iandenh merged 1 commit intomasterfrom
alert-autofix-3
Jul 10, 2025
Merged

Potential fix for code scanning alert no. 3: Disabled TLS certificate check#36
Iandenh merged 1 commit intomasterfrom
alert-autofix-3

Conversation

@Iandenh
Copy link
Owner

@Iandenh Iandenh commented Jul 10, 2025

Potential fix for https://github.com/Iandenh/overleash/security/code-scanning/3

To fix the issue, remove the InsecureSkipVerify: true setting from the tls.Config object on line 27. Instead, configure valid certificates for the client to use when connecting to the server. If you need to trust custom certificates (e.g., self-signed certificates), you can use tls.Config{RootCAs} to specify a pool of trusted certificates explicitly rather than disabling verification.

This requires:

  1. Ensuring that the server's certificates are valid and trusted.
  2. Configuring the tls.Config object correctly using RootCAs or leaving it default (to use the system's trusted CA pool).

The changes will be applied in the proxy/proxy.go file.


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>
@Iandenh Iandenh marked this pull request as ready for review July 10, 2025 19:42
@Iandenh Iandenh merged commit a3f7da5 into master Jul 10, 2025
5 checks passed
@Iandenh Iandenh deleted the alert-autofix-3 branch August 19, 2025 17:35
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