Skip to content

Update to elastic/beats@abd6a93bf275#5082

Merged
axw merged 2 commits intoelastic:masterfrom
axw:update-beats
Apr 13, 2021
Merged

Update to elastic/beats@abd6a93bf275#5082
axw merged 2 commits intoelastic:masterfrom
axw:update-beats

Conversation

@axw
Copy link
Copy Markdown
Member

@axw axw commented Apr 13, 2021

Motivation/summary

Update beats. This brings in elastic/beats#24964.

How to test these changes

  1. Install apm-server (don't just make apm-server, this is a shortcut for development and does not build PIE)
  2. Check the binary is PIE (see https://unix.stackexchange.com/questions/89211/how-to-test-whether-a-linux-binary-was-compiled-as-position-independent-code)

Related issues

Closes #4960

@ghost
Copy link
Copy Markdown

ghost commented Apr 13, 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: Pull request #5082 updated

  • Start Time: 2021-04-13T05:18:03.148+0000

  • Duration: 38 min 13 sec

  • Commit: b633a7a

Test stats 🧪

Test Results
Failed 0
Passed 6274
Skipped 120
Total 6394

Trends 🧪

Image of Build Times

Image of Tests

@axw axw marked this pull request as ready for review April 13, 2021 05:59
@axw axw requested a review from a team April 13, 2021 05:59
Copy link
Copy Markdown
Contributor

@stuartnelson3 stuartnelson3 left a comment

Choose a reason for hiding this comment

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

# go build -buildmode=pie -o apm-server-pie ./x-pack/apm-server
# hardening-check apm-server-pie
apm-server-pie:
 Position Independent Executable: yes
 Stack protected: yes
 Fortify Source functions: yes (some protected functions found)
 Read-only relocations: yes
 Immediate binding: yes
 Stack clash protection: unknown, no -fstack-clash-protection instructions found
 Control flow integrity: no, not found!

🥳

Comment thread idxmgmt/manager_test.go
assert.Equal(t, tc.policiesLoaded, len(clientHandler.policies), "policies")
assert.Equal(t, tc.aliasesLoaded, len(clientHandler.aliases), "aliases")
assert.Len(t, clientHandler.policies, tc.policiesLoaded)
assert.Len(t, clientHandler.aliases, tc.aliasesLoaded)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@axw axw merged commit bb856fc into elastic:master Apr 13, 2021
@axw axw deleted the update-beats branch April 13, 2021 07:04
@tonymeehan
Copy link
Copy Markdown

Wooo!

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.

Use -buildmode=pie (position independence executable)

3 participants