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

feat(signatures): expose signatures helpers as Go module #3765

Merged

Conversation

AlonZivony
Copy link
Collaborator

1. Explain what the PR does

To allow users the option to use the up-to-date helpers for Go signatures, the helpers were exported to be an external Go module.

f9a60e590 feat(signatures): expose signatures helpers as Go module

2. Explain how to test it

3. Other comments

@AlonZivony
Copy link
Collaborator Author

This will require a follow-up PR to remove the replace in the go.mod file.

@yanivagman
Copy link
Collaborator

Please see my comment #3705 (comment)

@AlonZivony
Copy link
Collaborator Author

Using signatures as an .so or built in is not so important to determine what to do here in my opinion.
If we import the Tracee module, we need to have sophisticated make file to run unit tests because of the cgo and all.
It is very inconvenient to work with Tracee as a dependency, and also inaccurate because Tracee use the signatures, and not vice-versa.
So dividing the helpers from Tracee to allow more healthy dependencies is the best approach regardless of the way the signatures will be integrated into the Tracee in the end

Copy link
Collaborator

@NDStrahilevitz NDStrahilevitz left a comment

Choose a reason for hiding this comment

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

FWIW, i'm +1 for this change.

@rafaeldtinoco rafaeldtinoco requested review from yanivagman and removed request for rafaeldtinoco January 5, 2024 16:21
Copy link
Collaborator

@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -180,3 +181,7 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
kernel.org/pub/linux/libs/security/libcap/psx v1.2.68 // indirect
)

replace github.com/aquasecurity/tracee/signatures/helpers => ./signatures/helpers
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please replace this after merged

go.mod Outdated Show resolved Hide resolved
signatures/helpers/go.mod Outdated Show resolved Hide resolved
@AlonZivony AlonZivony force-pushed the feature/signatures-go-module branch 2 times, most recently from 36bafa3 to 4db321b Compare January 22, 2024 13:53
To allow users the option to use the up-to-date helpers for Go
signatures, the helpers were exported to be an external Go module.
Copy link
Collaborator

@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

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

LGTM

@yanivagman yanivagman merged commit 67dec94 into aquasecurity:main Jan 22, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants