add chainguard osv feed#1205
Conversation
797b578 to
2c2b429
Compare
| # NOTE: schema and distribution version are actually set on init depending | ||
| # on which feed we configure the provider to use. | ||
| __schema__ = schema.OSSchema() | ||
| __distribution_version__ = int(__schema__.major_version) |
There was a problem hiding this comment.
Is it a problem if this always reports OSSchema? I ensured the argument to writer.write below is the actual, correct schema
d620923 to
8ac7bbf
Compare
|
This appears to be a dupe of a PR by Ville updating the vunnel provider. Humbly, I think creating a new parser is much cleaner as an approach though |
8ac7bbf to
52af1d3
Compare
|
|
52af1d3 to
2a887d5
Compare
b435fe8 to
1df5f76
Compare
1df5f76 to
3795fec
Compare
There was a problem hiding this comment.
Warning
Changes github configuration or dependencies — this requires manual review from @anchore/tools
No action from the PR author is needed.
Guarded files touched in this PR:
.github/scripts/dev-shell.sh(sha:ffc651d4e069a6d2ba96f750e0f31c87b2da595a)
This review disposition can be dismissed after manual review.
258465e to
98e6ed4
Compare
provider Signed-off-by: crosleyzack <mail@crosleyzack.com> Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: crosleyzack <mail@crosleyzack.com> Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: crosleyzack <mail@crosleyzack.com> Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: crosleyzack <mail@crosleyzack.com> Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: crosleyzack <mail@crosleyzack.com> Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
fa339a0 to
39b57d5
Compare
|
|
||
| # Override with VUNNEL_PROVIDERS_WOLFI_ENABLE | ||
| # Enable allows us to switch to an OSV feed in the future if/when one becomes available | ||
| enable: bool = True |
There was a problem hiding this comment.
Why does this have a different name for Wolfi than for Chainguard?
There was a problem hiding this comment.
Because the Wolfi information is in the same OSV feed as the chainguard info, so to have wolfi use the chainguard information it would be use_osv == true in Chainguard and disabling wofli. This is part of our larger move to no longer have multiple namespaces for our OS
There was a problem hiding this comment.
What should the distro field be? I think some images have wolfi in /etc/os-release and some have chainguard. Is that going to stop happening?
There was a problem hiding this comment.
My understanding is this: at some point, Wolfi will stop being it's own namespace (all the data will be in the chainguard feed), and this gives us a config-only switch to turn off the wolfi feed when that happens. makes sense and looks good.
There was a problem hiding this comment.
We still have both. If you look at https://packages.cgr.dev/chainguard/v3/osv/CGA-27xx-xp52-rjpm.json as an example, we have two affected entries: one for Chainguard and one for Wolfi
Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: Zackary Crosley <zackary.crosley@chainguard.dev>
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Dismissing review because replacing pip with uv pip in dev shell seems like a correct change.
What
Adds the ability for the chainguard provider to consume the Chainguard OSV feed in addition to the chainguard secdb feed
Why
We are trying to migrate to OSV due to the additional context and fidelity it provides. The SecDB feed is slated to be deprecated end of this year (2026)
Notes
The quality tests passed, which is to be expected as no behavior should have changed.
Succesfully ran
VUNNEL_PROVIDERS_CHAINGUARD_USE_OSV=true VUNNEL_ROOT=data_osv uv run vunnel run chainguardandGRYPE_DB_PROVIDER_ROOT=../vunnel/data_osv GRYPE_DB_BUILD_DIR=./db_osv/6 go run ./cmd/grype-db build --schema 6to create grype-dbPart of Chainguard issue INT-520