fix(linter): add linter rules to reduce the chance for invalid FIPS settings BE-11979 (#975)

This commit is contained in:
andres-portainer
2025-08-05 09:23:07 -03:00
committed by GitHub
parent dc273b2d63
commit d00d71ecbf
13 changed files with 140 additions and 46 deletions

View File

@@ -128,7 +128,7 @@ func agentServer(t *testing.T) string {
cert, err := tls.X509KeyPair([]byte(localhostCert), []byte(localhostKey))
require.NoError(t, err)
tlsConfig := crypto.CreateTLSConfiguration()
tlsConfig := crypto.CreateTLSConfiguration(false)
tlsConfig.Certificates = []tls.Certificate{cert}
l, err := tls.Listen("tcp", "127.0.0.1:0", tlsConfig)