Skip to content

feat: carry OPR advisory sidecar through channel advances - #416

Open
dyl-joseph wants to merge 16 commits into
omacom:masterfrom
dyl-joseph:feat/opr-advisory-sidecar
Open

dyl-joseph wants to merge 16 commits into
omacom:masterfrom
dyl-joseph:feat/opr-advisory-sidecar

Conversation

@dyl-joseph

Copy link
Copy Markdown
Contributor

Why

Arch covers distro packages through arch-audit. OPR-built packages are silent there. This adds a CVE metadata sidecar beside the repo db, refreshed without rebuilds. It answers which known CVEs apply to each published OPR version and how fresh that answer is.

Scope

  • bin/sync-advisories plus helpers/advisory-helpers.sh ingest per-package feed JSON into omarchy.advisories.json.
  • bin/repo gains an advisories subcommand forwarded to the repo host.
  • bin/advance-channel merges sidecar entries forward with moved packages.
  • docs/opr-advisory-sidecar.md, README entries, CI hook, tests/advisory-sidecar.sh.

Tradeoffs

Merged sidecars drop their detached signature with a warning and stay fail-open until the next signed ingest. A known CVE is information, never a build failure. Missing, stale, and error states warn instead of blocking. Strictness lives with the client, not here.

Blast Radius

Additive only. Existing commands keep their behavior. Advance gains a merge step that warns and continues on failure. Package archives are never written by the refresh.

Verification

  • bash -n syntax checks pass on all touched scripts.
  • tests/advisory-sidecar.sh passes with exit 0. It asserts the sidecar validates, package archive hashes are unchanged across refresh, a new CVE updates only the sidecar, missing/stale/error never block, and banned fields never appear.
  • Note: the suite needs GNU tar and GNU date. It fails on stock macOS for that reason. It passes on Linux and on macOS with GNU tools on PATH.

Refs #378.

dyl-joseph and others added 2 commits September 12, 2026 13:41
Add CVE metadata sidecar beside the repo db, refreshed without rebuilds via bin/sync-advisories and bin/repo advisories. Advance merges entries forward with moved packages. Missing, stale, and error states stay visible and fail-open. Refs omacom#378.
Entries are pkgname:pkgver-pkgrel:arch. A feed for another version does
not stamp the live package. bin/fetch-advisories writes that feed from
OSV (purl map; mise-bin default) without touching package archives.
@dyl-joseph
dyl-joseph marked this pull request as draft September 12, 2026 21:09
…kages

missing means no source has a report for this published version yet.
Risk-facet analysis, if it ever exists, is a separate application.
An empty vulns list is not a clean scan. OPR often publishes before
OSV knows the version; ingest must keep scan_status=missing. curl -f
so HTTP errors take the same path.
@calledtoconstruct

Copy link
Copy Markdown
Contributor

Version-keying + OSV ingest (not a package scanner) as a patch on this branch: dyl-joseph#1

@dyl-joseph
dyl-joseph marked this pull request as ready for review September 13, 2026 15:29
@ryanrhughes

Copy link
Copy Markdown
Collaborator

Parking this rather than closing: since #511, channel advances and the release train are the last things still run from the host, and that surface is about to change again. Worth revisiting once the advance path is settled; the advisory sidecar idea itself is sound.

@calledtoconstruct

Copy link
Copy Markdown
Contributor

Published layout follow-up, from the note on #378: one signed file per artifact (advisories/<pkgname>-<pkgver>-<pkgrel>-<arch>.json plus .sig) instead of omarchy.advisories.json.

The feed files in this PR already have that shape. The channel document is what a refresh would rewrite for every package. This does not try to settle advance-channel; that stays on the host until the #511 cut-over. Copying the same advisory file when an artifact moves channel replaces the JSON merge.

Opening that change against this branch.

A refresh replaces that file and leaves the others alone. Channel advance copies the file with the package instead of merging a channel-wide document.
dyl-joseph and others added 2 commits October 3, 2026 17:46
The published name is <pkgname>-<pkgver>-<pkgrel>-<arch>.advisory.json, next to the archive, with a detached signature. Promote, advance, publish, remove, and clean carry or delete that file with the package. The advisory upload overwrites on refresh. The package upload does not.
@dyl-joseph

Copy link
Copy Markdown
Contributor Author

Still happy to see this one through whenever it fits your queue. All checks are green and the branch is zero behind master. If the scope is wrong for where the release flow is headed, I can split it down or reshape it however you prefer.

Keep retired repository-host commands removed. Carry advisory metadata through channel promotion and RC-to-edge publishing, preserve newer-only regressions, and fail explicitly on transfer errors.
scottjones added a commit to scottjones/omarchy-pkgs that referenced this pull request Nov 20, 2026
Sync the kernel and Mesa to today's Aurora tips, with our carries
re-applied:

- linux-aurora 7.3.0.aurora0testedgeC: omacom/linux-aurora tag edgeC
  (carry/aurora-7.3) e50bdd5dea6f, aurora-silicon/linux integration/aurora
  de2c29696952 plus our open PRs omacom#2145 to omacom#2156 and omacom#2199, omacom#1598, the J613
  Touch ID data-ready line and omacom/linux-aurora#370. Config unchanged.
- mesa-aurora and vulkan-aurora: omacom/mesa tag edgeC (carry/aurora-7.3)
  fb3b11e121c, aurora-wip 45963937b6f0 plus aurora-silicon/mesa omacom#415 and
  omacom#416.

aura stays at edgeB2 (703a0a92). Lab-tested on the M3 Air, MacBook Neo,
M4 Pro (J616s) and M2 Max (J414c).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gentlemanSoup pushed a commit to gentlemanSoup/omarchy-pkgs that referenced this pull request Nov 22, 2026
…boot loader

Move the edge Mac stack to 7.3 on the aurora-silicon base, as one set:

- linux-aurora 7.3.0.aurora0testedgeB2: omacom/linux-aurora
  carry/edgeB-7.3 (tag edgeB2) 4454eda26e59, aurora-silicon/linux
  integration/aurora 0abc2f385e54 plus our open PRs omacom#2145 to omacom#2156 and
  the cpufreq boost fix. Config adds CONFIG_EDAC=m.
- mesa-aurora and vulkan-aurora: omacom/mesa carry/edgeB-7.3 23791c134af,
  aurora-wip 57df4db849a plus aurora-silicon/mesa omacom#415 and omacom#416.
- aura 1.0.0b13.r20261118: omacom/m1n1 carry/edgeB-7.3 703a0a92, aura main
  3d517e63 plus aurora-silicon/aura omacom#294, omacom#290 to omacom#293 and omacom#233, with the
  Omarchy boot logo.
- libva-v4l2_request-avd: also install the driver as aurora_drv_video.so,
  the name libva looks for under the 7.3 GPU driver.

The three have to move together: the 7.3 GPU driver is named "aurora",
which only this Mesa opens, and this aura needs a kernel option only the
7.3 kernel has.

aura becomes the edge boot loader: it replaces m1n1-aurora and conflicts
with kernels older than 7.3, and m1n1-aurora (pkgrel 4) no longer replaces
aura, so a system update moves a Mac to aura and keeps it there. The
owners approvals and the edge metadata tests follow. rc and stable keep
m1n1-aurora: they only move by promotion, held to release/mac-inventory.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ryanrhughes pushed a commit that referenced this pull request Nov 23, 2026
The first real 7.3 release number, replacing the 0testedgeC test build.
The kernel is aurora-silicon integration/aurora 00cbc67d1a0c with our open
aurora-silicon PRs carried on top (#1598 is upstream now; #2149 and #2151
re-pinned) and the M1 Touch ID xART-pin port of omacom/linux-aurora #486
and #506. Mesa is aurora-wip 1fdf5396758f with #415 and #416, #416
re-pinned. Both pin tag aurora-7.3.0-1 on omacom/linux-aurora and
omacom/mesa. The mesa-aurora floor from #3282 stays at edgeC.

Assisted-by: Claude:claude-opus-5-5

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
omarchy-pkgs-merge Bot pushed a commit that referenced this pull request Nov 27, 2026
Brings in aurora-silicon/mesa#906, so Rusticl finds the GPU of a kernel
whose driver is named aurora. #415 and #416 stay carried at their rebased
heads.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>

This branch has not been deployed

No deployments
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.

3 participants