Repository navigation
[8.19](backport #54625) [9.5] auditbeat: Update quark dependency to version 0.9.0 - #54653
Conversation
* [auditbeat] Replace use of QQ_ALL_BACKENDS (#52574) The quark attribute flag QQ_ALL_BACKENDS is being removed in future versions of go-quark. This removes its use from auditbeat. Instead of using QQ_ALL_BACKENDS, consumers will be responsible for explicitly setting the backend to be used, and retrying with a different backend in case of failure. Now auditbeat will attempt eBPF first, then attempt kprobe if it fails; this is the same behaviour quark has with QQ_ALL_BACKENDS (cherry picked from commit 6861354) * auditbeat: adapt to quark 0.8 backend flags and since-boot times (#52623) * auditbeat: adapt to quark 0.8 since-boot timestamps quark 0.8 hands out Proc.TimeBoot and Exit.ExitTimeProcess as nanoseconds since boot instead of since the epoch (quark CHANGES 0.7->0.8): without conversion, process.start and process.end would be dated shortly after 1970. Convert with the new quark.TimeToWallclock() everywhere they feed process.start and process.end, in both quark providers. Emitted events are unchanged. quark's boottime epoch, cached at quark_queue_open(), also moves when the system clock is stepped (say NTP correcting a clock that was wrong at boot), and keeping it fresh is the consumer's job. Both providers call quark.UpdateBoottime() on their existing 5-second stats cadence: it re-reads /proc/stat btime, which is stable between reads and only moves on a step, and quark stores it only when it actually changed. Corrections apply retroactively to anything translated afterwards. The backend flag changes (QQ_ALL_BACKENDS removal) landed separately in #52574. go-quark is pinned to a pre-release of the 0.8 update (elastic/go-quark#40) and will be bumped to the tagged release before merging. * auditbeat: pin go-quark to v0.8.0 * auditbeat: fix goimports alignment in quark test (cherry picked from commit 7b4b565) * auditbeat: update for quark 0.9 changes (#53284) * auditbeat: update for quark 0.9 changes * auditbeat: update go-quark to v0.9.0 * auditbeat: add fragment * auditbeat: review feedback on quark 0.9 update (cherry picked from commit 181205b) Co-authored-by: Michael Wolf <michael.wolf@elastic.co> Co-authored-by: Nicholas Berlin <56366649+nicholasberlin@users.noreply.github.com> (cherry picked from commit a998fe3)
🤖 GitHub commentsJust comment with:
|
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
|
This pull request is merged. |
Dependency Update AnalysisSummary: Dependency: github.com/elastic/go-quark v0.6.0 → v0.9.0Ecosystem: Go
Changelog highlights (v0.6.0 → v0.9.0)
Usage in this repository
Compatibility assessment
Labels Applied
What is this? | From workflow: Observability Agentic Workflow — Pull Request Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Automerge skippedAutomerge skipped this pull request because the To allow automerge for this kind of update, enable the matching collection under Automerge on the Control Plane Dashboard (the See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard. Collections currently enabled for automerge: Changed files considered:
|
Pick up the elastic-agent-libs import (#54570) and the go-quark 0.9.0 upgrade (#54653) from 8.19, both of which this backport depends on: the FIM eBPF reader needs quark's File.ChangeMask, first available in quark 0.8, and 8.19 now imports logp and mapstr from pkg/ rather than from the elastic-agent-libs module. Conflict resolution: - file_integrity: keep this backport's ebpfreader_supported.go and eventreader_ebpf.go, importing logp from github.com/elastic/beats/v7/pkg. event_linux_test.go likewise for mapstr. - go.mod, go.sum: take 8.19's and drop only ebpfevents, then tidy. This also restores the sarama and brotli versions the branch had fallen behind on. - NOTICE.txt: regenerated. Assisted-By: Claude Code Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Pick up the elastic-agent-libs import (#54570) and the go-quark 0.9.0 upgrade (#54653) from 8.19, both of which this backport depends on: the FIM eBPF reader needs quark's File.ChangeMask, first available in quark 0.8, and 8.19 now imports logp and mapstr from pkg/ rather than from the elastic-agent-libs module. Conflict resolution: - file_integrity: keep this backport's ebpfreader_supported.go and eventreader_ebpf.go, importing logp from github.com/elastic/beats/v7/pkg. event_linux_test.go likewise for mapstr. - go.mod, go.sum: take 8.19's and drop only ebpfevents, then tidy. This also restores the sarama and brotli versions the branch had fallen behind on. - NOTICE.txt: regenerated.
Proposed commit message
This brings
8.19up-to-par with9.5,9.6regardinggo-quark: all these branches now usego-quarkv0.9.0.It cherry picks the following commits that were previously merged in
9.5:which cherry picks the following commits that were previously merged in
main:Merging this PR to both
8.19and9.5is a pre-requisite for the backports (see Related Issues) of #53507 to8.19and9.5to succeed.Checklist
I have made corresponding changes to the documentationN/AI have made corresponding change to the default configuration filesN/Astresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.How to test this PR locally
Related Issues
This is an automatic backport of pull request #54625 done by [Mergify](https://mergify.com).