Repository navigation
feat(vex): import vendor CSAF VEX feeds and share VEX decisions between federated peers - #446
Merged
Merged
Conversation
Coverage
Go by area
Web by area (lines)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #315.
Vendor CSAF VEX feeds
/api/v1/vex/feeds(CRUD +POST …/{id}/sync) and Settings > VEX feeds. A feed is a CSAFprovider-metadata.json, a ROLIE feed or a single document..sha256/.sha512hash check, detached.ascOpenPGP signature verified against pinnedpgp_keysor the provider metadata keys (fingerprint-matched);require_signatureon by default.known_not_affected/fixedstatements are matched to scanned artifacts by versioned PURL (CPE as fallback: product name + exact version) and only for vulnerabilities the scan reports (id or alias). They never replace an admin decision, a peer decision or another feed's statement.vex_statementsnow carrysource_kind(local|csaf|peer),source_name,source_ref; shown in the VEX list, scan findings table, decision dialog and generated VEX notes.Federated VEX decisions
vex_publishon a federated repo serves its local decisions (OpenVEX) atGET /federation/v1/vex(protocol version unchanged; older peers 404).vex_trust:ignore(default),suggest(pending suggestions with provenance),apply(applied only where no other statement exists). Fetched at most hourly after a successful pull; errors land invex_errorand never fail the pull.GET/POST /api/v1/repositories/{name}/vex/suggestions[/{id}/accept|dismiss]and a panel on the Security page. Only an operator accept replaces a local decision.Schema
027_vex_import.sql(+ validate):vex_feeds,vex_feed_statements,vex_suggestions, source columns,federation_peers.vex_trust,federation_repos.vex_publish, sixvex.*audit actions. New tables are inNotJournaled.Verification
internal/csaf,internal/vexsync,internal/federation,internal/api; integration tests for the store, federation endpoint/pull hook and API against Postgres.suppressed/not_affectedwith sourcecsaf/<feed>/<document URL>.bun test, i18n check (all locales). Not checked visually: headless Chromium failed to load pages on the dev machine.Docs:
docs/security/vex-feeds.md, federation ops/design, SBOM and findings pages, regenerateddocs/reference.