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

Question on custom binaries #1178

Closed
vsoch opened this issue Aug 26, 2022 · 4 comments
Closed

Question on custom binaries #1178

vsoch opened this issue Aug 26, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@vsoch
Copy link

vsoch commented Aug 26, 2022

Hiya!

I was testing syft on a container, and I had a custom binary (created via a spack view, so spack is gone) and I noticed that syft didn't report / find it. Are random / one off binaries not find-able because they have to be linked to a known package manager? Thank you!

@spiffcs
Copy link
Contributor

spiffcs commented Aug 29, 2022

👋 Thanks for filing the issue @vsoch.

You are correct that random one-off binaries might not be listed if we don't have a cataloger for that specific package manager.

A possible solution here is to add this functionality where syft is aware of the spack database so it's able to generate a manifest of packages installed with that package manager.

It's not something we have as a priority at this exact moment, but patches are welcome and we can take a look at adding it when more bandwidth opens up =)

@vsoch
Copy link
Author

vsoch commented Aug 29, 2022

I could definitely give a shot to contribute that - I love go! How do you handle package managers that have non-deterministic locations? E.g., you can install spack mostly anywhere - and sometimes in containers there are environment variables to give hint about it, but it's not required. There also can be a full spack install and just a view, which would be harder to detect. There is, however a fairly predictable structure for both of those things. Are there current package managers that have a similar design already added to Syft I could take a look at?

@spiffcs spiffcs self-assigned this Oct 6, 2022
@spiffcs spiffcs added the enhancement New feature or request label Oct 13, 2022
@tgerla
Copy link
Contributor

tgerla commented Jan 26, 2023

Hey @vsoch, sorry we never replied to your questions above. We now have some good information about implementing new catalogers in the DEVELOPING document: https://github.com/anchore/syft/blob/main/DEVELOPING.md#syft-catalogers -- please take a look if you're still interested.

I'll go ahead and close this ticket out, but if you're interested in digging in, please let us know, we are happy to help either here or in our Slack channel. Thanks!

@tgerla tgerla closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
@vsoch
Copy link
Author

vsoch commented Jan 26, 2023

Thanks! I'll take a look and can ping again if I have questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

3 participants