auditbeat/metricbeat/packetbeat - verify required glibc version#34943
auditbeat/metricbeat/packetbeat - verify required glibc version#34943andrewkroh merged 6 commits intoelastic:mainfrom
Conversation
Check the minimum required glibc on cross-build artifacts. This is a precautionary check to ensure binaries are aligned the current OS support matrix (https://www.elastic.co/support/matrix).
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Any reason not to also do this in the Filebeat and Metricbeat builds? |
pkg.go:230:6: func `updateWithDarwinUniversal` is unused (unused) various: non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint) import of package `github.com/pkg/errors` is blocked (gomodguard)
|
Filebeat already has it. I will add it to Metricbeat. |
|
It looks like this has detected a problem with Packetbeat on linux/386. It won't be able to run on Debian 9 (glibc 2.24) (which is listed on the support matrix). There are a bunch of inconsistencies on the support matrix (the test checks that things run on at least centos 7 (glibc 2.17) b/c I think that is our true minimum requirement).
|
|
I resolution I chose for the x-pack/packetbeat failure was to use the debian9 golang-crossbuild image for the linux/386 build. This produces a binary that requires glibc 2.7.0. |
Check the minimum required glibc on cross-build artifacts. This is a precautionary check to ensure binaries are aligned the current OS support matrix (https://www.elastic.co/support/matrix). Relates #34938 * {packetbeat,x-pack/packetbeat} Use debian9 crossbuild image for linux/386 because the change in elastic/beats##34921 broke support for older operating systems. * Fix golangci-lint warnings pkg.go:230:6: func `updateWithDarwinUniversal` is unused (unused) various: non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint) import of package `github.com/pkg/errors` is blocked (gomodguard)
What does this PR do?
Check the minimum required glibc on cross-build artifacts. This is a precautionary check to ensure binaries are aligned the current OS support matrix (https://www.elastic.co/support/matrix).
Why is it important?
Prevent unintended support matrix incompatibilities.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.How to test this PR locally
cd auditbeat; PLATFORMS="linux/amd64 linux386" mage -v crossBuildRelated Issues