Skip to content

Conversation

@rsdmike
Copy link
Member

@rsdmike rsdmike commented May 8, 2024

No description provided.

@codecov
Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 107 lines in your changes missing coverage. Please review.

Project coverage is 35.57%. Comparing base (15705da) to head (c2f7822).

Files Patch % Lines
internal/certificates/generate.go 0.00% 107 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
- Coverage   36.51%   35.57%   -0.95%     
==========================================
  Files          55       56       +1     
  Lines        4017     4124     +107     
==========================================
  Hits         1467     1467              
- Misses       2458     2565     +107     
  Partials       92       92              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rsdmike rsdmike force-pushed the main branch 5 times, most recently from e0ea0e5 to 62fb1d5 Compare May 23, 2024 04:44
func (s *Server) ListenAndServe() error {
config := &tls.Config{
Certificates: []tls.Certificate{s.certificates},
InsecureSkipVerify: true,

Check failure

Code scanning / CodeQL

Disabled TLS certificate check High

InsecureSkipVerify should not be used in production code.

Copilot Autofix

AI 8 months ago

To fix the problem, we need to ensure that the TLS client verifies the server's certificate chain and host name. This involves removing the InsecureSkipVerify: true setting from the TLS configuration. Instead, we should configure the server to use proper certificates that can be verified.

  1. Remove the InsecureSkipVerify: true line from the TLS configuration.
  2. Ensure that the server is set up with valid certificates that can be verified by the client.
Suggested changeset 1
internal/controller/tcp/cira/tunnel.go

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/internal/controller/tcp/cira/tunnel.go b/internal/controller/tcp/cira/tunnel.go
--- a/internal/controller/tcp/cira/tunnel.go
+++ b/internal/controller/tcp/cira/tunnel.go
@@ -68,3 +68,2 @@
 		Certificates:       []tls.Certificate{s.certificates},
-		InsecureSkipVerify: true,
 		MinVersion:         tls.VersionTLS12,
EOF
@@ -68,3 +68,2 @@
Certificates: []tls.Certificate{s.certificates},
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS12,
Copilot is powered by AI and may make mistakes. Always verify output.
@rsdmike rsdmike changed the title Cira Cira test Oct 9, 2025
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