Find insecure TLS configuration in Go

Proprietary

Finds tls.Config literals that disable certificate verification by setting InsecureSkipVerify: true. This makes the connection vulnerable to man-in-the-middle attacks. Remove the field or set it to false and configure a proper certificate chain.

org.openrewrite.golang.security.search.FindInsecureTlsConfig
mod run . --recipe=org.openrewrite.golang.security.search.FindInsecureTlsConfig

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.