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

Create nginx binary classifier #1988

Merged

Conversation

SemProvoost
Copy link
Contributor

Create nginx binary classifier

Closes #1945

@SemProvoost SemProvoost force-pushed the add-support-for-nginx-binary-version-detection branch from 45f20a8 to cc81b1a Compare August 2, 2023 13:52
Signed-off-by: SemProvoost <27961543+SemProvoost@users.noreply.github.com>
Signed-off-by: SemProvoost <27961543+SemProvoost@users.noreply.github.com>
@SemProvoost SemProvoost force-pushed the add-support-for-nginx-binary-version-detection branch from cc81b1a to 80815a7 Compare August 2, 2023 14:28
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

Are you able to add a couple tests for this? There are a few ways to do this: copy a small amount out of the binary that contains the version, you can see examples of this in the test fixtures here. Alternately, you can extract a binary from a (small, hopefully) image, see examples here.

syft/pkg/cataloger/binary/default_classifiers.go Outdated Show resolved Hide resolved
Signed-off-by: SemProvoost <27961543+SemProvoost@users.noreply.github.com>
Signed-off-by: SemProvoost <27961543+SemProvoost@users.noreply.github.com>
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! 👍

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.

Add binary cataloger for Nginx built from source
2 participants