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

Cherry-pick #22495 to 7.x: Update Golang to 1.15.7 #23630

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Jan 21, 2021

Cherry-pick of PR #22495 to 7.x branch. Original message:

What does this PR do?

This PR updates the Go version in the repository to 1.15.7.

Why is it important?

Numerous improvements are coming with the new version of Golang. The most noteworthy is the binary sizes are reduced by 5-8%. You can check out the release notes of Golang 1.15 for more information.

Another change is that the deprecated, legacy behaviour of treating the CommonName field on X.509 certificates as a hostname when no Subject Alternative Names are present is now disabled by default. We do not expect users to update their certificates immediately. Thus, the default behaviour is kept for all existing verification modes. Furthermore, a new verification mode is added named strict. If this mode is selected Beats expects to have a SAN in the certificate.

verification_mode behaviour
"" CommonName is checked if no DNSName is available, then full check (previous behaviour)
"strict" full check with new strict SAN requirements
"full" CommonName is checked if no DNSName is available, then full check (previous behaviour, default value)
"certificate" certificate check without hostname (previous behaviour)
"none" no check (previous behaviour)

The legacy behaviour is going to be removed in the next major version 8.0. We expect users to update their certificates so it does not depend on CommonName.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

A new crossbuilder image is required: elastic/golang-crossbuild#68

This PR updates the Go version in the repository to 1.15.7.

Numerous improvements are coming with the new version of Golang. The most noteworthy is the binary sizes are reduced by 5-8%. You can check out the [release notes of Golang 1.15](https://golang.org/doc/go1.15) for more information.

Another change is that the deprecated, legacy behaviour of treating the CommonName field on X.509 certificates as a hostname when no Subject Alternative Names are present is now disabled by default. We do not expect users to update their certificates immediately. Thus, the default behaviour is kept for all existing verification modes. Furthermore, a new verification mode is added named `strict`. If this mode is selected Beats expects to have a SAN in the certificate.

`verification_mode` | behaviour
------- | -----
`""` | CommonName is checked if no DNSName is available, then full check (previous behaviour)
`"strict"` | full check with new strict SAN requirements
`"full"` | CommonName is checked if no DNSName is available, then full check (previous behaviour, default value)
`"certificate"` | certificate check without hostname (previous behaviour)
`"none"` | no check (previous behaviour)

The legacy behaviour is going to be removed in the next major version 8.0. We expect users to update their certificates so it does not depend on CommonName.

(cherry picked from commit e4ef5cc)
@kvch kvch requested review from a team as code owners January 21, 2021 21:21
@kvch kvch added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Jan 21, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 21, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 21, 2021
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jan 21, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: andrewvc commented: /test

    • Start Time: 2021-01-21T22:34:26.961+0000
  • Duration: 99 min 31 sec

  • Commit: dfb92db

Test stats 🧪

Test Results
Failed 0
Passed 17293
Skipped 1373
Total 18666

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 17293
Skipped 1373
Total 18666

@andrewvc andrewvc self-assigned this Jan 21, 2021
@andrewvc andrewvc added Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team labels Jan 21, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (Team:Uptime)

@andrewvc
Copy link
Contributor

/retest

@andrewvc
Copy link
Contributor

/test

@andrewvc andrewvc removed Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team labels Jan 21, 2021
@kvch kvch merged commit 199b7b5 into elastic:7.x Jan 25, 2021
@zube zube bot removed the [zube]: Done label Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants