Skip to content
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

Exclude TLS1.3 support if older go version is used #15543

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

urso
Copy link

@urso urso commented Jan 14, 2020

Only compile with TLS1.3 support for go1.13 or newer is used. If an
older go version is used we stick with TLS1.2 max.

The change also introduces TLSVersionMin/Max and
TLSVersionDefaultMin/Max constants, so to keep the tests intact.

Note: This change comes with a gotcha. All TLS documentation use the same contents and will mention TLS1.3. But GCP support will not have TLS1.3 support, because GCP requires go1.11. This must be reflected in our GCP Functionbeat docs as well.

Only compile with TLS1.3 support for go1.13 or newer is used. If an
older go version is used we stick with TLS1.2 max.

The change also introduces TLSVersionMin/Max and
TLSVersionDefaultMin/Max constants, so to keep the tests intact.
import "crypto/tls"

const (
TLSVersionSSL30 TLSVersion = tls.VersionSSL30

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported const TLSVersionSSL30 should have comment (or a comment on this block) or be unexported

@urso urso merged commit 419be75 into elastic:feature-functionbeat-gcp Jan 14, 2020
@urso urso deleted the tls13-optional branch January 14, 2020 17:28
@andresrc andresrc added the Team:Integrations Label for the Integrations team label Mar 6, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Only compile with TLS1.3 support for go1.13 or newer is used. If an
older go version is used we stick with TLS1.2 max.

The change also introduces TLSVersionMin/Max and
TLSVersionDefaultMin/Max constants, so to keep the tests intact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants