-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[auditbeat] Use shared process cache in add_session_metadata
processor
#40934
Merged
Merged
Changes from 55 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
517ca28
WIP
mjwolf fc949de
rename packages
mjwolf 0dab06c
Get provider working
mjwolf f0c76b2
Add pgid and tty info
mjwolf 2d6054f
use default attr
mjwolf 07b9d79
WIP
mjwolf 1f83306
Enrich parent, group leader, session leader with info from quark events
mjwolf c630b75
WIP
mjwolf 8c5da38
Merge branch 'quark2' of github.com:mjwolf/beats into quark2
mjwolf 0f701dc
WIP
mjwolf c2fa815
WIP
mjwolf d7e5d99
formatting
mjwolf 8f1cf0b
Merge branch 'quark2' of github.com:mjwolf/beats into quark2
mjwolf a08abf0
redo sync
mjwolf ee4f252
Merge remote-tracking branch 'upstream/main' into quark2
mjwolf 6019016
Use quark entryleader
mjwolf 0bc0666
Merge branch 'quark2' of github.com:mjwolf/beats into quark2
mjwolf 2feebe1
Use quark entryleader
mjwolf 298d59c
Send end time
mjwolf 4dfeb9f
Update timestamp calculations
mjwolf 77ea6f3
Merge remote-tracking branch 'upstream/main' into quark2
mjwolf 3fa6dd3
update quark ref
mjwolf 590c0eb
Use new quark version
mjwolf 5cca22f
protect quark calls with lock
mjwolf 743d15f
Set more things correctly
mjwolf cb255eb
Replace legacy ebpf provider with modern provider
mjwolf c49bfe5
format
mjwolf f3ace30
use quark package
mjwolf 9b21e16
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 635b33a
fix lint errors
mjwolf 4e2d70d
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 82252b1
add license override for quark
mjwolf b512748
update notice
mjwolf 3b4019d
update quark version
mjwolf 72c5988
update quark ver
mjwolf b4e79bf
use go-quark in sessionmd
mjwolf 06f3708
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf d485ccc
fix lint error
mjwolf 84cc436
Only use modernprovider on build that are supported by go-quark
mjwolf abf5341
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 491090a
Update go-quark
mjwolf 37c3ce2
update notice
mjwolf 3f7a5eb
Merge branch 'main' into modern-session-view
mjwolf aa10e60
revert seccomp change
mjwolf 66a11ee
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 84a216f
revert seccomp changes
mjwolf 3890176
Use replace directive in go.mod
mjwolf 9893811
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 08299c2
Update quark flags
mjwolf 2da7e36
Use published elastic/go-quark
mjwolf 8f427cb
Merge branch 'main' into modern-session-view
mjwolf 48c510d
upgrade to go-quark v0.1.1
mjwolf 4aee1ed
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 07b8576
stop enrichment on error
mjwolf 71e9d27
update to go-quark v0.1.2
mjwolf fc7671e
Merge remote-tracking branch 'upstream/main' into modern-session-view
mjwolf 87a33cf
rework from code review feedback
mjwolf b2eb7dd
change to pointer receiver
mjwolf 874902c
more review feedback changes
mjwolf 0fb5dc0
Merge branch 'main' into modern-session-view
mjwolf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14745,6 +14745,18 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/elastic/go-quark | ||
Version: v0.1.2 | ||
Licence type (autodetected): Apache-2.0 | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/elastic/[email protected]/LICENSE.txt: | ||
|
||
Source code in this repository is licensed under the Apache License Version 2.0, | ||
an Apache compatible license. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/elastic/go-seccomp-bpf | ||
Version: v1.4.0 | ||
|
@@ -23958,11 +23970,11 @@ Contents of probable licence file $GOMODCACHE/go.elastic.co/[email protected]/LICENS | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : go.elastic.co/go-licence-detector | ||
Version: v0.6.1 | ||
Version: v0.7.0 | ||
Licence type (autodetected): Apache-2.0 | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/go.elastic.co/go-licence-detector@v0.6.1/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/go.elastic.co/go-licence-detector@v0.7.0/LICENSE: | ||
|
||
|
||
Apache License | ||
|
@@ -43063,37 +43075,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
THE SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/gobuffalo/here | ||
Version: v0.6.7 | ||
Licence type (autodetected): MIT | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/gobuffalo/[email protected]/LICENSE: | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019 Mark Bates | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/goccy/go-json | ||
Version: v0.10.2 | ||
|
@@ -49821,41 +49802,6 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/karrick/godirwalk | ||
Version: v1.17.0 | ||
Licence type (autodetected): BSD-2-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/karrick/[email protected]/LICENSE: | ||
|
||
BSD 2-Clause License | ||
|
||
Copyright (c) 2017, Karrick McDermott | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/kballard/go-shellquote | ||
Version: v0.0.0-20180428030007-95032a82bc51 | ||
|
@@ -50613,37 +50559,6 @@ The above copyright notice and this permission notice shall be included in all c | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/markbates/pkger | ||
Version: v0.17.1 | ||
Licence type (autodetected): MIT | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/markbates/[email protected]/LICENSE: | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019 Mark Bates | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/martini-contrib/render | ||
Version: v0.0.0-20150707142108-ec18f8345a11 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need an override for this? Is there something we can do in the go-quark repo to make this not required? Is it same reason that https://pkg.go.dev/github.com/elastic/go-quark does not work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is because we don't have the full license text in https://github.com/elastic/go-quark/blob/main/LICENSE.txt. This was requested by legal, but I think we can discuss changing it to the full license, since it seem to cause both of these problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do ask about this because it seems like an uncommon pattern to follow.