Skip to content

chore(image): accept Debian won't-fix LOW CVEs in .trivyignore - #573

Merged
c-vigo merged 5 commits into
devfrom
chore/566-trivyignore-wontfix-lows
Jun 9, 2026
Merged

c-vigo merged 5 commits into
devfrom
chore/566-trivyignore-wontfix-lows

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Accept 78 unfixed LOW Debian OS-package CVEs from the next-release image into .trivyignore with a shared risk note and 2026-12-01 expiration. Adds a check-expirations utility and wires it into pre-commit, CI, and the nightly security scan so expired exception entries fail the pipeline (IEC 62304 exception register model). The GitHub Security tab LOW count will drop once :latest is refreshed to the post-buckets-B–D image.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .trivyignore — 78 unfixed Debian 12.14 LOW CVEs grouped by package family; shared risk assessment and Expiration: 2026-12-01
  • packages/vig-utils — New check-expirations CLI to validate Expiration: directives; 13 unit tests
  • .pre-commit-config.yaml — Hook runs check-expirations on .trivyignore changes
  • .github/workflows/ci.yml — Validate .trivyignore before Trivy scan; replace inline dependency-review expiry bash with check-expirations
  • .github/workflows/security-scan.yml — Validate .trivyignore before nightly :latest scan
  • CHANGELOG.md, SECURITY.md, docs/CONTAINER_SECURITY.md — Document accepted-risk set and enforcement cadence
  • assets/workspace/ — Sync manifest updates for pre-commit config and CHANGELOG

Changelog Entry

Security

  • Accept Debian won't-fix LOW CVEs in .trivyignore (#566)
    • Document 78 unfixed LOW Debian OS-package CVEs from the next-release image with shared risk note and 2026-12-01 expiration
    • Add check-expirations utility with pre-commit and CI enforcement so expired .trivyignore entries fail the pipeline
    • Security tab LOW count drops after the next release refreshes :latest

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • uv run pytest packages/vig-utils/tests/test_check_expirations.py — 13 passed
  • uv run check-expirations .trivyignore — 80 entries validated
  • trivy image --severity LOW --ignorefile .trivyignore ghcr.io/vig-os/devcontainer:dev — 0 LOW findings after ignore

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Trivy scan of the current :dev image (post buckets B–D) found 183 LOW findings → 78 unique unfixed CVEs, down from ~395 in the issue. GHCR :latest is still on 0.3.4; Security tab LOW count will reflect accepted risk only after the next release promotes :latest.

Refs: #566

c-vigo added 5 commits June 9, 2026 18:41
Validate Expiration directives in security exception files
(.trivyignore, dependency-review-allow.txt); fail on expired or
undated entries. Register console script.

Refs: #566
Add pre-commit hook and CI/nightly steps that fail on expired
.trivyignore entries; replace inline dependency-review expiry bash
with check-expirations.

Refs: #566
Document 78 unfixed Debian 12.14 LOW OS-package CVEs with shared
risk note and 2026-12-01 expiration.

Refs: #566
@c-vigo c-vigo self-assigned this Jun 9, 2026
@c-vigo
c-vigo enabled auto-merge June 9, 2026 16:48
@c-vigo
c-vigo merged commit 478138c into dev Jun 9, 2026
16 checks passed
@c-vigo
c-vigo deleted the chore/566-trivyignore-wontfix-lows branch June 9, 2026 16:54
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.

1 participant