Commit Graph
12 Commits
Author SHA1 Message Date
christianmanivong e8b867e5ba Merge pull request 'fix(verdict): a rebuild that regresses is never an improvement (#3)' (#4) from fix/verdict-base-os-regression into main
CI / Tests, lint (push) Successful in 16s
2026-11-15 23:42:45 +00:00
Christian Manivong 015c6e18cb fix(verdict): a rebuild that regresses is never an improvement
CI / Tests, lint (pull_request) Successful in 18s
A candidate on an older base-os than the pin, with Debian's point release
going back, or with a critical or high CVE the pin does not have and that
has a fix (the CVE gate's rule) is now "regressed": the pin stays, whatever
else it closes, and the report names each regression first.

The verdict action takes the components a nightly says moved (changes);
each is an improvement on its own, but only through the verdict, so a new
PostgreSQL minor on an older base-os is judged instead of waved through
(NetOrk/netork#2523). verdict.json carries base_os, changes and regressions.
A base-os version that cannot be read is no verdict.

Closes #3
2026-11-15 22:43:55 +01:00
christianmanivong 77b31ed835 Merge pull request 'feat(cve-gate): no image goes out with a new fixable critical or high CVE' (#2) from feat/cve-gate into main
CI / Tests, lint (push) Successful in 11s
2026-11-08 05:50:32 +00:00
Christian Manivong 1a7319bac4 feat(cve-gate): no image goes out with a new fixable critical or high CVE
CI / Tests, lint (pull_request) Successful in 13s
The release gate of NetOrk/netork#1390. The verdict answers "does a rebuild
improve on the pin?"; a release needs the other question: does the candidate
bring a critical or high CVE that the last release of the same image does not
have and that has a fix? Both inventories go to netOrk's matcher in one call
(kb-server's POST /api/v1/match, one state of its data), and only new and
fixable blocks. A new one without a fix is listed: nobody can close it yet.

No verdict never passes, and an empty NETORK_LICENSE_KEY is said so before
Trivy runs. kb.netork.io's 401 and 403 come from the licence server's
forward-auth and now say what they mean: a licence key where a kb API key
belongs, an unknown key, or a plan without feature_match.
2026-11-08 00:56:11 +01:00
christianmanivong adf80a7131 Merge pull request 'chore: Python 3.12 is the floor' (#1) from chore/python-312-floor into main
CI / Tests, lint (push) Successful in 13s
2026-10-27 09:24:32 +00:00
Christian Manivong c6db0a67b6 chore: Python 3.12 is the floor
CI / Tests, lint (pull_request) Successful in 16s
netOrk no longer supports 3.10 or 3.11 anywhere. The actions run on the
runner's job container, catthehacker/ubuntu:act-24.04, whose python3 is
3.12; CI already tests on 3.12. Refs NAPALM/driver-standard#6.
2026-10-27 10:21:55 +01:00
Christian Manivong e0de85ba45 docs: the attestations are on the platform image, not the index
CI / Tests, lint (push) Successful in 11s
Checked against netork's first signed images (main-142912c): cosign verify
on the tag succeeds, verify-attestation on it finds only the signature,
because BuildKit pushes even one platform as an index with its provenance
manifest. The CIS result and SBOM are on the linux/amd64 image.
2026-10-22 18:48:49 +02:00
Christian Manivong e7ef8fe073 feat(sign): attest only the platforms a release adds
CI / Tests, lint (push) Successful in 9s
netork's release joins an arm64 image to the amd64 one its dev build
already signed and attested, under a new index. ATTEST_PLATFORMS (the sign
action's attest-platforms) signs the new index and every platform behind
it, and attests only the ones named.
2026-10-22 18:17:10 +02:00
Christian Manivong 06825cb504 test(bump): the five tests the move left behind
CI / Tests, lint (push) Successful in 11s
Moving bump.py from base-os took its tests up to the one that checks
base-os's own dependents.toml and cut everything after it: an odd new
reference, a repo without the file yet, a dependent without a workflow, a
compose pin with the registry variable, a repo the bot may not see. They
are back; base-os's list check stays in base-os.
2026-10-22 17:54:34 +02:00
Christian Manivong ae39af4665 feat: bump moves here, and verify-base takes images by name
CI / Tests, lint (push) Successful in 12s
- image_tools/bump.py from base-os, with an action. base-python used it from
  a pinned checkout of base-os, with the bot's token; one place serves both.
  A dependent whose workflow does not exist (netork's ui-nightly.yml, on
  2026-10-22) is named and the others go on; the run fails at the end, as
  for a repository the token cannot see. bump_all holds that loop, tested.
- verify-base takes refs besides Dockerfiles: base-python builds FROM
  ${BASE_OS}, which its nightly sets, and copies CPython from Docker's
  python:3.12-slim, which is not signed with netOrk's key.
2026-10-22 17:51:05 +02:00
Christian Manivong 9232b54c6d feat: the verdict on a rebuild as an action too
CI / Tests, lint (push) Successful in 11s
base-os's nightly asks netOrk's matcher whether a rebuild improves on the
pin (image_tools/verify.py). As an action, a workflow needs nothing of this
repository but the pinned commit: no install, no checkout. A verdict that
could not be reached fails the step, as it does in base-os since the two
nights with an empty NETORK_LICENSE_KEY.
2026-10-22 16:23:51 +02:00
Christian Manivong d139d66c3d feat: judge, sign and verify netOrk's images in one place (NetOrk/netork#1390)
CI / Tests, lint (push) Successful in 18s
The CIS gate, the SBOM, the cosign signature and the matcher's verdict lived
in NetOrk/base-os, the head of the chain. Every link below it -- base-python,
engine, ui, satellite, the service images -- needs the same, so the tools
move here, and every image repository pins them by commit.

- image_tools: cis.py, cis_os.sh, sbom.py and verify.py from base-os. The
  image's own repository holds its cis.toml and packages.allow; both default
  to the working directory.
- bin/sign.sh signs whatever platforms a reference holds: base-os's index of
  amd64 and arm64 (EXPECT_PLATFORMS) or a dev image's single manifest
  (image_tools/platforms.py).
- bin/verify-base.sh checks every FROM image of a Dockerfile against
  cosign.pub before a build; one without a digest is refused
  (image_tools/dockerfile.py).
- bin/install-cosign.sh installs cosign v3.1.3 for amd64 and arm64 runners,
  checked against the release checksums.
- actions/verify-base, judge, sign wrap them for the workflows.
- cosign.pub is the public half of the COSIGN_PRIVATE_KEY_B64 org secret,
  the key rotated on 2026-10-22.
2026-10-22 16:23:00 +02:00