Skip to content

fix: gate on fixes installable from UBI repos - #82

Open
joey-huckabee wants to merge 3 commits into
mainfrom
fix/ubi-installable-vulnerability-gate
Open

joey-huckabee wants to merge 3 commits into
mainfrom
fix/ubi-installable-vulnerability-gate

Conversation

@joey-huckabee

@joey-huckabee joey-huckabee commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Change

Enforce the owner-approved installable-UBI-fix policy in both native development-image jobs, following sail-ubi commit 861d92f. The existing evaluator was not wired into CI; this PR wires it in and deliberately retains known non-RPM blockers.

  • Extract repository configuration from the exact native digest-pinned UBI Micro base used by assembly. Query its enabled BaseOS, AppStream and CodeReady Builder repositories with fresh metadata, isolated from runner repositories.
  • Block fixable HIGH/CRITICAL findings if an RPM version meets any vendor fixed version, using native RPM epoch/version/release comparison. Defer only RPM fixes proven unavailable. Non-RPM findings, invalid evidence and query failures still block; preserve Grype's highest related-advisory severity.
  • Retain full scanner reports, admission decisions, repository configuration and vendor fixed versions in job summaries. Weekly scheduled CI maintains one issue and comments only when the deferred set changes; tracking is skipped on PRs.
  • Preserve required job names, runtime checks and disabled release publication. No RPM lock exists: assembly installs no packages and inherits digest-pinned UBI RPMs. Refresh both base pins to UBI 9.9 to apply the now-published libgcc fixes on AMD64 and ARM64. The upstream binary is unchanged.
  • Update SECURITY.md, CHANGELOG and CI/release guidance.

Validation

Local: 120 Python tests, four native librpm/DNF test methods, 14 lock refusal checks, YAML/actionlint and repository pre-commit checks pass. 24 live repository-query cases passed across both architectures. Final native CI run 43424788070 completed for commit a752f29 (tested PR merge revision 8032971). All build, filesystem, provenance, SBOM, scanner, and runtime tests passed on AMD64 and ARM64, including backup/restore and upgrade/rollback. Both jobs failed only at the vulnerability gate on the retained non-RPM Go findings. The required native image aggregate correctly remains red. Repository validation, configuration security, dependency review and CodeQL passed.

All four raw final scanner inventories and both admission JSON artifacts were downloaded and read. Both native repository queries succeeded without errors. Required job names are unchanged and all changed files use LF endings.

Additional live probes using explicitly synthetic unavailable RPM thresholds deferred those RPM test cases on both architectures while retaining all real Go blockers. Missing repository configuration blocked with zero deferrals. The actual final inventories contain no deferred findings.

Comparable pre-refresh scans: PR CI run 43423934497, using the original main-branch base pins and fresh scanner databases. Both full scanner inventories were downloaded and read. HIGH/CRITICAL scanner records, including Grype related severity; columns are fixable-blocking / deferred / unfixed:

Scanner Architecture Before After
Trivy amd64 1 / 0 / 0 1 / 0 / 0
Trivy arm64 1 / 0 / 0 1 / 0 / 0
Grype amd64 7 / 0 / 5 5 / 0 / 5
Grype arm64 7 / 0 / 5 5 / 0 / 5

The pre-refresh Grype reports contain two installable libgcc fixes plus five Go-module blockers. Live UBI queries correctly block both RPM findings; the replacement base RPM databases contain libgcc 0:11.5.0-17.el9_9, above the vendor fixed threshold. Trivy's blocker is also a Go module. The final reports confirm both libgcc records are gone, while all six scanner-specific non-RPM records remain. The before/after Grype database build is identical (2026-11-13T06:20:21Z). These non-RPM findings must continue blocking.

Older main CI run 42962739858 reported Grype 5 / 0 / 7 on both architectures; two records changed from unfixed to fixable when the database refreshed. Trivy was 1 / 0 / 0. Main CI was inventory-only, so those “blocking” counts describe the existing evaluator's decisions, not a passing gate. Evaluation record.

The native evidence reconciliation CI job was skipped because its prerequisite matrix correctly failed the gate; the downloaded AMD64/ARM64 records were reconciled locally with the repository's normal verifier against the exact run, attempt and merge SHA. The tracker dry-run also accepted both actual admission artifacts.

Not verified: live scheduled issue creation/commenting, intentionally skipped on PRs. Unit tests cover singleton creation, unchanged sets, changes, resolution/reopening and missing-evidence refusal. No issue was modified, no exception or merge is requested, and release publication remains disabled.

Owner decision: remaining blockers

  • golang.org/x/net 0.61.0, fixed in 0.62.0. Already bumped on SeaweedFS master, but not released.
  • apache/thrift 0.24.0, fixed in 0.25.0. Dependency path: weed/s3api/iceberg → apache/iceberg-go → arrow-go parquet → apache/thrift. Not yet bumped upstream.

Main's image contains these same affected dependencies. Its next CI run with this gate applied will fail the same way; current main CI is inventory-only. PR #82 remains open and red pending the owner's decision. No Go module bumps, replace directives, source patches, or exemptions are authorized.

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