Skip to content

Conversation

@wagoodman
Copy link
Contributor

Primarily, this PR makes the following changes:

  • adds missing API-level docs to cataloger configurations
  • adds # app-config: <field> to API-level config fields to map which fields affect application-level configuration. In the near future we can use these in documentation to hint at how the catalogers can be configured.

This PR is also setting up for future

  • migrates cataloger globs and names to be literals passed to generic cataloger constructors. This will help with detecting capabilities in upcoming PRs.
  • When making the above change it was found that the pkgtest helpers were making assumptions about the FoundBy field that were incorrect. When comparing both packages and relationships, you cannot depend on comparing this field if the parser function leans on the generic cataloger capabilities to fill this value in (as they should). For this reason the FoundBy field on a package is now ignored when comparing relationships (but not packages).

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the documentation Improvements or additions to documentation label Oct 14, 2025
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.

I'm not opposed to any of these changes, per-se, but I don't understand the app-config comments, since the two configurations are intentionally decoupled. Maybe a better spot for this would be in the app configuration? It would be useful to see this coupling in syft help.

@wagoodman
Copy link
Contributor Author

wagoodman commented Oct 14, 2025

I do agree with your points about the awkwardness here, but I currently don't have another better spot to put this information without similar caveats (after chatting through the details offline). I think I'll continue forth with the PR as-is since there is no impact on the movability of this information later (we can always change this later since there is no impact on the API stability or anything like that).

@wagoodman wagoodman merged commit d22914b into main Oct 14, 2025
12 checks passed
@wagoodman wagoodman deleted the add-config-docs branch October 14, 2025 17:58
spiffcs added a commit that referenced this pull request Oct 22, 2025
* main:
  chore(deps): update tools to latest versions (#4302)
  chore(deps): bump github.com/github/go-spdx/v2 from 2.3.3 to 2.3.4 (#4301)
  chore(deps): bump github/codeql-action from 4.30.8 to 4.30.9 (#4299)
  support universal (fat) mach-o binary files (#4278)
  chore(deps): bump sigstore/cosign-installer from 3.10.0 to 4.0.0 (#4296)
  chore(deps): bump anchore/sbom-action from 0.20.7 to 0.20.8 (#4297)
  convert posix path back to windows (#4285)
  Remove duplicate image source providers (#4289)
  chore(deps): bump anchore/sbom-action from 0.20.6 to 0.20.7 (#4293)
  feat: add option to fetch remote licenses for pnpm-lock.yaml files (#4286)
  Add PDM parser (#4234)
  chore(deps): update tools to latest versions (#4291)
  fix: panic during java archive maven resolution (#4290)
  Extract zip archive with multiple entries (#4283)
  chore: update to use old configuration on new cosign (#4287)
  chore(deps): update anchore dependencies (#4282)
  chore(deps): bump github.com/mholt/archives from 0.1.3 to 0.1.5 (#4280)
  add docs to configs (#4281)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants