Skip to content

feat(redhat): update CSAF VEX fetcher for new feed format#425

Open
prarit wants to merge 1 commit into
aquasecurity:mainfrom
prarit:HUM-764
Open

feat(redhat): update CSAF VEX fetcher for new feed format#425
prarit wants to merge 1 commit into
aquasecurity:mainfrom
prarit:HUM-764

Conversation

@prarit

@prarit prarit commented Mar 28, 2026

Copy link
Copy Markdown
Update the existing redhat-csaf-vex fetcher to handle the new VEX feed
format that will replace the current feed on April 1 2006.

Changes:
- Switch from zstd to gzip archive format
- Use time.Now() for archive date since the new format has no date in
  the filename, with a WithNow option for testing
- Handle both RFC3339 and colonless timezone offset formats in
  changes.csv timestamps
- Download the public repository-to-cpe.json and save all entries for
  use by the trivy-db parser
- Update test data and test infrastructure for gzip archives
- Use archive Last-Modified date instead of current time to refresh
  archive

The base URL currently points to vex-alpha for testing and will be
changed to the production vex URL after the April 1 migration.

Co-authored-by: Cursor <noreply@cursor.ai>
Signed-off-by: Prarit Bhargava <prarit@redhat.com>

Update the existing redhat-csaf-vex fetcher to handle the new VEX feed
format.

Changes:
- Switch from zstd to gzip archive format
- Use the archive's HTTP Last-Modified header to determine the archive
  creation date for accurate delta processing, with a WithNow fallback
  for testing
- Handle both RFC3339 and colonless timezone offset formats in
  changes.csv timestamps
- Download the public repository-to-cpe.json and save all entries for
  use by the trivy-db parser
- Update test data and test infrastructure for gzip archives
- Point base URL to the new vex-feed endpoint

Co-authored-by: Cursor <noreply@cursor.ai>
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
@CLAassistant

CLAassistant commented Apr 9, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants