-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1856499 Separate GCS transport from the standard one #1274
base: master
Are you sure you want to change the base?
Conversation
841f755
to
c2d88a0
Compare
c2d88a0
to
ecb5dc9
Compare
gcs_storage_client.go
Outdated
TLSClientConfig: &tls.Config{ | ||
RootCAs: certPool, | ||
VerifyPeerCertificate: verifyPeerCertificateSerial, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep identified an issue in your code:
MinVersion
is missing from this TLS configuration. By default, TLS 1.2 is currently used as the minimum when acting as a client, and TLS 1.0 when acting as a server. General purpose web applications should default to TLS 1.3 with all other protocols disabled. Only where it is known that a web server must support legacy clients with unsupported an insecure browsers (such as Internet Explorer 10), it may be necessary to enable TLS 1.0 to provide support. Add `MinVersion: tls.VersionTLS13' to the TLS configuration to bump the minimum version to TLS 1.3.
To resolve this comment:
No guidance has been designated for this issue. Fix according to your organization's approved methods.
💬 Ignore this finding
Leave a nosemgrep comment directly above or at the end of line 407 like so // nosemgrep: go.lang.security.audit.crypto.missing-ssl-minversion.missing-ssl-minversion
Take care to validate that this is not a true positive finding before ignoring it.
Learn more about ignoring code, files and folders here.
You can view more details about this finding in the Semgrep AppSec Platform.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1274 +/- ##
==========================================
- Coverage 82.20% 82.19% -0.02%
==========================================
Files 55 55
Lines 13484 13484
==========================================
- Hits 11085 11083 -2
- Misses 2399 2401 +2 ☔ View full report in Codecov by Sentry. |
Description
Using the same HTTP pool caused problems on Windows.