diff --git a/.github/workflows/call-orchestrator.yml b/.github/workflows/call-orchestrator.yml
index ab701ccdaf..04da142767 100644
--- a/.github/workflows/call-orchestrator.yml
+++ b/.github/workflows/call-orchestrator.yml
@@ -375,13 +375,13 @@ jobs:
secrets: inherit
report-main-failures:
- name: đ Report main role failures
+ name: đ Report main role failures and runtime vulnerabilities
needs:
- test-deploy-chunk-0
- test-deploy-chunk-1
- test-deploy-chunk-2
- test-deploy-chunk-3
- if: ${{ always() && github.ref == 'refs/heads/main' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}
+ if: ${{ always() && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-26.04
permissions:
issues: write
@@ -390,9 +390,18 @@ jobs:
steps:
- uses: actions/checkout@v7.0.0
- name: đ Open or append issues for failed roles
+ if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 -m cli.meta.ci.report_failures --run-id "${{ github.run_id }}" --repo "${{ github.repository }}"
+ - name: "đĨ Load the GHCR mirror prefix SPOT into job env"
+ if: ${{ !cancelled() }}
+ run: grep '^INFINITO_GHCR_MIRROR_PREFIX=' default.env >> "$GITHUB_ENV"
+ - name: đĄī¸ Open, update and close the runtime vulnerability issues
+ if: ${{ !cancelled() }}
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: python3 -m cli.meta.ci.runtime_vulnerabilities --run-id "${{ github.run_id }}" --repo "${{ github.repository }}" --ref "${GITHUB_REF}" --dir "${RUNNER_TEMP}/rescue-diagnostics"
done:
name: đ Finish pipeline
diff --git a/cli/contributing/security/README.md b/cli/contributing/security/README.md
index 2c8d2da849..7736b4c723 100644
--- a/cli/contributing/security/README.md
+++ b/cli/contributing/security/README.md
@@ -7,4 +7,5 @@ Repository-side vulnerability tooling over the pinned role images, built on the
| `make test-security` | Runs `scan`: Syft builds an SBOM of every pinned image straight from the GHCR mirror, cached by digest under `build/security/sbom`, and Trivy, Grype and OSV scan that SBOM tree with the role's threshold and suppressions. Every finding at the threshold goes to `build/test-reports/security.json`, a suppressed one with its `suppressed_until` day; the scan fails only on the unsuppressed ones. |
| `python -m cli.contributing.security.database --dir
--engines ...` | Downloads the Trivy, Grype and OSV databases a CI deploy reads. |
| `python -m cli.contributing.security.summary --report --counts --summary ` | Counts the failing findings of the report per image and per CVE, plus the suppressed total, into a JSON file and appends the tables to a Markdown summary. |
-| `python -m cli.contributing.security.issues --report --repo ` | Opens one `vulnerability` issue per image of the report that lists its CVEs, suppressed ones with their `suppressed_until` day, updates it while it stays, and closes it once no engine reports a CVE for the image. |
+| `python -m cli.contributing.security.issues --report --repo ` | Opens one `vulnerability` issue per image of the report that lists its CVEs, suppressed ones with their `suppressed_until` day, updates it while it stays, and closes it once no engine reports a CVE for the image. The head line counts the CVEs per severity. |
+| `python -m cli.meta.ci.runtime_vulnerabilities --run-id --repo --ref [ --dir ` | Run by the `report-main-failures` job of every `main` run, never for another ref: reads the hlth-runtime lines of the deploys' `rescue-diagnostics-*` journals into the same issue format under its own `vulnerability-runtime` label, one issue per image and one `host ` issue per distro. It closes an issue only when a deploy of the run scanned that target without an engine error and reported nothing, so neither sync ever touches the other's issues. |
diff --git a/cli/contributing/security/issues/__main__.py b/cli/contributing/security/issues/__main__.py
index 56f6b52c5a..12ad3fece6 100755
--- a/cli/contributing/security/issues/__main__.py
+++ b/cli/contributing/security/issues/__main__.py
@@ -4,16 +4,51 @@ from __future__ import annotations
import argparse
import json
import subprocess
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING, Any, NamedTuple
from utils.cache.files import read_text
+from utils.security.pipeline import pipeline
if TYPE_CHECKING:
from collections.abc import Callable, Iterable, Mapping, Sequence
+
+class Tracker(NamedTuple):
+ """One family of vulnerability issues, owned by one label.
+
+ Args:
+ label: the label every issue of the family carries; a sync lists,
+ updates and closes only issues of this label.
+ color: the label colour.
+ description: the label description.
+ source: renders the line under the head line from the first row.
+ artifact: where the rows the body leaves out are kept.
+ gone: the comment an issue closes with.
+ covers: ``(report, title) -> bool``, whether the report speaks for
+ the issue of that title, so its absence may close it.
+ """
+
+ label: str
+ color: str
+ description: str
+ source: Callable[[Mapping[str, Any]], str]
+ artifact: str
+ gone: str
+ covers: Callable[[Mapping[str, Any], str], bool]
+
+
LABEL = "vulnerability"
LABEL_COLOR = "B60205"
LABEL_DESCRIPTION = "A pinned image carries a CVE at the scan threshold"
+MIRROR = Tracker(
+ label=LABEL,
+ color=LABEL_COLOR,
+ description=LABEL_DESCRIPTION,
+ source=lambda row: f"Mirror: `{row['mirror']}@{row['digest']}`",
+ artifact="the `vulnerability-findings` artifact of the scan run",
+ gone="No engine reports a CVE at the threshold for this image any more.",
+ covers=lambda report, _title: not report["errors"],
+)
ISSUE_LIMIT = "1000"
GH_TIMEOUT_SECONDS = 120
GH_FAILURES = (subprocess.CalledProcessError, subprocess.TimeoutExpired)
@@ -44,12 +79,26 @@ def grouped(rows: Iterable[Mapping[str, Any]]) -> dict[str, list[Mapping[str, An
return groups
-def body(rows: Sequence[Mapping[str, Any]]) -> str:
+def severity_counts(rows: Iterable[Mapping[str, Any]]) -> str:
+ """Return the distinct CVE count per severity, e.g. ``CRITICAL 7, HIGH 42``."""
+ cves: dict[str, set[str]] = {}
+ for row in rows:
+ cves.setdefault(row["severity"], set()).add(row["id"])
+ order = pipeline().SEVERITIES
+ ranked = sorted(
+ cves,
+ key=lambda s: (order.index(s) if s in order else len(order), s),
+ )
+ return ", ".join(f"{severity} {len(cves[severity])}" for severity in ranked)
+
+
+def body(rows: Sequence[Mapping[str, Any]], tracker: Tracker) -> str:
"""Render the issue body of one image, unsuppressed and CRITICAL rows first.
A suppressed CVE stays listed with its ``suppressed_until`` day, so the
- issue remains open while the suppression runs. The table stops before
- the body would exceed ``BODY_LIMIT`` and names how many rows it left out.
+ issue remains open while the suppression runs. The head line ends in
+ :func:`severity_counts`. The table stops before the body would exceed
+ ``BODY_LIMIT`` and names how many rows it left out.
"""
first = rows[0]
cves = {row["id"] for row in rows}
@@ -57,10 +106,10 @@ def body(rows: Sequence[Mapping[str, Any]]) -> str:
head = [
(
f"`{first['image']}` carries {len(cves)} CVE(s) at the scan threshold, "
- f"{len(suppressed)} of them suppressed."
+ f"{len(suppressed)} of them suppressed: {severity_counts(rows)}."
),
"",
- f"Mirror: `{first['mirror']}@{first['digest']}`",
+ tracker.source(first),
"",
"| " + " | ".join(COLUMNS) + " |",
"|" + "---|" * len(COLUMNS),
@@ -95,20 +144,25 @@ def body(rows: Sequence[Mapping[str, Any]]) -> str:
if hidden:
shown += [
"",
- f"{hidden} more row(s) are in the `vulnerability-findings` artifact of the scan run.",
+ f"{hidden} more row(s) are in {tracker.artifact}.",
]
return "\n".join(head + shown + tail)
def sync(
- report: Mapping[str, Any], repo: str, gh: Callable[[Sequence[str]], str]
+ report: Mapping[str, Any],
+ repo: str,
+ gh: Callable[[Sequence[str]], str],
+ tracker: Tracker,
) -> list[str]:
"""Open, update and close one issue per image.
Args:
- report: the ``make test-security`` report.
+ report: ``findings`` (the rows) and ``errors``, plus whatever
+ ``tracker.covers`` reads.
repo: ``owner/name``.
gh: runs ``gh`` with the given arguments and returns its stdout.
+ tracker: the issue family; only issues of its label are touched.
Returns:
What was done, one line per issue action; a ``failed`` line for a
@@ -116,20 +170,21 @@ def sync(
one open issue per image survives, the others close as duplicates.
An image whose CVE table changed gets a comment listing its
unresolved CVEs and an updated body; an unchanged table leaves the
- issue alone. An issue is only closed when the scan reported no
- error, so an image that failed to scan keeps its issue open.
+ issue alone. An issue without rows is only closed when
+ ``tracker.covers`` says the report speaks for it, so an image that
+ failed to scan or was not scanned keeps its issue open.
"""
gh(
[
"label",
"create",
- LABEL,
+ tracker.label,
"--repo",
repo,
"--color",
- LABEL_COLOR,
+ tracker.color,
"--description",
- LABEL_DESCRIPTION,
+ tracker.description,
"--force",
]
)
@@ -141,7 +196,7 @@ def sync(
"--repo",
repo,
"--label",
- LABEL,
+ tracker.label,
"--state",
"open",
"--json",
@@ -172,7 +227,7 @@ def sync(
)
groups = grouped(report["findings"])
for name, rows in sorted(groups.items()):
- text = body(rows)
+ text = body(rows, tracker)
issue = existing.get(name)
if issue is None:
args = [
@@ -183,7 +238,7 @@ def sync(
"--title",
name,
"--label",
- LABEL,
+ tracker.label,
"--body",
text,
]
@@ -205,10 +260,8 @@ def sync(
actions.append(attempt(gh, comment, f"commented #{number} {name}"))
edit = ["issue", "edit", number, "--repo", repo, "--body", text]
actions.append(attempt(gh, edit, f"updated #{number} {name}"))
- if report["errors"]:
- return actions
for name, issue in sorted(existing.items()):
- if name not in groups:
+ if name not in groups and tracker.covers(report, name):
args = [
"issue",
"close",
@@ -216,7 +269,7 @@ def sync(
"--repo",
repo,
"--comment",
- "No engine reports a CVE at the threshold for this image any more.",
+ tracker.gone,
]
actions.append(attempt(gh, args, f"closed #{issue['number']} {name}"))
return actions
@@ -254,7 +307,7 @@ def main(argv=None) -> int:
parser.add_argument("--repo", required=True, help="owner/name")
args = parser.parse_args(argv)
report = json.loads(read_text(args.report))
- lines = sync(report, args.repo, run_gh)
+ lines = sync(report, args.repo, run_gh, MIRROR)
for line in lines:
print(line)
return 1 if any(line.startswith("failed ") for line in lines) else 0
diff --git a/cli/contributing/security/scan/__main__.py b/cli/contributing/security/scan/__main__.py
index 51359d1d6a..b77a7c4ff8 100755
--- a/cli/contributing/security/scan/__main__.py
+++ b/cli/contributing/security/scan/__main__.py
@@ -106,6 +106,7 @@ def sbom_step(p: ModuleType, layout, target, source: str):
f"cyclonedx-json={p.SBOM}/{target.key}.cdx.json",
"-q",
]
+ scratch = p.scratch_of(SBOM_BUILDER, target.key)
return p.Step(
f"syft {target.label}",
p.run_argv(
@@ -115,8 +116,11 @@ def sbom_step(p: ModuleType, layout, target, source: str):
args,
target=None,
extra_env={},
+ scratch=scratch,
),
p.SUCCESS,
+ scratch,
+ False,
)
@@ -136,12 +140,21 @@ def trivy_step(p: ModuleType, layout, target):
f"{p.WORK}/{target.key}.trivy.json",
f"{p.SBOM}/{target.key}.cdx.json",
]
+ scratch = p.scratch_of("trivy", target.key)
return p.Step(
f"trivy {target.label}",
p.run_argv(
- layout, "trivy", engine_image("trivy"), args, target=None, extra_env={}
+ layout,
+ "trivy",
+ engine_image("trivy"),
+ args,
+ target=None,
+ extra_env={},
+ scratch=scratch,
),
p.SUCCESS,
+ scratch,
+ False,
)
@@ -154,6 +167,7 @@ def grype_step(p: ModuleType, layout, target):
f"{p.WORK}/{target.key}.grype.json",
"-q",
]
+ scratch = p.scratch_of("grype", target.key)
return p.Step(
f"grype {target.label}",
p.run_argv(
@@ -163,8 +177,11 @@ def grype_step(p: ModuleType, layout, target):
args,
target=None,
extra_env={"GRYPE_DB_AUTO_UPDATE": "false"},
+ scratch=scratch,
),
p.SUCCESS,
+ scratch,
+ False,
)
@@ -195,6 +212,7 @@ def scan_tree(
[[sbom_step(p, layout, target, sources[target.ref])] for target in pending],
runner,
config.workers,
+ layout.work,
)
errors += p._flat(results)
failed = {
@@ -216,7 +234,7 @@ def scan_tree(
encoding="utf-8",
)
lanes.append([p.osv_sbom_step(layout, images["osv"], ready, config)])
- errors += p._flat(p.run_lanes(lanes, runner, config.workers))
+ errors += p._flat(p.run_lanes(lanes, runner, config.workers, layout.work))
findings = []
for target in ready:
diff --git a/cli/meta/ci/runtime_vulnerabilities.py b/cli/meta/ci/runtime_vulnerabilities.py
new file mode 100644
index 0000000000..f505cff499
--- /dev/null
+++ b/cli/meta/ci/runtime_vulnerabilities.py
@@ -0,0 +1,272 @@
+"""Mirror the hlth-runtime findings of a main run's deploys into GitHub issues."""
+
+from __future__ import annotations
+
+import argparse
+import functools
+import json
+import os
+import re
+import sys
+from pathlib import Path
+from typing import TYPE_CHECKING, Any
+
+from cli.contributing.security.issues.__main__ import (
+ GH_FAILURES,
+ Tracker,
+ run_gh,
+ sync,
+ title,
+)
+from utils import PROJECT_ROOT
+from utils.docker.image.discovery import image_source
+from utils.roles.entity.apps import apps_for_entity
+from utils.security.engine import ROLE
+
+if TYPE_CHECKING:
+ from collections.abc import Callable, Iterator, Sequence
+
+MAIN_REF = "refs/heads/main"
+ARTIFACTS = "rescue-diagnostics-*"
+MIRROR_PREFIX_ENV = "INFINITO_GHCR_MIRROR_PREFIX"
+UNMANAGED = "unmanaged container "
+FINDING = re.compile(
+ r"(?:â|â ī¸?|âšī¸?) (?P\S+) (?Pcontainer|host) (?P.+?): "
+ r"(?P\S+) (?P[A-Z]+) (?P.+) (?P\S+) "
+ r"\((?:fixed in (?P.+)|no fix)\)"
+ r"(?: suppressed until (?P\d{4}-\d{2}-\d{2}))?$"
+)
+EVENT_MARK = '{"event": "hlth_runtime.'
+EVENT = re.compile(r"\{\"event\": \"hlth_runtime\.(?:target|summary)\".*$")
+RUNTIME = Tracker(
+ label="vulnerability-runtime",
+ color="D93F0B",
+ description="hlth-runtime reports a CVE at the threshold on a main deploy",
+ source=lambda row: f"Runtime: `{row['runtime']}`",
+ artifact="the `rescue-diagnostics-*` artifacts of the main run",
+ gone="No main deploy that scanned this target reports a CVE at the threshold any more.",
+ covers=lambda report, title: title in report["scanned"],
+)
+
+
+def host_image(distro: str) -> str:
+ """Return the stable image field of the host scan of one distro's deploy node."""
+ return f"host {distro}"
+
+
+def upstream(label: str, prefix: str) -> str:
+ """Return the image reference an issue title names for a running image.
+
+ Args:
+ label: the image name the container runs,
+ ``[registry/]repository[:tag][@digest]``.
+ prefix: the GHCR mirror prefix, see ``INFINITO_GHCR_MIRROR_PREFIX``.
+
+ Returns:
+ A mirror copy as the upstream pull reference the mirror scan titles
+ its issue with, any other image, such as a local build, as it runs.
+ """
+ name = label.split("@", 1)[0]
+ mirrored = re.fullmatch(
+ rf"ghcr\.io/[^/]+/[^/]+/{re.escape(prefix)}/(?P.+)", name
+ )
+ if mirrored is None:
+ return name
+ repository, separator, tag = mirrored["upstream"].rpartition(":")
+ if not separator or "/" in tag:
+ return mirrored["upstream"]
+ return image_source(repository, tag)
+
+
+@functools.cache
+def roles_of(stack: str) -> str | None:
+ """Return the roles of a compose project or swarm stack, comma-joined."""
+ return ",".join(apps_for_entity(stack, roles_dir=PROJECT_ROOT / "roles")) or None
+
+
+def row(found: re.Match, distro: str, prefix: str) -> dict[str, Any]:
+ """Return one finding line as an issue row."""
+ engine = found["engine"]
+ if found["kind"] == "host":
+ image = runtime = host_image(distro)
+ role, service = ROLE, engine
+ else:
+ scope = found["scope"]
+ if scope.startswith(UNMANAGED):
+ role, service, label = None, None, scope.removeprefix(UNMANAGED)
+ else:
+ owner, label = scope.split(" ", 1)
+ stack, service = owner.split("/", 1)
+ role = roles_of(stack)
+ image, runtime = upstream(label, prefix), label.split("@", 1)[0]
+ return {
+ "engine": engine,
+ "role": role,
+ "service": service,
+ "image": image,
+ "runtime": runtime,
+ "id": found["id"],
+ "severity": found["severity"],
+ "package": found["package"],
+ "installed": found["installed"],
+ "fixed": found["fixed"] or "",
+ "suppressed_until": found["until"],
+ }
+
+
+def target_image(event: dict[str, Any], distro: str, prefix: str) -> str:
+ """Return the image field of the target one ``hlth_runtime.target`` event names."""
+ if event["kind"] == "host":
+ return host_image(distro)
+ return upstream(event["image"].rsplit("@", 1)[0], prefix)
+
+
+def journals(artifact: Path) -> Iterator[tuple[str, Path]]:
+ """Yield ``(distro, journal)`` for every journal one artifact holds."""
+ for path in sorted(artifact.rglob("*journal.txt")):
+ parts = path.relative_to(artifact).parts
+ if len(parts) > 1 and (
+ path.name == "journal.txt" or path.name.endswith(".journal.txt")
+ ):
+ yield parts[0], path
+
+
+def read_journal(
+ path: Path, distro: str, prefix: str
+) -> tuple[list[dict[str, Any]], set[str], int]:
+ """Read the hlth-runtime lines of one journal.
+
+ Returns:
+ ``(rows, titles, errors)``: one row per finding line, the issue
+ title of every target an event names, and the engine errors the
+ summary events count plus every event line that does not parse.
+ """
+ rows: list[dict[str, Any]] = []
+ seen: set[str] = set()
+ failed = 0
+ with path.open(encoding="utf-8", errors="replace") as handle:
+ for line in handle:
+ text = line.rstrip("\n")
+ if "(fixed in " in text or "(no fix)" in text:
+ found = FINDING.search(text)
+ if found is not None:
+ rows.append(row(found, distro, prefix))
+ continue
+ event = EVENT.search(text) if EVENT_MARK in text else None
+ if event is None:
+ continue
+ try:
+ data = json.loads(event.group(0))
+ except json.JSONDecodeError:
+ failed += 1
+ continue
+ if data["event"] == "hlth_runtime.summary":
+ failed += data["errors"]
+ else:
+ seen.add(title({"image": target_image(data, distro, prefix)}))
+ return rows, seen, failed
+
+
+def collect(root: Path, prefix: str) -> dict[str, Any]:
+ """Read every rescue artifact below *root* into one issue report.
+
+ Args:
+ root: holds one directory per downloaded artifact.
+ prefix: the GHCR mirror prefix.
+
+ Returns:
+ ``findings``: one row per distinct finding; ``errors``: one line per
+ journal whose check runs reported engine errors or an unreadable
+ event; ``scanned``: the issue titles of every target a journal
+ without such an error scanned, the only issues an absent finding
+ may close.
+ """
+ rows: dict[tuple, dict[str, Any]] = {}
+ scanned: set[str] = set()
+ blocked: set[str] = set()
+ errors: list[str] = []
+ for artifact in sorted(path for path in root.iterdir() if path.is_dir()):
+ for distro, path in journals(artifact):
+ found, seen, failed = read_journal(path, distro, prefix)
+ rows.update((tuple(sorted(item.items())), item) for item in found)
+ (blocked if failed else scanned).update(seen)
+ if failed:
+ errors.append(f"{path.relative_to(root)}: {failed} engine error(s)")
+ return {
+ "findings": [rows[key] for key in sorted(rows, key=str)],
+ "errors": errors,
+ "scanned": sorted(scanned - blocked),
+ }
+
+
+def report(
+ *,
+ run_id: str,
+ repo: str,
+ ref: str,
+ dest: Path,
+ prefix: str,
+ gh: Callable[[Sequence[str]], str],
+) -> list[str]:
+ """Sync the runtime vulnerability issues of one main run.
+
+ Args:
+ run_id: the workflow run whose deploys are reported.
+ repo: ``owner/name``.
+ ref: the ref the run built; anything but ``refs/heads/main`` files
+ nothing.
+ dest: where the rescue artifacts are downloaded.
+ prefix: the GHCR mirror prefix.
+ gh: runs ``gh`` with the given arguments and returns its stdout.
+
+ Returns:
+ What was done, one line per action; a ``failed`` line when the
+ download failed, which then syncs nothing.
+ """
+ if ref != MAIN_REF:
+ return [f"skipped: {ref} is not {MAIN_REF}, no issue is filed"]
+ try:
+ gh(
+ [
+ "run",
+ "download",
+ run_id,
+ "--repo",
+ repo,
+ "--pattern",
+ ARTIFACTS,
+ "-D",
+ str(dest),
+ ]
+ )
+ except GH_FAILURES as exc:
+ return [f"failed downloading the {ARTIFACTS} artifacts of {run_id}: {exc}"]
+ found = collect(dest, prefix)
+ errors = [f"error {line}" for line in found["errors"]]
+ return [*errors, *sync(found, repo, gh, RUNTIME)]
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(
+ description="Mirror the hlth-runtime findings of a main run into GitHub issues."
+ )
+ parser.add_argument("--run-id", required=True)
+ parser.add_argument("--repo", required=True, help="owner/name")
+ parser.add_argument("--ref", required=True, help="The ref the run built")
+ parser.add_argument("--dir", required=True, help="Download directory")
+ args = parser.parse_args(argv)
+ lines = report(
+ run_id=args.run_id,
+ repo=args.repo,
+ ref=args.ref,
+ dest=Path(args.dir),
+ prefix=os.environ[MIRROR_PREFIX_ENV],
+ gh=run_gh,
+ )
+ for line in lines:
+ print(line)
+ return 1 if any(line.startswith("failed ") for line in lines) else 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/docs/contributing/actions/testing/suppression.md b/docs/contributing/actions/testing/suppression.md
index 1263412f0a..453303c145 100644
--- a/docs/contributing/actions/testing/suppression.md
+++ b/docs/contributing/actions/testing/suppression.md
@@ -51,7 +51,7 @@ The placement rule is per check. The catalog "Position" column uses these labels
| `docker-version` | same or above | [test_image_versions.py](../../../../tests/external/update/docker/test_image_versions.py), [test_semver_pinning.py](../../../../tests/lint/ansible/services/test_semver_pinning.py) | Skips both the live version-update warning and the non-semver-pin lint for that image's `version:` key. |
| `repository-version` | same or above | [test_repository_versions.py](../../../../tests/external/update/repository/test_repository_versions.py), [test_semver_pinning.py](../../../../tests/lint/ansible/services/test_semver_pinning.py) | Skips both the live ref-update warning and the non-semver-pin lint for that entity's `ref:` key. |
| `version-source` | same or above | [test_version_sources.py](../../../../tests/external/update/source/test_version_sources.py) | Skips the live update warning for a pin that declares its upstream in an `update:` block. |
-| `cve` | line above | [test_cve_suppressions.py](../../../../tests/lint/ansible/services/test_cve_suppressions.py), [script.py](../../../../roles/sys-ctl-hlth-runtime/files/python/script.py) | Accepts one `.security.suppressions` entry plus `until: YYYY-MM-DD` in the owning role's `meta/services.yml`: `id: CVE-YYYY-NNNN` accepts that CVE, `image_tag` every finding of the service's image while it runs that tag, and the tag MUST equal the service's `version`; the image updater drops it when it moves the service to another version. The marker MUST carry the reason, and the vulnerability scan of `sys-ctl-hlth-runtime` and `make test-security` skip the entry's findings for that role's service until the date passes. Host suppressions are the `id` entries under the engine entries of `sys-ctl-hlth-runtime`; an `image_tag` entry there covers the engine's own image. |
+| `cve` | line above | [test_cve_suppressions.py](../../../../tests/lint/ansible/services/test_cve_suppressions.py), [script.py](../../../../roles/sys-ctl-hlth-runtime/files/python/script.py) | Accepts one `.security.suppressions` entry plus `until: YYYY-MM-DD` in the owning role's `meta/services.yml`: `id: CVE-YYYY-NNNN` accepts that CVE, `image_tag` every finding of the service's image while it runs that tag, and the tag MUST equal the service's `version`; the image updater drops it when it moves the service to another version. The marker MUST carry the reason, and the vulnerability scan of `sys-ctl-hlth-runtime` and `make test-security` skip the entry's findings for that role's service until the date passes. Suppressions are temporary: `until` MUST NOT lie after 2026-11-30, and the lint fails on a later day and on every entry whose day has passed. An unsuppressed CRITICAL fails the check by default and in production, while a development or CI deploy only warns on it through the development inventory. Host suppressions are the `id` entries under the engine entries of `sys-ctl-hlth-runtime`; an `image_tag` entry there covers the engine's own image. |
| `unwatched-version` | same or above | [test_version_pins_are_watched.py](../../../../tests/lint/repository/test_version_pins_are_watched.py) | Accepts a semver pin that no updater bumps. The marker MUST carry a reason naming why the version stays where it is. |
| `dockerfile-arg-default` | same or above | [test_arg_without_default.py](../../../../tests/lint/docker/dockerfile/test_arg_without_default.py) | Allows the marked `ARG` to carry a default. The caller normally supplies every build argument so a missing one fails the build instead of selecting a base image nobody chose. |
| `dockerfile-pip-pin` | same or above | [test_pip_no_version_pins.py](../../../../tests/lint/docker/dockerfile/test_pip_no_version_pins.py) | Allows a role Dockerfile to pin an exact version inside a `pip install`. The pin normally lives in a `requirements.txt` or `pyproject.toml` under the role's `files/` and is installed with `pip install -r`, so dependabot's `pip` ecosystem can raise it. |
diff --git a/docs/requirements/070-hlth-runtime-vulnerability-engines.md b/docs/requirements/070-hlth-runtime-vulnerability-engines.md
index 546bcf3b89..f2cf64d608 100644
--- a/docs/requirements/070-hlth-runtime-vulnerability-engines.md
+++ b/docs/requirements/070-hlth-runtime-vulnerability-engines.md
@@ -19,7 +19,7 @@ Issue: [#1324](https://github.com/infinito-nexus/core/issues/1324).
- [ ] A runtime built from source, such as PHP 8.4.26 in an official `php` image, fails the scan with the CRITICAL CVE-2026-109618 and warns on the HIGH CVE-2026-109619, both fixed in 8.4.27: only Grype sees it, through the CPE of Syft's binary classifier, so with `syft` in `engines` and `grype` not, Grype still scans the binary-classified packages of every SBOM, and a configuration with neither `grype` nor `syft` is rejected.
- [ ] Targets times engines run in parallel, bounded by `workers`; Trivy runs one target at a time and OSV-Scanner reads every SBOM in one run.
- [ ] Each engine's JSON becomes findings of engine, target, image or host, package, installed version, fixed version, vulnerability ids and severity; OSV maps the group's CVSS score to a severity and takes the fixed version from the affected ranges of the same package.
-- [ ] An unsuppressed finding whose severity maps to `fail` is a `â` line naming engine, target and CVE and fails `sys-ctl-hlth-runtime.service`, the deploy through `sys-service-terminator` and the OnFailure alert; one that maps to `warn` is a `â ī¸` line and does not fail the service; a suppressed one is an `âšī¸` line. The mapping is the same in production and CI, and no deploy variant overrides it. An engine error, a missing database or a PHP hardening violation fails the service too. The daily `scan` job of `cron-images-mirror-all.yml` fails on every unsuppressed mapped finding, `fail` and `warn` alike.
+- [ ] An unsuppressed finding whose severity maps to `fail` is a `â` line naming engine, target and CVE and fails `sys-ctl-hlth-runtime.service`, the deploy through `sys-service-terminator` and the OnFailure alert; one that maps to `warn` is a `â ī¸` line and does not fail the service; a suppressed one is an `âšī¸` line. Production keeps the shipped mapping. The development inventory that `INFINITO_INVENTORY_VARS_FILE` names, which every CI and local development deploy provisions, maps `CRITICAL` to `warn` under `applications.sys-ctl-hlth-runtime.services.runtime.severity`, so there a CRITICAL finding is a `â ī¸` line and a `warn` record, fails neither the service nor the deploy, and reaches a `vulnerability` issue through the daily mirror scan below; no deploy variant overrides the mapping. An engine error, a missing database or a PHP hardening violation fails the service too. The daily `scan` job of `cron-images-mirror-all.yml` fails on every unsuppressed mapped finding, `fail` and `warn` alike.
- [ ] Every finding at the threshold becomes one record per owner with `run_id`, `timestamp` (RFC 3339, UTC), `host`, `environment`, `target`, `kind`, `image` (`@` for a container, the host name for the host), `scanner`, `id`, `severity`, `package`, `installed_version`, `fixed_version`, `suppressed`, `suppressed_until` and `verdict` (`fail`, `warn` or `suppressed`), and the four outputs below are built from these records.
- [ ] `report.json` in `DIR_HEALTH_RUNTIME_REPORT` (`/var/lib/infinito/hlth-runtime`) holds the summary and the records of the last run and is replaced atomically.
- [ ] `findings.jsonl` in `DIR_HEALTH_RUNTIME_LOG` (`/var/log/infinito/hlth-runtime`) gets one JSON line per record on every run, appended; the role installs logrotate and a drop-in that rotates it weekly, keeps 12 compressed generations and skips a missing or empty file.
@@ -31,16 +31,16 @@ Issue: [#1324](https://github.com/infinito-nexus/core/issues/1324).
- [ ] An `id` entry suppresses that CVE; an `image_tag` entry suppresses every finding of the service's container while the scanned image runs that tag, and a container running any other tag is judged unsuppressed. The Docker image updater removes a service's `image_tag` entries, with their markers, when it moves that service to another version.
- [ ] A role's suppressions apply only to the containers of its own stack or compose project and service; host suppressions are the `id` entries under the engine entries of `sys-ctl-hlth-runtime` and apply to that engine's host findings, while an `image_tag` entry there covers the engine's own image.
- [ ] `docs/contributing/actions/testing/suppression.md` lists the `cve` rule.
-- [ ] The lint under `tests/lint/` rejects a marker without a reason, a malformed id, an entry with both or neither of `id` and `image_tag`, an `image_tag` that differs from the service's `version`, a missing or past `until` and an entry without a marker.
+- [ ] The lint under `tests/lint/` rejects a marker without a reason, a malformed id, an entry with both or neither of `id` and `image_tag`, an `image_tag` that differs from the service's `version`, a missing or past `until`, an `until` after 2026-11-30 and an entry without a marker.
- [ ] Each CI deploy job draws one engine (trivy, grype or osv) by rotation; its job name carries đē, đ or đ, the axis glyph is đŦ, and `utils/symbol_glossary.py` registers all four.
- [ ] A CI deploy pins `engines` to `[syft, ]`, reads provided databases and never downloads one; the `vulnerability-db` job of `call-test-deploy.yml` downloads the Trivy, Grype and OSV databases once per day into the Actions cache, every deploy job restores the Grype database plus the drawn engine's, and a missing one fails the job.
- [ ] A local development deploy (`make compose-deploy`, swarm through act or `make swarm-zombie`) draws one engine at random, runs it behind Syft plus the Grype runtime pass, refreshes the databases it reads once in the shared host directory `INFINITO_VULNERABILITY_DB_HOST_PATH`, and every stack and swarm node reads that directory read-only at `INFINITO_VULNERABILITY_DB_DIR`; no stack and no node downloads a database.
- [ ] Production hosts run every engine of the list and refresh their databases daily in their own cache.
- [ ] The deploy-time run fails on its first failure: `sys-service-terminator` does not retry a unit that sets `system_service_run_once`, and only the database refresh inside the scan is retried, three attempts 30 s apart.
-- [ ] The threshold is strict from the first run: a CRITICAL with a fix fails the check, a HIGH with a fix warns, and both fail the daily mirror scan.
+- [ ] The threshold is strict from the first run: in production a CRITICAL with a fix fails the check and a HIGH with a fix warns, a development or CI deploy warns on both, and both fail the daily mirror scan, which tracks them as `vulnerability` issues.
- [ ] `make test-security` builds a Syft SBOM of every pinned image of all roles straight from the GHCR mirror refs, cached by image digest, and scans that SBOM tree with Trivy, Grype and OSV at the same threshold and suppressions; it is not part of `make test`, and the alias `i8seru` runs it.
- [ ] The `scan` job of `cron-images-mirror-all.yml` runs after `sync`, runs `make test-security`, keeps exactly one open `vulnerability` issue per image that lists its CVEs (unsuppressed first, then CRITICAL first, suppressed ones with their `suppressed_until` day so the issue stays open while a suppression runs, capped below GitHub's body limit with a pointer to the artifact) and closes any further open one as a duplicate, comments the still unresolved CVEs into it and updates its body whenever the image's CVE table changed, leaves it alone while the table is unchanged, closes it once no engine reports any CVE for it, holds `issues: write` only on that job and pins its actions like the existing jobs.
- [ ] Every run of that job writes the failing findings per image and per CVE into the job summary and the `vulnerability-findings` artifact, and the `workflow_dispatch` input `issues: false` makes it a dry run without issue changes; the schedule keeps the issues on.
- [ ] The measured database sizes are: Grype v6 3.2 GB unpacked, Trivy 1.6 GB without the Java database, OSV offline zips Ubuntu 806 MB, npm 220 MB, Debian 80 MB, PyPI 38 MB, and 1.24 GB for the ecosystem list in `meta/services.yml`.
- [ ] Unit tests cover the parsers of all three engines with trimmed real output, the severity mapping and its validation, the fix-available switch, suppression scoping and expiry, the bounded parallel run with a fake runner, the CI engine pin, the exit code per verdict and each of the four outputs.
-- [ ] A negative control shows the removed floor flagging `8.1.2-1ubuntu2.28` while Trivy, Grype and OSV fixtures of that package pass, and a fixture with a fixable CRITICAL fails.
+- [ ] A negative control shows the removed floor flagging `8.1.2-1ubuntu2.28` while Trivy, Grype and OSV fixtures of that package pass, and a fixture with a fixable CRITICAL fails under the shipped mapping, while the mapping of the development inventory reports it and exits 0.
diff --git a/inventories/development/default.yml b/inventories/development/default.yml
index 6ddea7c0f9..ebbf551cad 100644
--- a/inventories/development/default.yml
+++ b/inventories/development/default.yml
@@ -45,6 +45,11 @@ applications:
secrets:
credentials:
admin_password: "{{ lookup('env', 'INFINITO_CACHE_PACKAGE_ADMIN_PASSWORD') }}"
+ sys-ctl-hlth-runtime:
+ services:
+ runtime:
+ severity:
+ CRITICAL: warn
service_provider:
company:
diff --git a/roles/svc-ai-litellm/meta/services.yml b/roles/svc-ai-litellm/meta/services.yml
index 693005ea4d..cafe8619b5 100644
--- a/roles/svc-ai-litellm/meta/services.yml
+++ b/roles/svc-ai-litellm/meta/services.yml
@@ -68,7 +68,7 @@ litellm:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "main-v1.77.7-stable"
- until: 2026-12-03
+ until: 2026-11-30
postgres:
bond: 1
diff --git a/roles/svc-ai-mcp-adapter/meta/services.yml b/roles/svc-ai-mcp-adapter/meta/services.yml
index 5c5f09fe5c..00a6928d39 100644
--- a/roles/svc-ai-mcp-adapter/meta/services.yml
+++ b/roles/svc-ai-mcp-adapter/meta/services.yml
@@ -29,7 +29,7 @@ mcp-adapter:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: variants-coverage the role has a single variant, and the guide edge is not a dimension of it: a second round would differ only by the README replay
docs:
diff --git a/roles/svc-db-mariadb/meta/services.yml b/roles/svc-db-mariadb/meta/services.yml
index 722e8b1b22..8d838f91a7 100644
--- a/roles/svc-db-mariadb/meta/services.yml
+++ b/roles/svc-db-mariadb/meta/services.yml
@@ -36,7 +36,7 @@ mariadb:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "13.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
tor:
bond: 0.5
diff --git a/roles/svc-db-postgres/meta/services.yml b/roles/svc-db-postgres/meta/services.yml
index c82dd0c5ba..bacf283b3c 100644
--- a/roles/svc-db-postgres/meta/services.yml
+++ b/roles/svc-db-postgres/meta/services.yml
@@ -37,7 +37,7 @@ postgres:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "18"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
tor:
bond: 0.5
diff --git a/roles/svc-db-qdrant/meta/services.yml b/roles/svc-db-qdrant/meta/services.yml
index e4de4c89fd..962877b786 100644
--- a/roles/svc-db-qdrant/meta/services.yml
+++ b/roles/svc-db-qdrant/meta/services.yml
@@ -55,7 +55,7 @@ qdrantmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
tor:
bond: 0.5
diff --git a/roles/svc-db-typesense/meta/services.yml b/roles/svc-db-typesense/meta/services.yml
index 5dc12e3aaf..7817409817 100644
--- a/roles/svc-db-typesense/meta/services.yml
+++ b/roles/svc-db-typesense/meta/services.yml
@@ -37,7 +37,7 @@ typesense:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "0.25.2"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
tor:
bond: 0.5
diff --git a/roles/svc-dns-unbound/meta/services.yml b/roles/svc-dns-unbound/meta/services.yml
index 3393f8bc59..a75763ad91 100644
--- a/roles/svc-dns-unbound/meta/services.yml
+++ b/roles/svc-dns-unbound/meta/services.yml
@@ -33,7 +33,7 @@ unbound:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2024.06"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag - the resolver state volume is backup-disabled rebuildable cache, the backup consumer stays permanently off
container_backup:
diff --git a/roles/svc-registry-cache/meta/services.yml b/roles/svc-registry-cache/meta/services.yml
index 8fa58af73b..9fdbba557b 100644
--- a/roles/svc-registry-cache/meta/services.yml
+++ b/roles/svc-registry-cache/meta/services.yml
@@ -44,7 +44,7 @@ cache:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag - pull-through cache content is re-fetchable, the backup consumer stays permanently off
container_backup:
enabled: false
diff --git a/roles/svc-registry-docker/meta/services.yml b/roles/svc-registry-docker/meta/services.yml
index 97dc6330f4..5d8022e772 100644
--- a/roles/svc-registry-docker/meta/services.yml
+++ b/roles/svc-registry-docker/meta/services.yml
@@ -42,7 +42,7 @@ docker:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag - locally built images are rebuildable, the backup consumer stays permanently off
container_backup:
enabled: false
diff --git a/roles/svc-runner/meta/services.yml b/roles/svc-runner/meta/services.yml
index 67a978e6d3..8fd11aec9d 100644
--- a/roles/svc-runner/meta/services.yml
+++ b/roles/svc-runner/meta/services.yml
@@ -41,7 +41,7 @@ act-runner:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "act-latest"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: variants-coverage the role has a single variant, and the guide edge is not a dimension of it: a second round would differ only by the README replay
docs:
diff --git a/roles/sys-ctl-hlth-runtime/README.md b/roles/sys-ctl-hlth-runtime/README.md
index ceef0f9e4c..c4c9fa73c6 100644
--- a/roles/sys-ctl-hlth-runtime/README.md
+++ b/roles/sys-ctl-hlth-runtime/README.md
@@ -6,7 +6,7 @@ This role scans the node it runs on for known vulnerabilities with [Trivy](https
## Overview
-The role installs a check script with a `systemd` service and a timer at 00:00 UTC, and the deploy runs it once at its end. `severity` maps each reported severity to `fail` or `warn`: an unsuppressed finding mapped to `fail` fails the check, one mapped to `warn` is a `â ī¸` line, a suppressed one an `âšī¸` line. The check also fails, and the failure notifier from [`sys-ctl-alm-compose`](../sys-ctl-alm-compose/README.md) alerts, when an engine or its database fails, or when a service that declares `php_hardening` in its `meta/volumes.yml` still reports `expose_php` or `session.upload_progress.enabled` as on. The daily mirror scan of `cron-images-mirror-all.yml` fails on every mapped finding, `fail` and `warn` alike, and tracks them as issues. The scan configuration and the engine pins live in [services.yml](./meta/services.yml).
+The role installs a check script with a `systemd` service and a timer at 00:00 UTC, and the deploy runs it once at its end. `severity` maps each reported severity to `fail` or `warn`: an unsuppressed finding mapped to `fail` fails the check, one mapped to `warn` is a `â ī¸` line, a suppressed one an `âšī¸` line. The check also fails, and the failure notifier from [`sys-ctl-alm-compose`](../sys-ctl-alm-compose/README.md) alerts, when an engine or its database fails, or when a service that declares `php_hardening` in its `meta/volumes.yml` still reports `expose_php` or `session.upload_progress.enabled` as on. The daily mirror scan of `cron-images-mirror-all.yml` fails on every mapped finding, `fail` and `warn` alike, and tracks them as issues; the findings of every `main` deploy become `vulnerability-runtime` issues, see [README.md](../../cli/contributing/security/README.md). The scan configuration and the engine pins live in [services.yml](./meta/services.yml).
## Cosmos
@@ -30,7 +30,7 @@ Solid `1:1` edges are fixed relationships; dashed `0..1` edges are conditional (
- **Targets:** `container` scans the image of every running container through the read-only Docker socket, `host` scans the host root filesystem mounted read-only. In swarm every node scans itself.
- **Engines:** Syft builds one SBOM per target, Grype and OSV-Scanner read it, Trivy reads the target itself. Without `syft` in `engines`, Grype and OSV-Scanner read the target directly; `osv` then scans containers only.
- **Source-built runtimes:** A runtime compiled into the image, such as the PHP of the official `php` images, is matched by Grype only. With `syft` but without `grype` in `engines`, Grype still scans the binary-classified packages of every SBOM.
-- **Threshold:** `severity` maps each reported severity to `fail` or `warn`, `{CRITICAL: fail, HIGH: warn}` on every host and in CI; a severity it does not name is not reported, and `fixed_only` limits the report to findings with a fixed version. The list form of `severity` is rejected.
+- **Threshold:** `severity` maps each reported severity to `fail` or `warn`, `{CRITICAL: fail, HIGH: warn}` by default and in production. The development inventory that `INFINITO_INVENTORY_VARS_FILE` names maps `CRITICAL` to `warn`, so a CI or development deploy reports a CRITICAL finding as a `â ī¸` line and a `warn` record without failing, and the daily mirror scan tracks it as a `vulnerability` issue. A severity the mapping does not name is not reported, and `fixed_only` limits the report to findings with a fixed version. The list form of `severity` is rejected.
- **Finding records:** Every output is built from the same records, one per finding and owner: `run_id`, `timestamp` (RFC 3339, UTC), `host`, `environment`, `target` (`/` or the host name), `kind`, `image` (`@` or the host name), `scanner`, `id`, `severity`, `package`, `installed_version`, `fixed_version`, `suppressed`, `suppressed_until` and `verdict` (`fail`, `warn` or `suppressed`).
- **Report:** `report.json` in `DIR_HEALTH_RUNTIME_REPORT` holds the last run: its verdict, the counts per verdict, the engine errors, the counts per target and every record. It is replaced atomically.
- **Findings log:** `findings.jsonl` in `DIR_HEALTH_RUNTIME_LOG` gets one JSON line per record and run, for Wazuh. A logrotate drop-in rotates it weekly and keeps 12 compressed generations.
@@ -38,6 +38,7 @@ Solid `1:1` edges are fixed relationships; dashed `0..1` edges are conditional (
- **Metrics:** While `web-app-prometheus` is deployed, the check replaces `infinito_hlth_runtime.prom` in `DIR_METRICS_TEXTFILE` atomically with the gauges `infinito_hlth_runtime_findings{target,kind,image,severity,scanner,verdict}`, `infinito_hlth_runtime_last_run_timestamp_seconds`, `infinito_hlth_runtime_last_run_success` and `infinito_hlth_runtime_scanner_errors{scanner}`. No series carries a CVE id.
- **Suppressions:** A role accepts findings for its own containers under `.security.suppressions` of its `meta/services.yml`, each entry `id` (one CVE) or `image_tag` (every finding of the image while it runs that tag, which MUST equal the service's `version`) plus `until` below a `# nocheck: cve ` marker, see [suppression.md](../../docs/contributing/actions/testing/suppression.md). Host suppressions are the `id` entries under the engine entries of this role and cover that engine's host findings; an `image_tag` entry there covers the engine's own image.
- **Databases:** With `db_update` the engines refresh their databases under `database_dir` before each run, three attempts 30 s apart; without it the databases MUST already be there, and a missing one fails the run. SBOMs of running images are cached under `cache_dir` by image id.
+- **Scratch:** Every engine run gets its own temporary directory in the run's work directory under `cache_dir`, removed as soon as the run ends, also when the engine fails, times out or crashes. At most one image export is on disk at a time, whatever `workers` is; the other engine runs keep running in parallel. A run killed mid-scan leaves its work directory to the next run, which removes it first.
- **Deploy-time run:** The deploy runs the check once at its end and fails on its first failure, without the retries `sys-service-terminator` gives other units.
- **Development and CI deploys:** A CI row pins one engine and restores its databases; a local deploy draws one engine and refreshes the shared host directory `INFINITO_VULNERABILITY_DB_HOST_PATH`. Both run it behind Syft plus the Grype runtime pass and read the databases read-only at `INFINITO_VULNERABILITY_DB_DIR`. Production hosts run every engine.
- **Hardening verification:** Runs `php` inside every service that mounts `php_hardening` and fails while `expose_php` or `session.upload_progress.enabled` is on, and lists other PHP containers of a hardened stack as info.
diff --git a/roles/sys-ctl-hlth-runtime/TODO.md b/roles/sys-ctl-hlth-runtime/TODO.md
index 847d2d526f..1f1dd073dc 100644
--- a/roles/sys-ctl-hlth-runtime/TODO.md
+++ b/roles/sys-ctl-hlth-runtime/TODO.md
@@ -2,3 +2,4 @@
- Verify the web SAPI where an image splits it from the CLI. `web-app-lam` mounts the hardening ini into both `/etc/php/8.4/apache2/conf.d` and `/etc/php/8.4/cli/conf.d`, and the probe reads only the CLI copy, so a wrong Apache target would still pass.
- Restore the workspace drills' databases in `call-test-workspace.yml` from the Actions cache of the `vulnerability-db` job instead of refreshing them in the job.
+- Export each container image once for Syft and Trivy: save it into one scratch archive that `syft scan docker-archive:` and `trivy image --input` both read, instead of letting each engine export it from the Docker socket.
diff --git a/roles/sys-ctl-hlth-runtime/files/python/script.py b/roles/sys-ctl-hlth-runtime/files/python/script.py
index 252b4e8a96..582bab3251 100755
--- a/roles/sys-ctl-hlth-runtime/files/python/script.py
+++ b/roles/sys-ctl-hlth-runtime/files/python/script.py
@@ -3,7 +3,9 @@
from __future__ import annotations
import argparse
+import contextlib
import datetime as dt
+import itertools
import json
import os
import re
@@ -12,6 +14,7 @@ import socket
import subprocess
import sys
import tempfile
+import threading
import time
import urllib.parse
import uuid
@@ -60,6 +63,8 @@ SBOM = "/sbom"
CACHE = "/cache"
DOCKER_SOCKET = "/var/run/docker.sock"
JOB_TIMEOUT_SECONDS = 4 * 3600
+EXPORT_SLOTS = 1
+RUN_PREFIX = "run-"
DB_ATTEMPTS = 3
DB_RETRY_SECONDS = 30
DB_MARKERS = {
@@ -230,11 +235,16 @@ class Step:
label: what the run is, for error lines; its first word is the engine.
argv: the command.
accept: exit codes that mean success.
+ scratch: the run's temporary directory, a name under the work
+ directory; consecutive steps of a lane naming the same one share it.
+ exports: whether the run exports a local image into it.
"""
label: str
argv: tuple[str, ...]
accept: frozenset[int]
+ scratch: str
+ exports: bool
@dataclass(frozen=True)
@@ -1200,6 +1210,7 @@ def run_argv(
*,
target: Target | None,
extra_env: Mapping[str, str],
+ scratch: str,
) -> tuple[str, ...]:
"""Build the command that runs one engine container.
@@ -1211,6 +1222,8 @@ def run_argv(
target: the target, which picks the host or Docker socket mount;
``None`` for a run that reads neither.
extra_env: environment on top of the engine's own.
+ scratch: :attr:`Step.scratch` of the run, its ``TMPDIR`` under
+ :data:`WORK`.
"""
mounts = ["-v", f"{layout.sbom}:{SBOM}", "-v", f"{layout.work}:{WORK}"]
if engine in SCANNERS:
@@ -1219,16 +1232,27 @@ def run_argv(
mounts += ["-v", f"/:{HOST_ROOT}:ro"]
if target is not None and target.kind == "container":
mounts += ["-v", f"{DOCKER_SOCKET}:{DOCKER_SOCKET}:ro"]
- environment = {"TMPDIR": WORK, **ENGINE_ENV[engine], **extra_env}
+ environment = {"TMPDIR": f"{WORK}/{scratch}", **ENGINE_ENV[engine], **extra_env}
return (*layout.runtime, "--rm", *mounts, *_env(environment), image, *args)
+def scratch_of(engine: str, subject: str) -> str:
+ """Name the scratch directory of one engine run.
+
+ Args:
+ engine: the engine.
+ subject: :attr:`Target.key`, or what else the run is for.
+ """
+ return f"tmp-{engine}-{subject}"
+
+
def _relative_excludes(layout: Layout) -> list[str]:
return [f"./{path.strip('/')}" for path in layout.excludes]
def db_steps(engine: str, layout: Layout, image: str) -> list[Step]:
"""Download or refresh one engine's database."""
+ scratch = scratch_of(engine, "db")
if engine == "trivy":
return [
Step(
@@ -1240,8 +1264,11 @@ def db_steps(engine: str, layout: Layout, image: str) -> list[Step]:
["image", flag, *TRIVY_COMMON],
target=None,
extra_env={},
+ scratch=scratch,
),
SUCCESS,
+ scratch,
+ False,
)
for name, flag in (
("database", "--download-db-only"),
@@ -1253,9 +1280,17 @@ def db_steps(engine: str, layout: Layout, image: str) -> list[Step]:
Step(
"grype database",
run_argv(
- layout, engine, image, ["db", "update"], target=None, extra_env={}
+ layout,
+ engine,
+ image,
+ ["db", "update"],
+ target=None,
+ extra_env={},
+ scratch=scratch,
),
SUCCESS,
+ scratch,
+ False,
)
]
return []
@@ -1285,10 +1320,15 @@ def sbom_step(layout: Layout, image: str, target: Target) -> Step:
f"cyclonedx-json={SBOM}/{target.key}.cdx.json",
"-q",
]
+ scratch = scratch_of("syft", target.key)
return Step(
f"syft {target.kind} {target.label}",
- run_argv(layout, "syft", image, args, target=target, extra_env={}),
+ run_argv(
+ layout, "syft", image, args, target=target, extra_env={}, scratch=scratch
+ ),
SUCCESS,
+ scratch,
+ target.kind == "container",
)
@@ -1315,10 +1355,15 @@ def trivy_step(layout: Layout, image: str, target: Target, config: ScanConfig) -
]
else:
args += ["--image-src", "docker", target.ref]
+ scratch = scratch_of("trivy", target.key)
return Step(
f"trivy {target.kind} {target.label}",
- run_argv(layout, "trivy", image, args, target=target, extra_env={}),
+ run_argv(
+ layout, "trivy", image, args, target=target, extra_env={}, scratch=scratch
+ ),
SUCCESS,
+ scratch,
+ target.kind == "container",
)
@@ -1332,6 +1377,7 @@ def grype_step(layout: Layout, image: str, target: Target, config: ScanConfig) -
else:
source = [f"docker:{target.ref}"]
args = [*source, "-o", "json", "--file", f"{WORK}/{target.key}.grype.json", "-q"]
+ scratch = scratch_of("grype", target.key)
return Step(
f"grype {target.kind} {target.label}",
run_argv(
@@ -1341,8 +1387,11 @@ def grype_step(layout: Layout, image: str, target: Target, config: ScanConfig) -
args,
target=target,
extra_env={"GRYPE_DB_AUTO_UPDATE": "false"},
+ scratch=scratch,
),
SUCCESS,
+ scratch,
+ target.kind == "container" and not config.reads_sbom("grype"),
)
@@ -1360,10 +1409,15 @@ def osv_sbom_step(
args = ["scan", "source", *osv_args(config, f"{WORK}/osv.json")]
for target in targets:
args += ["-L", f"{WORK}/{target.key}.osv.cdx.json"]
+ scratch = scratch_of("osv", "sbom")
return Step(
"osv sbom",
- run_argv(layout, "osv", image, args, target=None, extra_env={}),
+ run_argv(
+ layout, "osv", image, args, target=None, extra_env={}, scratch=scratch
+ ),
OSV_ACCEPTED_EXIT_CODES,
+ scratch,
+ False,
)
@@ -1371,12 +1425,20 @@ def osv_image_steps(
layout: Layout, image: str, target: Target, config: ScanConfig
) -> list[Step]:
"""Export one image and scan the archive; OSV reads no docker socket."""
- archive = layout.work / "osv-image.tar"
+ scratch = scratch_of("osv", target.key)
return [
Step(
f"osv export {target.label}",
- (layout.runtime[0], "save", "--output", str(archive), target.ref),
+ (
+ layout.runtime[0],
+ "save",
+ "--output",
+ str(layout.work / scratch / "image.tar"),
+ target.ref,
+ ),
SUCCESS,
+ scratch,
+ True,
),
Step(
f"osv container {target.label}",
@@ -1388,13 +1450,16 @@ def osv_image_steps(
"scan",
"image",
"--archive",
- f"{WORK}/osv-image.tar",
+ f"{WORK}/{scratch}/image.tar",
*osv_args(config, f"{WORK}/{target.key}.osv.json"),
],
target=None,
extra_env={},
+ scratch=scratch,
),
OSV_ACCEPTED_EXIT_CODES,
+ scratch,
+ False,
),
]
@@ -1417,13 +1482,8 @@ def _tail(text: str) -> str:
return " | ".join(lines[-3:])
-def run_lane(lane: Sequence[Step], runner: Runner) -> list[str]:
- """Run steps in order and stop at the first failing one.
-
- Returns:
- Error lines, empty when every step succeeded.
- """
- for step in lane:
+def _run_steps(steps: Sequence[Step], runner: Runner) -> list[str]:
+ for step in steps:
try:
result = runner(step.argv)
except subprocess.TimeoutExpired as exc:
@@ -1439,18 +1499,58 @@ def run_lane(lane: Sequence[Step], runner: Runner) -> list[str]:
return []
+def run_lane(
+ lane: Sequence[Step],
+ runner: Runner,
+ work: Path,
+ exports: threading.Semaphore,
+) -> list[str]:
+ """Run steps in order and stop at the first failing one.
+
+ Args:
+ lane: the steps.
+ runner: runs one command.
+ work: the run's work directory, which holds every
+ :attr:`Step.scratch`.
+ exports: held by a group of steps sharing a scratch directory while
+ one of them exports an image, from its creation to its removal.
+
+ Returns:
+ Error lines, empty when every step succeeded.
+ """
+ for scratch, group in itertools.groupby(lane, key=lambda step: step.scratch):
+ steps = list(group)
+ gate = (
+ exports if any(step.exports for step in steps) else contextlib.nullcontext()
+ )
+ with gate:
+ directory = work / scratch
+ directory.mkdir(parents=True, exist_ok=True)
+ try:
+ errors = _run_steps(steps, runner)
+ finally:
+ shutil.rmtree(directory, ignore_errors=True)
+ if errors:
+ return errors
+ return []
+
+
def run_lanes(
- lanes: Sequence[Sequence[Step]], runner: Runner, workers: int
+ lanes: Sequence[Sequence[Step]], runner: Runner, workers: int, work: Path
) -> list[list[str]]:
"""Run lanes in parallel, at most *workers* at a time.
+ At most :data:`EXPORT_SLOTS` image exports are on disk at once, whatever
+ *workers* is.
+
Returns:
The error lines of each lane, in lane order.
"""
if not lanes:
return []
+ exports = threading.BoundedSemaphore(EXPORT_SLOTS)
with ThreadPoolExecutor(max_workers=workers) as pool:
- return list(pool.map(lambda lane: run_lane(lane, runner), lanes))
+ return list(pool.map(lambda lane: run_lane(lane, runner, work, exports), lanes))
def _flat(errors: Iterable[Sequence[str]]) -> list[str]:
@@ -1492,7 +1592,11 @@ def prepare_databases(
pause(DB_RETRY_SECONDS)
lanes = [db_steps(engine, layout, images[engine]) for engine in pending]
results.update(
- zip(pending, run_lanes(lanes, runner, config.workers), strict=True)
+ zip(
+ pending,
+ run_lanes(lanes, runner, config.workers, layout.work),
+ strict=True,
+ )
)
pending = [engine for engine in pending if results[engine]]
if not pending:
@@ -1514,6 +1618,7 @@ def runtime_step(layout: Layout, image: str, target: Target) -> Step:
f"{WORK}/{target.key}.runtime.grype.json",
"-q",
]
+ scratch = scratch_of(RUNTIME_ENGINE, f"runtime-{target.key}")
return Step(
f"grype runtime {target.kind} {target.label}",
run_argv(
@@ -1523,8 +1628,11 @@ def runtime_step(layout: Layout, image: str, target: Target) -> Step:
args,
target=None,
extra_env={"GRYPE_DB_AUTO_UPDATE": "false"},
+ scratch=scratch,
),
SUCCESS,
+ scratch,
+ False,
)
@@ -1559,6 +1667,7 @@ def scan(
[[sbom_step(layout, images[SBOM_BUILDER], target)] for target in pending],
runner,
config.workers,
+ layout.work,
)
errors += _flat(results)
failed = {
@@ -1601,7 +1710,7 @@ def scan(
for step in osv_image_steps(layout, images["osv"], target, config)
]
)
- errors += _flat(run_lanes(lanes, runner, config.workers))
+ errors += _flat(run_lanes(lanes, runner, config.workers, layout.work))
findings: list[Finding] = []
for target in targets:
@@ -1667,7 +1776,9 @@ def vulnerability_check(
targets.append(host_target(run.host))
sbom = cache / "sbom"
sbom.mkdir(parents=True, exist_ok=True)
- work = Path(tempfile.mkdtemp(prefix="run-", dir=cache))
+ for stale in cache.glob(f"{RUN_PREFIX}*"):
+ shutil.rmtree(stale, ignore_errors=True)
+ work = Path(tempfile.mkdtemp(prefix=RUN_PREFIX, dir=cache))
try:
layout = Layout(
runtime=("container", "run"),
diff --git a/roles/sys-ctl-hlth-runtime/meta/services.yml b/roles/sys-ctl-hlth-runtime/meta/services.yml
index 16f657fdc0..8637627f22 100644
--- a/roles/sys-ctl-hlth-runtime/meta/services.yml
+++ b/roles/sys-ctl-hlth-runtime/meta/services.yml
@@ -24,13 +24,13 @@ trivy:
suppressions:
# nocheck: cve golang.org/x/net below 0.60.0 sits in the newest docker-ce and containerd.io packages
- id: CVE-2026-78663
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: cve CentOS Stream 10 ships no ca-certificates build with the RHEL 100.3.el10_2 fix yet
- id: CVE-2026-114406
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "0.76.1"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: image-healthcheck scanner run as a one-shot, no long-running process
grype:
image: ghcr.io/anchore/grype
@@ -39,13 +39,13 @@ grype:
suppressions:
# nocheck: cve golang.org/x/net below 0.60.0 sits in the newest docker-ce and containerd.io packages
- id: CVE-2026-78663
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: cve CentOS Stream 10 ships no ca-certificates build with the RHEL 100.3.el10_2 fix yet
- id: CVE-2026-114406
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v0.121.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: image-healthcheck scanner run as a one-shot, no long-running process
osv:
image: ghcr.io/google/osv-scanner
@@ -73,13 +73,13 @@ osv:
suppressions:
# nocheck: cve golang.org/x/net below 0.60.0 sits in the newest docker-ce and containerd.io packages
- id: CVE-2026-78663
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: cve CentOS Stream 10 ships no ca-certificates build with the RHEL 100.3.el10_2 fix yet
- id: CVE-2026-114406
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v2.7.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: image-healthcheck SBOM builder run as a one-shot, no long-running process
syft:
image: ghcr.io/anchore/syft
@@ -88,4 +88,4 @@ syft:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v1.55.0"
- until: 2026-12-03
+ until: 2026-11-30
diff --git a/roles/web-app-baserow/meta/services.yml b/roles/web-app-baserow/meta/services.yml
index 21f636d29a..b034792f11 100644
--- a/roles/web-app-baserow/meta/services.yml
+++ b/roles/web-app-baserow/meta/services.yml
@@ -115,7 +115,7 @@ baserowmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â design consumer, no Playwright surface (provider: web-svc-design)
design:
bond: 1
diff --git a/roles/web-app-bigbluebutton/meta/services.yml b/roles/web-app-bigbluebutton/meta/services.yml
index 0ee491e8fa..a6a59e48dc 100644
--- a/roles/web-app-bigbluebutton/meta/services.yml
+++ b/roles/web-app-bigbluebutton/meta/services.yml
@@ -126,7 +126,7 @@ bbb-web:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
freeswitch:
@@ -144,7 +144,7 @@ freeswitch:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v1.11.3-v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
nginx:
@@ -164,7 +164,7 @@ nginx:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39-v5.4.8-1.29"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
bbb-shared-notes-server:
@@ -179,7 +179,7 @@ bbb-shared-notes-server:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
bbb-export-annotations:
@@ -196,7 +196,7 @@ bbb-export-annotations:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
webrtc-sfu:
@@ -213,7 +213,7 @@ webrtc-sfu:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v2.24.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
fsesl-akka:
@@ -228,7 +228,7 @@ fsesl-akka:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
apps-akka:
@@ -245,7 +245,7 @@ apps-akka:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
bbb-graphql-server:
@@ -265,7 +265,7 @@ bbb-graphql-server:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
bbb-graphql-actions:
@@ -280,7 +280,7 @@ bbb-graphql-actions:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
bbb-graphql-middleware:
@@ -295,7 +295,7 @@ bbb-graphql-middleware:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
periodic:
@@ -312,7 +312,7 @@ periodic:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
recordings:
@@ -329,7 +329,7 @@ recordings:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v3.0.39"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: prebuilt upstream-compose image, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose sub-service, not group-gated
bbb-webrtc-recorder:
@@ -344,7 +344,7 @@ bbb-webrtc-recorder:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v0.14.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: script-time helper of upstream generate-compose, mirror pre-pull only
# nocheck: dynamic-flag: fixed upstream-compose helper, not group-gated
dockerize:
diff --git a/roles/web-app-bluesky/meta/services.yml b/roles/web-app-bluesky/meta/services.yml
index 67e0ece5bb..26509e77ea 100644
--- a/roles/web-app-bluesky/meta/services.yml
+++ b/roles/web-app-bluesky/meta/services.yml
@@ -90,7 +90,7 @@ pds:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "0.4.66"
- until: 2026-12-03
+ until: 2026-11-30
broker:
backup:
stop_required: false
diff --git a/roles/web-app-checkmk/meta/services.yml b/roles/web-app-checkmk/meta/services.yml
index 7da4eb6d1f..cb141faaef 100644
--- a/roles/web-app-checkmk/meta/services.yml
+++ b/roles/web-app-checkmk/meta/services.yml
@@ -133,7 +133,7 @@ checkmkmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-decidim/meta/services.yml b/roles/web-app-decidim/meta/services.yml
index dceb751491..66fc40d58c 100644
--- a/roles/web-app-decidim/meta/services.yml
+++ b/roles/web-app-decidim/meta/services.yml
@@ -62,7 +62,7 @@ decidim:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "0.31.6"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: shared
# nocheck: dynamic-flag
# nocheck: playwright-service-flag â DB engine, covered by role-local integration tests
diff --git a/roles/web-app-erpnext/meta/services.yml b/roles/web-app-erpnext/meta/services.yml
index bed2ccd9c8..c8008f90f0 100644
--- a/roles/web-app-erpnext/meta/services.yml
+++ b/roles/web-app-erpnext/meta/services.yml
@@ -98,7 +98,7 @@ erpnext:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v16.54.0"
- until: 2026-12-03
+ until: 2026-11-30
backend:
name: erpnext-backend
healthcheck:
diff --git a/roles/web-app-fediwall/meta/services.yml b/roles/web-app-fediwall/meta/services.yml
index 4c403490f5..05e32d6838 100644
--- a/roles/web-app-fediwall/meta/services.yml
+++ b/roles/web-app-fediwall/meta/services.yml
@@ -105,7 +105,7 @@ fediwall:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31.8-alpine"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
diff --git a/roles/web-app-fider/meta/services.yml b/roles/web-app-fider/meta/services.yml
index ba8d645a4e..36b4a98ed2 100644
--- a/roles/web-app-fider/meta/services.yml
+++ b/roles/web-app-fider/meta/services.yml
@@ -109,7 +109,7 @@ fidermcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
diff --git a/roles/web-app-friendica/meta/services.yml b/roles/web-app-friendica/meta/services.yml
index e22c744f81..aa3e7d3117 100644
--- a/roles/web-app-friendica/meta/services.yml
+++ b/roles/web-app-friendica/meta/services.yml
@@ -40,7 +40,7 @@ friendica:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2026.05"
- until: 2026-12-03
+ until: 2026-11-30
logout:
bond: 1
enabled: "{{ 'web-svc-logout' in group_names }}"
diff --git a/roles/web-app-funkwhale/meta/services.yml b/roles/web-app-funkwhale/meta/services.yml
index 112e0e9b46..88b2a6c87b 100644
--- a/roles/web-app-funkwhale/meta/services.yml
+++ b/roles/web-app-funkwhale/meta/services.yml
@@ -38,7 +38,7 @@ funkwhale:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2.0.13"
- until: 2026-12-03
+ until: 2026-11-30
api:
backup:
stop_required: false
@@ -61,7 +61,7 @@ api:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2.0.13"
- until: 2026-12-03
+ until: 2026-11-30
migrate:
# nocheck: single-replica run-once schema bootstrap; concurrent `funkwhale-manage migrate` races the migration graph
replicas: 1
@@ -87,7 +87,7 @@ typesense:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "30.2"
- until: 2026-12-03
+ until: 2026-11-30
logout:
bond: 1
enabled: "{{ 'web-svc-logout' in group_names }}"
diff --git a/roles/web-app-gitea/meta/services.yml b/roles/web-app-gitea/meta/services.yml
index 9d59031171..4906bc8d24 100644
--- a/roles/web-app-gitea/meta/services.yml
+++ b/roles/web-app-gitea/meta/services.yml
@@ -110,7 +110,7 @@ giteamcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: dynamic-flag the vendor server exists only behind the adapter, so it tracks this role's own mcp flag rather than another role's presence
giteamcpupstream:
diff --git a/roles/web-app-gitlab/meta/services.yml b/roles/web-app-gitlab/meta/services.yml
index d5e90525e6..2ce80c90fe 100644
--- a/roles/web-app-gitlab/meta/services.yml
+++ b/roles/web-app-gitlab/meta/services.yml
@@ -78,7 +78,7 @@ webservice:
backup:
stop_required: false
image: registry.gitlab.com/gitlab-org/build/cng/gitlab-webservice-ce
- version: v19.5.4
+ version: v19.5.5
name: gitlab-webservice
healthcheck:
test: ["CMD", "/scripts/healthcheck"]
@@ -99,7 +99,7 @@ sidekiq:
flavor: tcp
path: liveness
image: registry.gitlab.com/gitlab-org/build/cng/gitlab-sidekiq-ce
- version: v19.5.4
+ version: v19.5.5
name: gitlab-sidekiq
cpus: "1.0"
mem_reservation: 2g
@@ -112,7 +112,7 @@ workhorse:
backup:
stop_required: false
image: registry.gitlab.com/gitlab-org/build/cng/gitlab-workhorse-ce
- version: v19.5.4
+ version: v19.5.5
name: gitlab-workhorse
healthcheck:
test: ["CMD", "/scripts/healthcheck"]
@@ -128,7 +128,7 @@ gitaly:
# nocheck: default-placement-manager the repositories live on a node-local volume (meta/volumes.yml nfs: false, gitaly does not support NFS), which a reschedule leaves behind on the old node
placement: manager
image: registry.gitlab.com/gitlab-org/build/cng/gitaly
- version: v19.5.4
+ version: v19.5.5
healthcheck:
test: ["CMD", "/scripts/healthcheck"]
name: gitlab-gitaly
@@ -143,7 +143,7 @@ shell:
backup:
stop_required: false
image: registry.gitlab.com/gitlab-org/build/cng/gitlab-shell
- version: v19.5.4
+ version: v19.5.5
name: gitlab-shell
ports:
internal:
@@ -158,7 +158,7 @@ migrations:
# nocheck: single-replica
replicas: 1
image: registry.gitlab.com/gitlab-org/build/cng/gitlab-rails-ce
- version: v19.5.4
+ version: v19.5.5
name: gitlab-migrations
cpus: "1.0"
mem_reservation: 1g
@@ -221,7 +221,7 @@ gitlabmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-hermes/meta/services.yml b/roles/web-app-hermes/meta/services.yml
index a42ec19733..b559cf1ba2 100644
--- a/roles/web-app-hermes/meta/services.yml
+++ b/roles/web-app-hermes/meta/services.yml
@@ -42,7 +42,7 @@ hermes:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v2026.9.24"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag - the web UI is a role-local off-switch; no provider role exists whose group membership could decide it
webui:
diff --git a/roles/web-app-homeassistant/meta/services.yml b/roles/web-app-homeassistant/meta/services.yml
index 5a66c3ba59..aa63aa26a3 100644
--- a/roles/web-app-homeassistant/meta/services.yml
+++ b/roles/web-app-homeassistant/meta/services.yml
@@ -36,7 +36,7 @@ homeassistant:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2026.7"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: sso, dynamic-flag, playwright-service-flag
sso:
diff --git a/roles/web-app-hugo/meta/services.yml b/roles/web-app-hugo/meta/services.yml
index 65390fd024..3a606109ad 100644
--- a/roles/web-app-hugo/meta/services.yml
+++ b/roles/web-app-hugo/meta/services.yml
@@ -81,7 +81,7 @@ hugo:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31-alpine"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: email
# nocheck: dynamic-flag
email:
diff --git a/roles/web-app-jellyfin/meta/services.yml b/roles/web-app-jellyfin/meta/services.yml
index 8502f52bba..aa328b2983 100644
--- a/roles/web-app-jellyfin/meta/services.yml
+++ b/roles/web-app-jellyfin/meta/services.yml
@@ -75,7 +75,7 @@ jellyfin:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "10.11.11"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
@@ -111,7 +111,7 @@ jellyfinmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-jenkins/meta/services.yml b/roles/web-app-jenkins/meta/services.yml
index 975a980680..15fcf6607b 100644
--- a/roles/web-app-jenkins/meta/services.yml
+++ b/roles/web-app-jenkins/meta/services.yml
@@ -84,7 +84,7 @@ jenkins:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2.580.2-lts"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag internal adapter sidecar, covered by the role's MCP spec
# nocheck: dockerfile-custom the Dockerfile is owned by svc-ai-mcp-adapter and staged per instance, so every adapter-backed provider shares one audited build
# nocheck: dynamic-flag the sidecar tracks this role's own mcp flag, not another role's presence; a group_names expression would decide its exposure from an unrelated deployment
@@ -110,7 +110,7 @@ jenkinsmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â design consumer, no Playwright surface (provider: web-svc-design)
design:
bond: 1
diff --git a/roles/web-app-jitsi/meta/services.yml b/roles/web-app-jitsi/meta/services.yml
index 8b62168878..b4162cd522 100644
--- a/roles/web-app-jitsi/meta/services.yml
+++ b/roles/web-app-jitsi/meta/services.yml
@@ -87,7 +87,7 @@ jitsi:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "stable-11031"
- until: 2026-12-03
+ until: 2026-11-30
web:
name: jitsi-web
cpus: "0.5"
@@ -115,7 +115,7 @@ prosody:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "stable-11031"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag - internal sub-component (conference focus)
# nocheck: image-healthcheck XMPP component, no internal port declared
jicofo:
@@ -130,7 +130,7 @@ jicofo:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "stable-11031"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag - internal sub-component (video bridge, media plane)
# nocheck: image-healthcheck media bridge on UDP, no internal port declared
jvb:
@@ -145,7 +145,7 @@ jvb:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "stable-11031"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
tor:
diff --git a/roles/web-app-lam/meta/services.yml b/roles/web-app-lam/meta/services.yml
index f798ca284f..6aaf707c3f 100644
--- a/roles/web-app-lam/meta/services.yml
+++ b/roles/web-app-lam/meta/services.yml
@@ -58,7 +58,7 @@ lam:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "9.7"
- until: 2026-12-03
+ until: 2026-11-30
sso:
bond: 1
enabled: "{{ 'web-app-keycloak' in group_names }}"
diff --git a/roles/web-app-listmonk/meta/services.yml b/roles/web-app-listmonk/meta/services.yml
index 04e265be54..fc3a5b6f61 100644
--- a/roles/web-app-listmonk/meta/services.yml
+++ b/roles/web-app-listmonk/meta/services.yml
@@ -70,7 +70,7 @@ listmonk:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v6.2.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â object store, no Playwright surface
minio:
enabled: false # nocheck: dynamic-flag
@@ -119,7 +119,7 @@ listmonkmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
diff --git a/roles/web-app-littlejs/meta/services.yml b/roles/web-app-littlejs/meta/services.yml
index 8ddf4f41e2..3573c895dc 100644
--- a/roles/web-app-littlejs/meta/services.yml
+++ b/roles/web-app-littlejs/meta/services.yml
@@ -66,7 +66,7 @@ littlejs:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31.8-alpine"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: email
# nocheck: dynamic-flag
email:
diff --git a/roles/web-app-magento/meta/services.yml b/roles/web-app-magento/meta/services.yml
index e0fdbb181b..e172c6786c 100644
--- a/roles/web-app-magento/meta/services.yml
+++ b/roles/web-app-magento/meta/services.yml
@@ -59,7 +59,7 @@ nginx:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.28"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag
mariadb:
shared: false
@@ -70,7 +70,7 @@ mariadb:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "11.4"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: shared
# nocheck: dynamic-flag
redis:
diff --git a/roles/web-app-mastodon/meta/services.yml b/roles/web-app-mastodon/meta/services.yml
index 0b4b221f32..f9eb0d7daf 100644
--- a/roles/web-app-mastodon/meta/services.yml
+++ b/roles/web-app-mastodon/meta/services.yml
@@ -76,7 +76,7 @@ mastodon:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v4.6.2"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: container-healthcheck-unused rendered through the mastodon_service macro, whose service_name is a macro parameter
streaming:
image: ghcr.io/mastodon/mastodon-streaming
@@ -97,7 +97,7 @@ streaming:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v4.6.2"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: container-healthcheck-unused rendered through the mastodon_service macro, whose service_name is a macro parameter
sidekiq:
name: mastodon-sidekiq
diff --git a/roles/web-app-matrix/meta/services.yml b/roles/web-app-matrix/meta/services.yml
index 0b4ddf5f9b..0c5a277f9c 100644
--- a/roles/web-app-matrix/meta/services.yml
+++ b/roles/web-app-matrix/meta/services.yml
@@ -145,7 +145,7 @@ matrix-chatgpt-bot:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.1.5"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â object store, no Playwright surface (provider: web-svc-seaweedfs)
seaweedfs:
bond: 1
diff --git a/roles/web-app-mattermost/meta/services.yml b/roles/web-app-mattermost/meta/services.yml
index 9d21ea21cd..5debe61afb 100644
--- a/roles/web-app-mattermost/meta/services.yml
+++ b/roles/web-app-mattermost/meta/services.yml
@@ -156,7 +156,7 @@ mattermostmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-mini-qr/meta/services.yml b/roles/web-app-mini-qr/meta/services.yml
index 982aa0c41d..071200f1c4 100644
--- a/roles/web-app-mini-qr/meta/services.yml
+++ b/roles/web-app-mini-qr/meta/services.yml
@@ -24,7 +24,7 @@ mini-qr:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v0.26.3"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag
# nocheck: logout
logout:
diff --git a/roles/web-app-mobilizon/meta/services.yml b/roles/web-app-mobilizon/meta/services.yml
index 54152658f3..98565da7b0 100644
--- a/roles/web-app-mobilizon/meta/services.yml
+++ b/roles/web-app-mobilizon/meta/services.yml
@@ -63,7 +63,7 @@ mobilizon:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "5.2.4"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag â seaweedfs intentionally disabled; Mobilizon has no S3 upload backend
seaweedfs:
enabled: false
diff --git a/roles/web-app-moodle/meta/services.yml b/roles/web-app-moodle/meta/services.yml
index 4245f93723..1afc24ed9e 100644
--- a/roles/web-app-moodle/meta/services.yml
+++ b/roles/web-app-moodle/meta/services.yml
@@ -106,7 +106,7 @@ nginx:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31-alpine"
- until: 2026-12-03
+ until: 2026-11-30
cron:
name: moodle-cron
min_storage: 1GB
diff --git a/roles/web-app-nextcloud/meta/services.yml b/roles/web-app-nextcloud/meta/services.yml
index 7b407bc807..01cc91afb3 100644
--- a/roles/web-app-nextcloud/meta/services.yml
+++ b/roles/web-app-nextcloud/meta/services.yml
@@ -113,7 +113,7 @@ nextcloud:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "34-fpm-alpine"
- until: 2026-12-03
+ until: 2026-11-30
proxy:
name: nextcloud-proxy
healthcheck:
@@ -136,7 +136,7 @@ proxy:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31.8-alpine"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: dynamic-flag the container serves this role's MCP surface, so it tracks the role's own mcp flag rather than one client's presence
context_agent:
@@ -187,7 +187,7 @@ contextagentmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
cron:
# nocheck: single-replica singleton cron.sh; replicas double-run background jobs on the shared data volume
replicas: 1
@@ -305,7 +305,7 @@ whiteboard:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v1.5.9"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag: infrastructural sub-component (collaborative editing)
onlyoffice:
bond: 0.5
diff --git a/roles/web-app-openclaw/meta/services.yml b/roles/web-app-openclaw/meta/services.yml
index fcaf75694b..8964afa3c0 100644
--- a/roles/web-app-openclaw/meta/services.yml
+++ b/roles/web-app-openclaw/meta/services.yml
@@ -35,7 +35,7 @@ openclaw:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2026.7.1"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag, dynamic-flag
kata:
diff --git a/roles/web-app-openproject/meta/services.yml b/roles/web-app-openproject/meta/services.yml
index ba28eccfeb..0b40c86802 100644
--- a/roles/web-app-openproject/meta/services.yml
+++ b/roles/web-app-openproject/meta/services.yml
@@ -57,7 +57,7 @@ web:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "17"
- until: 2026-12-03
+ until: 2026-11-30
seeder:
name: openproject-seeder
cpus: "0.3"
diff --git a/roles/web-app-opentalk/meta/services.yml b/roles/web-app-opentalk/meta/services.yml
index 800281a643..4535242b87 100644
--- a/roles/web-app-opentalk/meta/services.yml
+++ b/roles/web-app-opentalk/meta/services.yml
@@ -89,7 +89,7 @@ opentalk:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v2.9.2"
- until: 2026-12-03
+ until: 2026-11-30
controller:
name: opentalk-controller
image: registry.opencode.de/opentalk/controller
@@ -114,7 +114,7 @@ controller:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v0.34.5"
- until: 2026-12-03
+ until: 2026-11-30
livekit:
name: opentalk-livekit
image: livekit/livekit-server
@@ -137,7 +137,7 @@ livekit:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v1.13.11"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â object store, no Playwright surface; the live S3 backend is the seaweedfs block below, web-app-minio is end of life and stays off
minio:
enabled: false # nocheck: dynamic-flag
@@ -173,7 +173,7 @@ rabbit:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "4.4.0"
- until: 2026-12-03
+ until: 2026-11-30
recorder:
name: opentalk-recorder
image: registry.opencode.de/opentalk/recorder
@@ -194,7 +194,7 @@ recorder:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v0.17.5"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â verified by web-svc-design provider spec
design:
bond: 1
diff --git a/roles/web-app-openwebui/meta/services.yml b/roles/web-app-openwebui/meta/services.yml
index d1ce125300..6d24747b02 100644
--- a/roles/web-app-openwebui/meta/services.yml
+++ b/roles/web-app-openwebui/meta/services.yml
@@ -66,7 +66,7 @@ openwebui:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "0.11.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag
# nocheck: playwright-service-flag â DB engine, covered by role-local integration tests
redis:
diff --git a/roles/web-app-peertube/meta/services.yml b/roles/web-app-peertube/meta/services.yml
index fd3573a5a0..6469f2456c 100644
--- a/roles/web-app-peertube/meta/services.yml
+++ b/roles/web-app-peertube/meta/services.yml
@@ -92,7 +92,7 @@ peertube:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v8.3.2"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â verified by web-svc-design provider spec
design:
bond: 1
diff --git a/roles/web-app-phpmyadmin/meta/services.yml b/roles/web-app-phpmyadmin/meta/services.yml
index 34bc53035e..74ada13da0 100644
--- a/roles/web-app-phpmyadmin/meta/services.yml
+++ b/roles/web-app-phpmyadmin/meta/services.yml
@@ -63,7 +63,7 @@ phpmyadmin:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "5.2.3"
- until: 2026-12-03
+ until: 2026-11-30
sso:
bond: 1
enabled: "{{ 'web-app-keycloak' in group_names }}"
diff --git a/roles/web-app-pretix/meta/services.yml b/roles/web-app-pretix/meta/services.yml
index f678937b01..4a9ad3fdaf 100644
--- a/roles/web-app-pretix/meta/services.yml
+++ b/roles/web-app-pretix/meta/services.yml
@@ -134,7 +134,7 @@ pretixmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-prometheus/meta/services.yml b/roles/web-app-prometheus/meta/services.yml
index 0b26b450d6..da9e6f301d 100644
--- a/roles/web-app-prometheus/meta/services.yml
+++ b/roles/web-app-prometheus/meta/services.yml
@@ -150,7 +150,7 @@ node-exporter:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v1.12.1"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
@@ -186,7 +186,7 @@ prometheusmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-seaweedfs/meta/services.yml b/roles/web-app-seaweedfs/meta/services.yml
index 7b7270cede..ed7d04a835 100644
--- a/roles/web-app-seaweedfs/meta/services.yml
+++ b/roles/web-app-seaweedfs/meta/services.yml
@@ -101,7 +101,7 @@ seaweedfs-console:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31-alpine"
- until: 2026-12-03
+ until: 2026-11-30
docs:
bond: 0.5
diff --git a/roles/web-app-shopware/meta/services.yml b/roles/web-app-shopware/meta/services.yml
index 11274054dd..ad0b75f48e 100644
--- a/roles/web-app-shopware/meta/services.yml
+++ b/roles/web-app-shopware/meta/services.yml
@@ -73,7 +73,7 @@ shopware:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "2.11"
- until: 2026-12-03
+ until: 2026-11-30
php:
image: ghcr.io/shopware/docker-base
version: "8.3.36-caddy"
@@ -86,7 +86,7 @@ php:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "8.3.36-caddy"
- until: 2026-12-03
+ until: 2026-11-30
web:
name: shopware-web
cpus: 1.0
diff --git a/roles/web-app-snipe-it/meta/services.yml b/roles/web-app-snipe-it/meta/services.yml
index 8263664472..4ac02548e6 100644
--- a/roles/web-app-snipe-it/meta/services.yml
+++ b/roles/web-app-snipe-it/meta/services.yml
@@ -89,7 +89,7 @@ snipe-it:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v8.8.3-alpine"
- until: 2026-12-03
+ until: 2026-11-30
sso:
bond: 1
enabled: "{{ 'web-app-keycloak' in group_names }}"
@@ -155,7 +155,7 @@ snipeitmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-app-stalwart/meta/services.yml b/roles/web-app-stalwart/meta/services.yml
index c80db640af..ad504dda43 100644
--- a/roles/web-app-stalwart/meta/services.yml
+++ b/roles/web-app-stalwart/meta/services.yml
@@ -110,7 +110,7 @@ postgres:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "18"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag â role-local sub-component, always deployed with the stack
# nocheck: playwright-service-flag â internal sub-component
webmail:
diff --git a/roles/web-app-taiga/meta/services.yml b/roles/web-app-taiga/meta/services.yml
index df96e49c18..4f4f352d9e 100644
--- a/roles/web-app-taiga/meta/services.yml
+++ b/roles/web-app-taiga/meta/services.yml
@@ -107,7 +107,7 @@ gateway:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31.8-alpine"
- until: 2026-12-03
+ until: 2026-11-30
events:
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 8888"]
@@ -122,7 +122,7 @@ events:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "6.10.0"
- until: 2026-12-03
+ until: 2026-11-30
async-rabbitmq:
backup:
stop_required: true
@@ -169,7 +169,7 @@ protected:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "6.10.1"
- until: 2026-12-03
+ until: 2026-11-30
seaweedfs:
bond: 1
enabled: "{{ 'web-svc-seaweedfs' in group_names }}"
diff --git a/roles/web-app-xwiki/meta/services.yml b/roles/web-app-xwiki/meta/services.yml
index 776bf8ba8f..2d4a02b87c 100644
--- a/roles/web-app-xwiki/meta/services.yml
+++ b/roles/web-app-xwiki/meta/services.yml
@@ -86,7 +86,7 @@ xwiki:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "18.9.0-postgres-tomcat"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag â design consumer, no Playwright surface (provider: web-svc-design)
design:
bond: 1
diff --git a/roles/web-app-zammad/meta/services.yml b/roles/web-app-zammad/meta/services.yml
index 87b61a884e..75d1374364 100644
--- a/roles/web-app-zammad/meta/services.yml
+++ b/roles/web-app-zammad/meta/services.yml
@@ -111,7 +111,7 @@ zammad:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "7.1.2"
- until: 2026-12-03
+ until: 2026-11-30
railsserver:
healthcheck:
flavor: connect
@@ -224,7 +224,7 @@ zammadmcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag MCP pairing is proven by the role's own MCP spec, not by a per-consumer gate
openwebui:
bond: 0.5
diff --git a/roles/web-svc-collabora/meta/services.yml b/roles/web-svc-collabora/meta/services.yml
index 18ca1069c5..3867c2486e 100644
--- a/roles/web-svc-collabora/meta/services.yml
+++ b/roles/web-svc-collabora/meta/services.yml
@@ -44,7 +44,7 @@ collabora:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "26.04.6.1.1"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag
# nocheck: design-off Reason: '/' answers a plain OK, the admin console is off and the editor opens only as a POST from the WOPI host (Nextcloud)
design:
diff --git a/roles/web-svc-coturn/meta/services.yml b/roles/web-svc-coturn/meta/services.yml
index 2d67c84291..2e9fb21303 100644
--- a/roles/web-svc-coturn/meta/services.yml
+++ b/roles/web-svc-coturn/meta/services.yml
@@ -36,7 +36,7 @@ coturn:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "4.18.0"
- until: 2026-12-03
+ until: 2026-11-30
gateway:
image: nginx
version: 1.31.8-alpine
@@ -48,7 +48,7 @@ gateway:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "1.31.8-alpine"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag coturn runs with user_auth_enabled false, so it keeps no credential store to back; the entry stays literal until auth is switched on and no template references redis today.
redis:
backup:
diff --git a/roles/web-svc-libretranslate/meta/services.yml b/roles/web-svc-libretranslate/meta/services.yml
index 69662f40e7..47110e3244 100644
--- a/roles/web-svc-libretranslate/meta/services.yml
+++ b/roles/web-svc-libretranslate/meta/services.yml
@@ -41,7 +41,7 @@ libretranslate:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "v1.9.6"
- until: 2026-12-03
+ until: 2026-11-30
sso:
bond: 1
enabled: "{{ 'web-app-keycloak' in group_names }}"
@@ -124,7 +124,7 @@ libretranslatemcp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "3.13.15-slim"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
diff --git a/roles/web-svc-onlyoffice/meta/services.yml b/roles/web-svc-onlyoffice/meta/services.yml
index 8859642b3b..1538d03808 100644
--- a/roles/web-svc-onlyoffice/meta/services.yml
+++ b/roles/web-svc-onlyoffice/meta/services.yml
@@ -54,7 +54,7 @@ onlyoffice:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "10.0.0"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: dynamic-flag
# nocheck: design-off Reason: document server; standalone it serves only static notice pages, the editors render only inside a host app that signs their configuration with the JWT secret
design:
diff --git a/roles/web-svc-xmpp/meta/services.yml b/roles/web-svc-xmpp/meta/services.yml
index 03c2bd262f..e6c1c4ae79 100644
--- a/roles/web-svc-xmpp/meta/services.yml
+++ b/roles/web-svc-xmpp/meta/services.yml
@@ -71,7 +71,7 @@ xmpp:
suppressions:
# nocheck: cve upstream tag ships fixable CRITICAL CVEs; lift it once a rebuilt tag lands
- image_tag: "26.09"
- until: 2026-12-03
+ until: 2026-11-30
# nocheck: playwright-service-flag
# nocheck: variants-coverage â sso-variant-tor requires the onion on in every variant, so the false polarity has no variant left to live in
diff --git a/tests/lint/ansible/services/test_cve_suppressions.py b/tests/lint/ansible/services/test_cve_suppressions.py
index e0d0927c31..58a92e6513 100644
--- a/tests/lint/ansible/services/test_cve_suppressions.py
+++ b/tests/lint/ansible/services/test_cve_suppressions.py
@@ -2,8 +2,8 @@
An entry under ``.security.suppressions`` needs ``id: CVE-YYYY-NNNN``
or an ``image_tag`` equal to the service's ``version``, an ``until:
-YYYY-MM-DD`` that has not passed, and a ``# nocheck: cve `` marker on
-the line directly above it::
+YYYY-MM-DD`` that has not passed and lies no later than ``LATEST_UNTIL``, and a
+``# nocheck: cve `` marker on the line directly above it::
checkmk:
image: checkmk/check-mk-raw
@@ -12,10 +12,10 @@ the line directly above it::
suppressions:
# nocheck: cve the vulnerable module is not loaded by the site
- id: CVE-2026-1234
- until: 2026-12-31
+ until: 2026-11-30
# nocheck: cve upstream ships no rebuild with the fixed packages yet
- image_tag: "2.4.0p39"
- until: 2026-12-31
+ until: 2026-11-30
"""
from __future__ import annotations
@@ -31,6 +31,7 @@ from utils.security.suppressions import RULE, SuppressionError, parse_entries
from . import PROJECT_ROOT
+LATEST_UNTIL = dt.date(2026, 11, 30)
MARKER = re.compile(rf"^\s*#\s*nocheck:\s*{RULE}\b(?P.*)$", re.IGNORECASE)
BLOCK = re.compile(r"^(?P\s*)suppressions:\s*$")
ENTRY = re.compile(r"^(?P\s*)-\s+\S")
@@ -104,6 +105,11 @@ def problems(text: str, where: str, today: dt.date) -> list[str]:
found.append(
f"{where}: {service} suppression of {parsed.subject} expired on {parsed.until}"
)
+ if parsed.until > LATEST_UNTIL:
+ found.append(
+ f"{where}: {service} suppression of {parsed.subject} until "
+ f"{parsed.until} lies after the latest allowed day {LATEST_UNTIL}"
+ )
version = spec.get("version")
if parsed.image_tag is not None and parsed.image_tag != str(version):
found.append(
@@ -134,7 +140,7 @@ app:
suppressions:
# nocheck: cve the module is not built into the image
- id: CVE-2026-1234
- until: 2026-12-31
+ until: 2026-11-30
"""
@@ -160,19 +166,26 @@ class TestCheckerCases(unittest.TestCase):
self.assertIn("is no CVE-YYYY-NNNN id", self._problems(text)[0])
def test_a_missing_until_fails(self) -> None:
- text = VALID.replace(" until: 2026-12-31\n", "")
+ text = VALID.replace(" until: 2026-11-30\n", "")
self.assertIn("until is required", self._problems(text)[0])
def test_a_past_until_fails(self) -> None:
- text = VALID.replace("2026-12-31", "2026-10-30")
+ text = VALID.replace("2026-11-30", "2026-10-30")
self.assertIn("expired on 2026-10-30", self._problems(text)[0])
+ def test_an_until_after_the_latest_allowed_day_fails(self) -> None:
+ text = VALID.replace("2026-11-30", "2026-12-01")
+ self.assertIn(
+ "until 2026-12-01 lies after the latest allowed day 2026-11-30",
+ self._problems(text)[0],
+ )
+
def test_an_unmarked_entry_that_starts_with_until_fails(self) -> None:
text = VALID.replace(
" # nocheck: cve the module is not built into the image\n"
" - id: CVE-2026-1234\n"
- " until: 2026-12-31\n",
- " - until: 2026-12-31\n id: CVE-2026-1234\n",
+ " until: 2026-11-30\n",
+ " - until: 2026-11-30\n id: CVE-2026-1234\n",
)
self.assertIn("has no # nocheck: cve marker", self._problems(text)[0])
@@ -201,7 +214,7 @@ class TestCheckerCases(unittest.TestCase):
self.assertIn("has no # nocheck: cve marker", self._problems(text)[0])
def test_an_expired_image_tag_entry_fails(self) -> None:
- text = TAGGED.replace("2026-12-31", "2026-10-30")
+ text = TAGGED.replace("2026-11-30", "2026-10-30")
self.assertIn("image tag 2.18.6 expired on 2026-10-30", self._problems(text)[0])
@@ -213,7 +226,7 @@ app:
suppressions:
# nocheck: cve upstream ships no rebuild yet
- image_tag: "2.18.6"
- until: 2026-12-31
+ until: 2026-11-30
"""
diff --git a/tests/unit/python/cli/contributing/security/test_issues.py b/tests/unit/python/cli/contributing/security/test_issues.py
index e1b5661ee7..07e41fa0f5 100644
--- a/tests/unit/python/cli/contributing/security/test_issues.py
+++ b/tests/unit/python/cli/contributing/security/test_issues.py
@@ -6,6 +6,7 @@ from unittest import TestCase, main
import cli.contributing.security.issues.__main__ as issues_main
+MIRROR = issues_main.MIRROR
ROW = {
"engine": "grype",
"role": "web-app-roundcube",
@@ -26,6 +27,10 @@ TITLE = "đĄī¸ docker.io/roundcube/roundcubemail:1.7.5-apache"
OTHER_IMAGE = "docker.io/library/nginx:1.31.8-alpine"
+def body(rows):
+ return issues_main.body(rows, MIRROR)
+
+
class FakeGh:
def __init__(self, open_issues, hang=()):
self.open_issues = open_issues
@@ -50,59 +55,69 @@ class TestSync(TestCase):
def test_a_new_finding_opens_one_issue(self):
gh = FakeGh([])
issues_main.sync(
- {"findings": [ROW, {**ROW, "engine": "trivy"}], "errors": []}, "o/r", gh
+ {"findings": [ROW, {**ROW, "engine": "trivy"}], "errors": []},
+ "o/r",
+ gh,
+ MIRROR,
)
self.assertEqual(gh.verbs(), [["issue", "create"]])
def test_a_changed_image_gets_a_comment_and_an_updated_body(self):
gh = FakeGh([{"number": 7, "title": TITLE, "body": "old table"}])
- issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh)
+ issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh, MIRROR)
self.assertEqual(gh.verbs(), [["issue", "comment"], ["issue", "edit"]])
comment = gh.calls[-2]
self.assertIn("Still unresolved:", comment[comment.index("--body") + 1])
self.assertIn(ROW["id"], comment[comment.index("--body") + 1])
def test_an_unchanged_image_leaves_its_issue_alone(self):
- current = issues_main.body([ROW])
+ current = body([ROW])
gh = FakeGh([{"number": 7, "title": TITLE, "body": current + "\r\n"}])
- actions = issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh)
+ actions = issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh, MIRROR)
self.assertEqual((gh.verbs(), actions), ([], [f"unchanged #7 {TITLE}"]))
def test_a_second_open_issue_of_one_image_closes_as_duplicate(self):
- current = issues_main.body([ROW])
+ current = body([ROW])
gh = FakeGh(
[
{"number": 9, "title": TITLE, "body": current},
{"number": 7, "title": TITLE, "body": current},
]
)
- actions = issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh)
+ actions = issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh, MIRROR)
self.assertEqual(gh.verbs(), [["issue", "close"]])
self.assertEqual(gh.calls[-1][2], "9")
self.assertIn(f"unchanged #7 {TITLE}", actions)
def test_a_fixed_finding_closes_its_issue(self):
gh = FakeGh([{"number": 7, "title": TITLE}])
- actions = issues_main.sync({"findings": [], "errors": []}, "o/r", gh)
+ actions = issues_main.sync({"findings": [], "errors": []}, "o/r", gh, MIRROR)
self.assertEqual(actions, [f"closed #7 {TITLE}"])
def test_a_suppressed_finding_keeps_its_issue_open(self):
gh = FakeGh([{"number": 7, "title": TITLE, "body": "old table"}])
- actions = issues_main.sync({"findings": [SUPPRESSED], "errors": []}, "o/r", gh)
+ actions = issues_main.sync(
+ {"findings": [SUPPRESSED], "errors": []}, "o/r", gh, MIRROR
+ )
self.assertEqual(gh.verbs(), [["issue", "comment"], ["issue", "edit"]])
self.assertNotIn(f"closed #7 {TITLE}", actions)
def test_a_scan_error_closes_nothing(self):
gh = FakeGh([{"number": 7, "title": TITLE}])
issues_main.sync(
- {"findings": [], "errors": ["x: the mirror served no digest"]}, "o/r", gh
+ {"findings": [], "errors": ["x: the mirror served no digest"]},
+ "o/r",
+ gh,
+ MIRROR,
)
self.assertEqual(gh.verbs(), [])
def test_a_failed_issue_call_is_reported_and_the_others_still_run(self):
other = {**ROW, "image": OTHER_IMAGE}
gh = FakeGh([{"number": 7, "title": TITLE}], hang=[("issue", "edit")])
- actions = issues_main.sync({"findings": [ROW, other], "errors": []}, "o/r", gh)
+ actions = issues_main.sync(
+ {"findings": [ROW, other], "errors": []}, "o/r", gh, MIRROR
+ )
failed = [action for action in actions if action.startswith("failed ")]
self.assertEqual(len(failed), 1)
self.assertTrue(failed[0].startswith(f"failed updated #7 {TITLE}"))
@@ -117,12 +132,13 @@ class TestSync(TestCase):
},
"o/r",
gh,
+ MIRROR,
)
self.assertEqual(actions, [f"opened {TITLE}"])
def test_the_issue_is_labelled(self):
gh = FakeGh([])
- issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh)
+ issues_main.sync({"findings": [ROW], "errors": []}, "o/r", gh, MIRROR)
create = gh.calls[-1]
self.assertEqual(create[create.index("--label") + 1], issues_main.LABEL)
@@ -132,28 +148,41 @@ class TestBody(TestCase):
return [line for line in text.splitlines() if line.startswith("| CVE-")]
def test_every_engine_gets_a_row(self):
- text = issues_main.body([ROW, {**ROW, "engine": "trivy"}])
+ text = body([ROW, {**ROW, "engine": "trivy"}])
self.assertEqual(len(self._table(text)), 2)
def test_critical_rows_come_first(self):
high = {**ROW, "id": "CVE-2026-000001", "severity": "HIGH"}
- table = self._table(issues_main.body([high, ROW]))
+ table = self._table(body([high, ROW]))
self.assertIn("| CRITICAL |", table[0])
def test_a_suppressed_cve_is_listed_after_the_failing_ones_with_its_until(self):
- text = issues_main.body([SUPPRESSED, ROW])
+ text = body([SUPPRESSED, ROW])
table = self._table(text)
self.assertEqual(
(table[0].endswith("| - |"), table[1].endswith("| 2026-12-03 |")),
(True, True),
)
self.assertIn(
- "carries 2 CVE(s) at the scan threshold, 1 of them suppressed.", text
+ "carries 2 CVE(s) at the scan threshold, 1 of them suppressed: CRITICAL 2.",
+ text,
)
+ def test_the_head_line_counts_each_severity_most_severe_first(self):
+ rows = [
+ {**ROW, "id": "CVE-2026-000001", "severity": "HIGH"},
+ {**ROW, "id": "CVE-2026-000002", "severity": "HIGH"},
+ {**ROW, "engine": "trivy"},
+ ]
+ head = body(rows).splitlines()[0]
+ self.assertTrue(head.endswith(": CRITICAL 1, HIGH 2."), head)
+
+ def test_the_mirror_body_names_its_mirror_copy(self):
+ self.assertIn(f"Mirror: `{ROW['mirror']}@{ROW['digest']}`", body([ROW]))
+
def test_a_large_image_stays_under_the_body_limit(self):
rows = [{**ROW, "id": f"CVE-2026-{index:06d}"} for index in range(2000)]
- text = issues_main.body(rows)
+ text = body(rows)
self.assertLessEqual(len(text), issues_main.BODY_LIMIT)
hidden = 2000 - len(self._table(text))
self.assertGreater(hidden, 0)
diff --git a/tests/unit/python/cli/meta/ci/test_runtime_vulnerabilities.py b/tests/unit/python/cli/meta/ci/test_runtime_vulnerabilities.py
new file mode 100644
index 0000000000..7299a44aaf
--- /dev/null
+++ b/tests/unit/python/cli/meta/ci/test_runtime_vulnerabilities.py
@@ -0,0 +1,392 @@
+from __future__ import annotations
+
+import datetime as dt
+import json
+import tempfile
+import unittest
+from pathlib import Path
+
+import cli.contributing.security.issues.__main__ as issues_main
+from cli.meta.ci import runtime_vulnerabilities as rv
+from utils import PROJECT_ROOT
+from utils.cache.yaml import load_yaml
+from utils.security.pipeline import pipeline
+
+P = pipeline()
+PREFIX = "mirror"
+TODAY = dt.date(2026, 11, 12)
+UNTIL = dt.date(2026, 12, 31)
+NGINX = "ghcr.io/infinito-nexus/core/mirror/docker.io/nginx:1.31-alpine"
+CADVISOR = "ghcr.io/infinito-nexus/core/mirror/ghcr.io/google/cadvisor:v0.60.6"
+LOCAL = "openresty_custom:1.31.8.1-alpine"
+CLEAN = "ghcr.io/infinito-nexus/core/mirror/docker.io/library/redis:8.4-alpine"
+OWNER = ("openresty", "openresty")
+PROMETHEUS = ("prometheus", "cadvisor")
+NGINX_TITLE = "đĄī¸ docker.io/library/nginx:1.31-alpine"
+CADVISOR_TITLE = "đĄī¸ ghcr.io/google/cadvisor:v0.60.6"
+LOCAL_TITLE = f"đĄī¸ {LOCAL}"
+CLEAN_TITLE = "đĄī¸ docker.io/library/redis:8.4-alpine"
+HOST_TITLE = "đĄī¸ host debian"
+PREFIX_LINE = "Nov 12 05:10:34 node hlth-runtime.17.0.0.infinito.nexus[42]: "
+MARKS = ("â", "â ī¸", "âšī¸")
+CI_LINE = (
+ "â grype container prometheus/blackbox-exporter "
+ "ghcr.io/infinito-nexus/core/mirror/docker.io/prom/blackbox-exporter:v0.29.1: "
+ "CVE-2026-111497 CRITICAL github.com/andybalholm/brotli v1.2.6 (fixed in 1.2.7)"
+)
+ENGINE_ERROR = "â osv sbom: no OSV database for Wolfi"
+
+
+def target(key, label, owner):
+ return P.Target(
+ key=key,
+ kind="container",
+ ref=f"sha256:{key}",
+ label=label,
+ owners=(owner,),
+ owner_tags=((owner, P.image_tag(label)),),
+ )
+
+
+def finding(key, cve, severity, fixed, package="zlib"):
+ return P.Finding(
+ engine="grype",
+ target=key,
+ package=package,
+ installed="1.3.2-r1",
+ fixed=fixed,
+ ids=(cve,),
+ severity=severity,
+ )
+
+
+def journal(engine_errors=0):
+ nginx = target("n", NGINX, OWNER)
+ cadvisor = target("c", CADVISOR, PROMETHEUS)
+ local = target("l", LOCAL, OWNER)
+ clean = target("r", CLEAN, ("baserow", "redis"))
+ host = P.host_target("node")
+ tag = P.Suppression(id=None, image_tag="v0.60.6", until=UNTIL)
+ judged = [
+ P.Verdict(
+ finding("n", "CVE-2026-4738", "CRITICAL", "1.4-r0"),
+ nginx,
+ OWNER,
+ None,
+ False,
+ "warn",
+ ),
+ P.Verdict(
+ finding("n", "CVE-2026-0001", "HIGH", ""), nginx, OWNER, None, False, "warn"
+ ),
+ P.Verdict(
+ finding("c", "CVE-2026-0002", "CRITICAL", "1.4-r0"),
+ cadvisor,
+ PROMETHEUS,
+ tag,
+ True,
+ "warn",
+ ),
+ P.Verdict(
+ finding("c", "CVE-2026-0003", "HIGH", ""),
+ cadvisor,
+ PROMETHEUS,
+ tag,
+ True,
+ "warn",
+ ),
+ P.Verdict(
+ finding("l", "CVE-2026-0004", "CRITICAL", "2.0"),
+ local,
+ OWNER,
+ None,
+ False,
+ "fail",
+ ),
+ P.Verdict(
+ finding("host", "CVE-2025-22871", "CRITICAL", "1.24.2", "stdlib"),
+ host,
+ (None, None),
+ None,
+ False,
+ "warn",
+ ),
+ ]
+ failures, warnings, infos = P.report_lines(judged)
+ run = P.Run(
+ id="r",
+ started=dt.datetime(2026, 11, 12, tzinfo=dt.UTC),
+ host="node",
+ environment="development",
+ )
+ outcome = P.Outcome(
+ run=run,
+ targets=(nginx, cadvisor, local, clean, host),
+ records=tuple(P.record(verdict, run) for verdict in judged),
+ errors=tuple(f"osv: broken {index}" for index in range(engine_errors)),
+ engines=("grype",),
+ failed=bool(failures),
+ finished=0.0,
+ )
+ lines = [
+ *(f"{MARKS[2]} {line}" for line in infos),
+ *(f"{MARKS[1]} {line}" for line in warnings),
+ *(f"{MARKS[0]} {line}" for line in failures),
+ CI_LINE,
+ ENGINE_ERROR,
+ *(
+ json.dumps(event)
+ for event in [*outcome.target_events(), outcome.summary_event()]
+ ),
+ ]
+ return "".join(f"{PREFIX_LINE}{line}\n" for line in lines)
+
+
+def write_bundle(
+ root, name="rescue-diagnostics-compose-svc-x-0-debian-ext4-amd64", engine_errors=0
+):
+ text = journal(engine_errors)
+ base = Path(root) / name / "debian" / "svc-x"
+ for relative in (
+ "svc-x-20261112051034Z-1/journal.txt",
+ "ci-host/svc-x-20261112051203Z-2/containers/infinito_nexus_debian.journal.txt",
+ ):
+ path = base / relative
+ path.parent.mkdir(parents=True)
+ path.write_text(text, encoding="utf-8")
+
+
+def collected(engine_errors=0):
+ with tempfile.TemporaryDirectory() as root:
+ write_bundle(root, engine_errors=engine_errors)
+ return rv.collect(Path(root), PREFIX)
+
+
+def rows_of(report, title):
+ return [row for row in report["findings"] if issues_main.title(row) == title]
+
+
+class FakeGh:
+ def __init__(self, issues=(), bundle=None):
+ self.issues = list(issues)
+ self.bundle = bundle
+ self.calls = []
+
+ def __call__(self, args):
+ args = list(args)
+ self.calls.append(args)
+ if args[:2] == ["run", "download"]:
+ self.bundle(args[args.index("-D") + 1])
+ if args[:2] == ["issue", "list"]:
+ label = args[args.index("--label") + 1]
+ return json.dumps(
+ [issue for issue in self.issues if label in issue["labels"]]
+ )
+ return ""
+
+ def writes(self):
+ return [call for call in self.calls if call[0] == "issue" and call[1] != "list"]
+
+ def touched(self, number):
+ return [call for call in self.writes() if call[2] == str(number)]
+
+
+class TestParse(unittest.TestCase):
+ def test_a_mirror_finding_becomes_a_row_with_every_column(self):
+ rows = rows_of(collected(), NGINX_TITLE)
+ critical = next(row for row in rows if row["severity"] == "CRITICAL")
+ self.assertEqual(
+ {key: critical[key] for key in issues_main.COLUMNS},
+ {
+ "id": "CVE-2026-4738",
+ "severity": "CRITICAL",
+ "engine": "grype",
+ "role": "svc-prx-openresty",
+ "service": "openresty",
+ "package": "zlib",
+ "installed": "1.3.2-r1",
+ "fixed": "1.4-r0",
+ "suppressed_until": None,
+ },
+ )
+
+ def test_a_real_ci_line_parses_and_an_engine_error_line_does_not(self):
+ report = collected()
+ self.assertEqual(
+ [
+ row["package"]
+ for row in rows_of(report, "đĄī¸ docker.io/prom/blackbox-exporter:v0.29.1")
+ ],
+ ["github.com/andybalholm/brotli"],
+ )
+ self.assertFalse(
+ [row for row in report["findings"] if "Wolfi" in json.dumps(row)]
+ )
+
+ def test_the_two_journals_of_one_bundle_yield_each_finding_once(self):
+ self.assertEqual(len(rows_of(collected(), NGINX_TITLE)), 2)
+
+ def test_an_image_tag_suppression_fills_every_row_it_covers(self):
+ report = collected()
+ covered = rows_of(report, CADVISOR_TITLE)
+ self.assertEqual(
+ [row["suppressed_until"] for row in covered], ["2026-12-31"] * 2
+ )
+ uncovered = rows_of(report, NGINX_TITLE)
+ self.assertEqual({row["suppressed_until"] for row in uncovered}, {None})
+
+ def test_a_local_build_keeps_its_name_and_the_host_one_title_per_distro(self):
+ report = collected()
+ self.assertEqual(len(rows_of(report, LOCAL_TITLE)), 1)
+ host = rows_of(report, HOST_TITLE)
+ self.assertEqual(
+ [(row["role"], row["service"]) for row in host], [(rv.ROLE, "grype")]
+ )
+
+
+class TestBody(unittest.TestCase):
+ def _cells(self, text, cve):
+ line = next(line for line in text.splitlines() if line.startswith(f"| {cve} "))
+ return dict(
+ zip(
+ issues_main.COLUMNS,
+ (cell.strip() for cell in line.strip("|").split("|")),
+ strict=True,
+ )
+ )
+
+ def test_the_head_line_counts_each_severity(self):
+ text = issues_main.body(rows_of(collected(), NGINX_TITLE), rv.RUNTIME)
+ self.assertTrue(text.splitlines()[0].endswith(": CRITICAL 1, HIGH 1."), text)
+ self.assertIn(
+ "Runtime: `ghcr.io/infinito-nexus/core/mirror/docker.io/nginx:1.31-alpine`",
+ text,
+ )
+
+ def test_fixed_is_a_dash_without_a_fix_and_the_version_with_one(self):
+ text = issues_main.body(rows_of(collected(), NGINX_TITLE), rv.RUNTIME)
+ self.assertEqual(self._cells(text, "CVE-2026-0001")["fixed"], "-")
+ self.assertEqual(self._cells(text, "CVE-2026-4738")["fixed"], "1.4-r0")
+
+ def test_a_suppressed_row_shows_its_day_and_an_open_one_a_dash(self):
+ report = collected()
+ suppressed = issues_main.body(rows_of(report, CADVISOR_TITLE), rv.RUNTIME)
+ self.assertEqual(
+ self._cells(suppressed, "CVE-2026-0003")["suppressed_until"], "2026-12-31"
+ )
+ open_body = issues_main.body(rows_of(report, NGINX_TITLE), rv.RUNTIME)
+ self.assertEqual(
+ self._cells(open_body, "CVE-2026-0001")["suppressed_until"], "-"
+ )
+
+
+class TestLabels(unittest.TestCase):
+ def mirror_issue(self):
+ return {
+ "number": 1,
+ "title": NGINX_TITLE,
+ "body": "mirror table",
+ "labels": [issues_main.LABEL],
+ }
+
+ def test_a_runtime_sync_never_touches_a_mirror_issue(self):
+ gh = FakeGh(
+ [
+ self.mirror_issue(),
+ {**self.mirror_issue(), "number": 2, "title": CLEAN_TITLE},
+ ]
+ )
+ actions = issues_main.sync(collected(), "o/r", gh, rv.RUNTIME)
+ self.assertEqual((gh.touched(1), gh.touched(2)), ([], []))
+ labels = {
+ call[call.index("--label") + 1] for call in gh.calls if "--label" in call
+ }
+ self.assertEqual(labels, {rv.RUNTIME.label})
+ self.assertIn(f"opened {NGINX_TITLE}", actions)
+
+ def test_negative_control_the_mirror_sync_does_close_its_own_issue(self):
+ gh = FakeGh([self.mirror_issue()])
+ issues_main.sync({"findings": [], "errors": []}, "o/r", gh, issues_main.MIRROR)
+ self.assertEqual([call[1] for call in gh.touched(1)], ["close"])
+
+ def test_a_mirror_sync_never_touches_a_runtime_issue(self):
+ runtime = {
+ "number": 3,
+ "title": NGINX_TITLE,
+ "body": "x",
+ "labels": [rv.RUNTIME.label],
+ }
+ gh = FakeGh([runtime])
+ issues_main.sync({"findings": [], "errors": []}, "o/r", gh, issues_main.MIRROR)
+ self.assertEqual(gh.touched(3), [])
+
+
+class TestClose(unittest.TestCase):
+ def issue(self, number, title):
+ return {
+ "number": number,
+ "title": title,
+ "body": "old",
+ "labels": [rv.RUNTIME.label],
+ }
+
+ def test_a_scanned_image_without_findings_closes_its_issue(self):
+ gh = FakeGh([self.issue(5, CLEAN_TITLE)])
+ actions = issues_main.sync(collected(), "o/r", gh, rv.RUNTIME)
+ self.assertIn(f"closed #5 {CLEAN_TITLE}", actions)
+ close = gh.touched(5)[0]
+ self.assertEqual(close[close.index("--comment") + 1], rv.RUNTIME.gone)
+
+ def test_negative_control_an_image_this_run_did_not_scan_stays_open(self):
+ title = "đĄī¸ docker.io/library/postgres:16-alpine"
+ gh = FakeGh([self.issue(6, title)])
+ issues_main.sync(collected(), "o/r", gh, rv.RUNTIME)
+ self.assertEqual(gh.touched(6), [])
+
+ def test_negative_control_a_scan_with_engine_errors_closes_nothing(self):
+ report = collected(engine_errors=1)
+ gh = FakeGh([self.issue(5, CLEAN_TITLE)])
+ issues_main.sync(report, "o/r", gh, rv.RUNTIME)
+ self.assertEqual((gh.touched(5), report["scanned"]), ([], []))
+ self.assertTrue(report["errors"])
+
+
+class TestMainGuard(unittest.TestCase):
+ def run_report(self, ref):
+ gh = FakeGh(bundle=write_bundle)
+ with tempfile.TemporaryDirectory() as dest:
+ actions = rv.report(
+ run_id="9", repo="o/r", ref=ref, dest=Path(dest), prefix=PREFIX, gh=gh
+ )
+ return gh, actions
+
+ def test_a_pull_request_run_files_nothing(self):
+ gh, actions = self.run_report("refs/pull/7/merge")
+ self.assertEqual(gh.calls, [])
+ self.assertTrue(actions[0].startswith("skipped: refs/pull/7/merge"))
+
+ def test_negative_control_a_main_run_downloads_and_files(self):
+ gh, actions = self.run_report(rv.MAIN_REF)
+ self.assertEqual(gh.calls[0][:2], ["run", "download"])
+ self.assertIn(f"opened {NGINX_TITLE}", actions)
+
+ def guarded(self, job):
+ step = next(
+ step
+ for step in job["steps"]
+ if "runtime_vulnerabilities" in step.get("run", "")
+ )
+ return (
+ "github.ref == 'refs/heads/main'" in job["if"]
+ and '--ref "${GITHUB_REF}"' in step["run"]
+ )
+
+ def test_the_workflow_job_runs_only_on_main_and_hands_the_ref_on(self):
+ workflow = PROJECT_ROOT / ".github" / "workflows" / "call-orchestrator.yml"
+ job = load_yaml(str(workflow))["jobs"]["report-main-failures"]
+ self.assertTrue(self.guarded(job))
+ self.assertFalse(self.guarded({**job, "if": "${{ always() }}"}))
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/tests/unit/python/roles/sys-ctl-hlth-runtime/files/test_script.py b/tests/unit/python/roles/sys-ctl-hlth-runtime/files/test_script.py
index 4c0f7d2e54..56051338f7 100644
--- a/tests/unit/python/roles/sys-ctl-hlth-runtime/files/test_script.py
+++ b/tests/unit/python/roles/sys-ctl-hlth-runtime/files/test_script.py
@@ -14,6 +14,12 @@ from pathlib import Path
from types import SimpleNamespace
from unittest import TestCase, main, mock
+from cli.administration.deploy.development.common import DEV_INVENTORY_VARS_FILE
+from plugins.filter.merge.with_defaults import merge_with_defaults
+from utils.cache.yaml import load_yaml
+from utils.security.engine import ROLE
+from utils.security.pipeline import role_services
+
from . import PROJECT_ROOT
@@ -1194,22 +1200,27 @@ class TestScan(TestCase):
any(arg.startswith("sbom:") for call in runner.calls for arg in call)
)
+ def _lane(self, steps, runner):
+ return SCRIPT.run_lane(
+ steps, runner, self.layout.work, threading.BoundedSemaphore(1)
+ )
+
def test_osv_names_a_missing_ecosystem_database(self):
result = SimpleNamespace(
returncode=1,
stdout="",
stderr="could not load db for PyPI ecosystem: no offline",
)
- errors = SCRIPT.run_lane(
- [SCRIPT.Step("osv sbom", ("x",), SCRIPT.OSV_ACCEPTED_EXIT_CODES)],
+ errors = self._lane(
+ [_step("osv sbom", accept=SCRIPT.OSV_ACCEPTED_EXIT_CODES)],
lambda _argv: result,
)
self.assertEqual(errors, ["osv sbom: no OSV database for PyPI"])
def test_osv_exit_code_one_means_findings(self):
result = SimpleNamespace(returncode=1, stdout="", stderr="")
- errors = SCRIPT.run_lane(
- [SCRIPT.Step("osv sbom", ("x",), SCRIPT.OSV_ACCEPTED_EXIT_CODES)],
+ errors = self._lane(
+ [_step("osv sbom", accept=SCRIPT.OSV_ACCEPTED_EXIT_CODES)],
lambda _argv: result,
)
self.assertEqual(errors, [])
@@ -1218,12 +1229,180 @@ class TestScan(TestCase):
def hung(_argv):
raise subprocess.TimeoutExpired(cmd="trivy", timeout=5)
- errors = SCRIPT.run_lane(
- [SCRIPT.Step("trivy host node", ("x",), SCRIPT.SUCCESS)], hung
- )
+ errors = self._lane([_step("trivy host node")], hung)
self.assertEqual(errors, ["trivy host node: no result within 5s"])
+def _step(label, *, accept=SCRIPT.SUCCESS, scratch="tmp-x", exports=False):
+ return SCRIPT.Step(label, ("x",), accept, scratch, exports)
+
+
+def _host_path(layout, container_path):
+ return layout.work / Path(container_path).relative_to(SCRIPT.WORK)
+
+
+class ExportingEngines(FakeEngines):
+ def __init__(self, layout, reports, *, fail=()):
+ super().__init__(layout, reports, fail=fail)
+ self.exporting = 0
+ self.exports = 0
+ self.on_disk_peak = 0
+ self.overlap = threading.Condition()
+
+ def _export(self, argv):
+ if argv[1] == "save":
+ return Path(argv[argv.index("--output") + 1]), True
+ if not any(arg.startswith("docker:") or arg == "--image-src" for arg in argv):
+ return None, False
+ tmpdir = next(arg for arg in argv if arg.startswith("TMPDIR="))
+ scratch = _host_path(self.layout, tmpdir.split("=", 1)[1])
+ return scratch / f"export-{threading.get_ident()}.tar", False
+
+ def __call__(self, argv):
+ argv = list(argv)
+ export, archive = self._export(argv)
+ if export is None:
+ return super().__call__(argv)
+ export.write_bytes(b"layer")
+ with self.overlap:
+ self.exporting += 1
+ self.exports += 1
+ self.overlap.notify_all()
+ self.overlap.wait_for(lambda: self.exporting >= 2, timeout=0.1)
+ tars = self.layout.work.rglob("*.tar") # nocheck: project-walk tempdir
+ self.on_disk_peak = max(self.on_disk_peak, len(list(tars)))
+ try:
+ if archive:
+ return SimpleNamespace(returncode=0, stdout="", stderr="")
+ result = super().__call__(argv)
+ finally:
+ with self.overlap:
+ self.exporting -= 1
+ if result.returncode == 0:
+ export.unlink()
+ return result
+
+
+class TestScratch(TestCase):
+ def setUp(self):
+ self.tmp = tempfile.TemporaryDirectory()
+ root = Path(self.tmp.name)
+ for name in ("db", "sbom", "work"):
+ (root / name).mkdir()
+ self.layout = SCRIPT.Layout(
+ runtime=("container", "run"),
+ databases=root / "db",
+ sbom=root / "sbom",
+ work=root / "work",
+ excludes=("/proc",),
+ )
+ self.images = {engine: f"{engine}:1" for engine in SCRIPT.ENGINES}
+ self.containers = SCRIPT.container_targets(
+ [_container(name, image=f"sha256:{name}") for name in ("a", "b", "c")]
+ )
+
+ def tearDown(self):
+ self.tmp.cleanup()
+
+ def _scan(self, config, targets, *, reports=None, fail=()):
+ runner = ExportingEngines(self.layout, reports or {}, fail=fail)
+ with mock.patch.object(SCRIPT, "pause"):
+ _findings, errors = SCRIPT.scan(
+ targets, config, self.images, self.layout, runner
+ )
+ return runner, errors
+
+ def _left_on_disk(self):
+ return sorted(
+ path.relative_to(self.layout.work).as_posix()
+ for path in self.layout.work.rglob("*") # nocheck: project-walk tempdir
+ if path.suffix == ".tar" or path.name.startswith("tmp-")
+ )
+
+ def test_one_image_export_is_on_disk_at_a_time(self):
+ runner, errors = self._scan(
+ _config(), [*self.containers, SCRIPT.host_target("node")]
+ )
+ self.assertEqual(errors, [])
+ self.assertEqual(runner.exports, 6)
+ self.assertEqual(runner.on_disk_peak, 1)
+ self.assertEqual(self._left_on_disk(), [])
+
+ def test_engines_reading_the_image_without_syft_export_one_at_a_time(self):
+ runner, errors = self._scan(
+ _config(targets=["container"], engines=["trivy", "grype", "osv"]),
+ self.containers,
+ reports={"osv.json": {"results": []}},
+ )
+ self.assertEqual(errors, [])
+ self.assertEqual(runner.exports, 9)
+ self.assertEqual(runner.on_disk_peak, 1)
+ self.assertEqual(self._left_on_disk(), [])
+
+ def test_a_failing_engine_leaves_no_export_behind(self):
+ runner, errors = self._scan(
+ _config(targets=["container"]),
+ self.containers,
+ fail=("docker:sha256:",),
+ )
+ self.assertEqual(
+ errors,
+ [f"syft container {name}:1: exited 2: boom" for name in ("a", "b", "c")],
+ )
+ self.assertEqual(runner.on_disk_peak, 1)
+ self.assertEqual(self._left_on_disk(), [])
+
+ def test_a_failing_osv_scan_removes_its_archive(self):
+ runner, errors = self._scan(
+ _config(targets=["container"], engines=["grype", "osv"]),
+ self.containers[:1],
+ fail=("--archive",),
+ )
+ self.assertEqual(errors, ["osv container a:1: exited 2: boom"])
+ self.assertEqual(runner.on_disk_peak, 1)
+ self.assertEqual(self._left_on_disk(), [])
+
+ def test_a_raising_runner_still_removes_the_scratch(self):
+ def crash(argv):
+ (_host_path(self.layout, "/work/tmp-x") / "partial.tar").write_bytes(b"")
+ raise OSError("engine vanished")
+
+ with self.assertRaises(OSError):
+ SCRIPT.run_lane(
+ [_step("trivy container a:1", exports=True)],
+ crash,
+ self.layout.work,
+ threading.BoundedSemaphore(1),
+ )
+ self.assertEqual(self._left_on_disk(), [])
+
+ def test_a_killed_run_is_swept_by_the_next(self):
+ cache = Path(self.tmp.name) / "cache"
+ stale = cache / "run-killed"
+ stale.mkdir(parents=True)
+ (stale / "image.tar").write_bytes(b"layer")
+ keep = cache / "db" / "grype" / "6" / "vulnerability.db"
+ keep.parent.mkdir(parents=True)
+ keep.write_bytes(b"db")
+ with (
+ mock.patch.object(SCRIPT, "docker_root", return_value="/var/lib/docker"),
+ mock.patch.object(SCRIPT, "scan", return_value=([], [])),
+ ):
+ SCRIPT.vulnerability_check(
+ [],
+ _config(targets=["container"]),
+ self.images,
+ _suppressions(),
+ cache,
+ cache / "db",
+ [],
+ None,
+ SCRIPT.Run("id", dt.datetime.now(tz=dt.UTC), "node", "test"),
+ )
+ self.assertFalse(stale.exists())
+ self.assertTrue(keep.is_file())
+
+
class TestCommands(TestCase):
def setUp(self):
self.layout = SCRIPT.Layout(
@@ -1247,18 +1426,76 @@ class TestCommands(TestCase):
step = SCRIPT.trivy_step(self.layout, "trivy:1", self.host, _config())
self.assertIn("/:/host:ro", step.argv)
- def test_every_engine_writes_its_temp_files_to_the_work_mount(self):
+ def test_every_engine_writes_its_temp_files_to_its_scratch_in_the_work_mount(self):
for engine in ("trivy", "grype", "osv", "syft"):
with self.subTest(engine=engine):
argv = SCRIPT.run_argv(
- self.layout, engine, f"{engine}:1", [], target=None, extra_env={}
+ self.layout,
+ engine,
+ f"{engine}:1",
+ [],
+ target=None,
+ extra_env={},
+ scratch="tmp-x",
)
- self.assertIn("TMPDIR=/work", argv)
+ self.assertIn("TMPDIR=/work/tmp-x", argv)
self.assertIn("/var/cache/v/run:/work", argv)
- def test_the_grype_database_update_writes_its_listing_to_the_work_mount(self):
+ def test_the_grype_database_update_writes_its_listing_to_its_scratch(self):
(step,) = SCRIPT.db_steps("grype", self.layout, "grype:1")
- self.assertIn("TMPDIR=/work", step.argv)
+ self.assertIn(f"TMPDIR=/work/{step.scratch}", step.argv)
+
+ def test_parallel_engine_runs_never_share_a_scratch(self):
+ steps = [
+ SCRIPT.sbom_step(self.layout, "syft:1", self.container),
+ SCRIPT.trivy_step(self.layout, "trivy:1", self.container, _config()),
+ SCRIPT.grype_step(self.layout, "grype:1", self.container, _config()),
+ SCRIPT.runtime_step(self.layout, "grype:1", self.container),
+ SCRIPT.osv_sbom_step(self.layout, "osv:1", [self.container], _config()),
+ *SCRIPT.db_steps("grype", self.layout, "grype:1"),
+ ]
+ scratches = [step.scratch for step in steps]
+ self.assertEqual(len(set(scratches)), len(scratches))
+
+ def test_only_runs_that_read_a_local_image_export_it(self):
+ without_syft = _config(engines=["grype", "osv"], targets=["container"])
+ cases = {
+ "syft container": SCRIPT.sbom_step(self.layout, "syft:1", self.container),
+ "syft host": SCRIPT.sbom_step(self.layout, "syft:1", self.host),
+ "trivy container": SCRIPT.trivy_step(
+ self.layout, "trivy:1", self.container, _config()
+ ),
+ "trivy host": SCRIPT.trivy_step(
+ self.layout, "trivy:1", self.host, _config()
+ ),
+ "grype sbom": SCRIPT.grype_step(
+ self.layout, "grype:1", self.container, _config()
+ ),
+ "grype image": SCRIPT.grype_step(
+ self.layout, "grype:1", self.container, without_syft
+ ),
+ "osv export": SCRIPT.osv_image_steps(
+ self.layout, "osv:1", self.container, without_syft
+ )[0],
+ "osv archive": SCRIPT.osv_image_steps(
+ self.layout, "osv:1", self.container, without_syft
+ )[1],
+ }
+ self.assertEqual(
+ {name for name, step in cases.items() if step.exports},
+ {"syft container", "trivy container", "grype image", "osv export"},
+ )
+
+ def test_osv_exports_into_the_scratch_its_scan_reads(self):
+ export, scan = SCRIPT.osv_image_steps(
+ self.layout,
+ "osv:1",
+ self.container,
+ _config(engines=["osv", "grype"], targets=["container"]),
+ )
+ self.assertEqual(export.scratch, scan.scratch)
+ self.assertIn(str(self.layout.work / export.scratch / "image.tar"), export.argv)
+ self.assertIn(f"/work/{scan.scratch}/image.tar", scan.argv)
def test_a_container_scan_reads_the_docker_socket_read_only(self):
step = SCRIPT.trivy_step(self.layout, "trivy:1", self.container, _config())
@@ -1738,6 +1975,21 @@ MAIN_SCAN = {
"workers": 1,
"db_update": True,
}
+SHIPPED_SCAN = {
+ **MAIN_SCAN,
+ "severity": role_services()["runtime"]["severity"],
+}
+DEVELOPMENT_SCAN = {
+ **MAIN_SCAN,
+ "severity": merge_with_defaults(
+ {ROLE: {"services": role_services()}},
+ {
+ ROLE: load_yaml(str(PROJECT_ROOT / DEV_INVENTORY_VARS_FILE))[
+ "applications"
+ ].get(ROLE, {})
+ },
+ )[ROLE]["services"]["runtime"]["severity"],
+}
CRITICAL_FINDING = _finding(engine="grype", severity="CRITICAL")
HIGH_FINDING = _finding(engine="grype", ids=("CVE-2026-0002",))
@@ -1786,7 +2038,15 @@ class TestMain(TestCase):
code = SCRIPT.main(self._args(scan, NO_SUPPRESSIONS, []))
return code, out.getvalue()
- def _main(self, findings, *, errors=(), suppressions=NO_SUPPRESSIONS, metrics=None):
+ def _main(
+ self,
+ findings,
+ *,
+ errors=(),
+ suppressions=NO_SUPPRESSIONS,
+ metrics=None,
+ scan=MAIN_SCAN,
+ ):
flags = ["--metrics-file", str(self.metrics)] if metrics is None else metrics
with (
mock.patch.object(SCRIPT, "running_containers", return_value=[]),
@@ -1798,7 +2058,7 @@ class TestMain(TestCase):
mock.patch.object(SCRIPT.socket, "gethostname", return_value="node"),
contextlib.redirect_stdout(io.StringIO()) as out,
):
- code = SCRIPT.main(self._args(MAIN_SCAN, suppressions, flags))
+ code = SCRIPT.main(self._args(scan, suppressions, flags))
return code, out.getvalue()
def _report(self):
@@ -1857,6 +2117,40 @@ class TestMain(TestCase):
self.assertEqual(code, 1)
self.assertIn("â grype database: exited 1", output)
+ def test_the_shipped_threshold_fails_on_a_critical(self):
+ code, output = self._main([CRITICAL_FINDING], scan=SHIPPED_SCAN)
+ self.assertEqual((SHIPPED_SCAN["severity"]["CRITICAL"], code), ("fail", 1))
+ self.assertIn(
+ "â grype host node: CVE-2026-0001 CRITICAL openssl 1.0 (fixed in 1.1)",
+ output,
+ )
+
+ def test_the_development_inventory_maps_critical_to_warn(self):
+ self.assertEqual(
+ DEVELOPMENT_SCAN["severity"], {"CRITICAL": "warn", "HIGH": "warn"}
+ )
+
+ def test_the_development_inventory_reports_a_critical_without_failing(self):
+ code, output = self._main([CRITICAL_FINDING], scan=DEVELOPMENT_SCAN)
+ self.assertEqual((code, "â" in output), (0, False))
+ self.assertIn(
+ "â ī¸ grype host node: CVE-2026-0001 CRITICAL openssl 1.0 (fixed in 1.1)",
+ output,
+ )
+ self.assertEqual(
+ [(item["id"], item["verdict"]) for item in self._report()["findings"]],
+ [("CVE-2026-0001", "warn")],
+ )
+
+ def test_the_development_inventory_still_fails_on_an_engine_error(self):
+ code, output = self._main(
+ [CRITICAL_FINDING],
+ errors=["grype database: exited 1"],
+ scan=DEVELOPMENT_SCAN,
+ )
+ self.assertEqual(code, 1)
+ self.assertIn("â grype database: exited 1", output)
+
def test_the_journal_has_one_json_line_per_target(self):
_code, output = self._main([CRITICAL_FINDING, HIGH_FINDING])
events = [json.loads(line) for line in output.splitlines() if line[:1] == "{"]
diff --git a/tests/unit/python/utils/update/test_source.py b/tests/unit/python/utils/update/test_source.py
index d000b304d6..f5ba65c76a 100644
--- a/tests/unit/python/utils/update/test_source.py
+++ b/tests/unit/python/utils/update/test_source.py
@@ -288,6 +288,38 @@ class TestAddons(unittest.TestCase):
self.assertIn("released/download/v1.3.0/app.tar.gz", written)
self.assertIn("upstream_id: example/released", written)
+ def test_every_version_in_the_archive_moves_with_its_own_prefix(self) -> None:
+ root = _addon_repo(
+ {
+ "prefixed": ADDONS["released"].replace(
+ "v1.2.0/app.tar.gz", "v1.2.0/app-v1.2.0.tar.gz"
+ ),
+ "bare": ADDONS["released"].replace(
+ "v1.2.0/app.tar.gz", "v1.2.0/app-1.2.0.tar.gz"
+ ),
+ }
+ )
+ with mock.patch.object(module, "candidates", return_value=["v2.0.0"]):
+ module.apply_updates(module.find_outdated_updates(root))
+
+ directory = root / "roles" / "web-app-example" / ROLE_DIR_META_ADDONS
+ prefixed_path = directory / "prefixed.yml"
+ bare_path = directory / "bare.yml"
+ prefixed = prefixed_path.read_text() # nocheck: cache-read just rewritten here
+ bare = bare_path.read_text() # nocheck: cache-read just rewritten here
+ self.assertIn("released/download/v2.0.0/app-v2.0.0.tar.gz", prefixed)
+ self.assertIn("released/download/v2.0.0/app-2.0.0.tar.gz", bare)
+
+ def test_a_longer_version_holding_the_pin_stays(self) -> None:
+ self.assertEqual(
+ module.bump_archive(
+ "archive: https://x.test/v1.2.0/app-11.2.0-v1.2.0.1.tar.gz",
+ "v1.2.0",
+ "v1.3.0",
+ ),
+ "archive: https://x.test/v1.3.0/app-11.2.0-v1.2.0.1.tar.gz",
+ )
+
def test_an_archive_that_does_not_carry_the_pin_is_reported(self) -> None:
drifted = ADDONS["released"].replace('version: "v1.2.0"', 'version: "v1.1.0"')
root = _addon_repo({"drifted": drifted})
diff --git a/utils/security/database.py b/utils/security/database.py
index 078e912a9a..56c0e5b7e0 100644
--- a/utils/security/database.py
+++ b/utils/security/database.py
@@ -74,7 +74,7 @@ def fetch_databases(
(root / engine).mkdir(parents=True, exist_ok=True)
if engine != "osv":
lanes.append(p.db_steps(engine, layout, engine_image(engine)))
- errors = p._flat(p.run_lanes(lanes, runner, len(lanes) or 1))
+ errors = p._flat(p.run_lanes(lanes, runner, len(lanes) or 1, layout.work))
if "osv" in engines:
for zip_file in osv_zips(p, root):
zip_file.parent.mkdir(parents=True, exist_ok=True)
diff --git a/utils/update/source.py b/utils/update/source.py
index ac0af3e91e..c8eabb8949 100644
--- a/utils/update/source.py
+++ b/utils/update/source.py
@@ -452,6 +452,26 @@ def find_outdated_updates(repo_root: Path) -> list[VersionSourceUpdate]:
return outdated(collect_entries(repo_root), repo_root)
+def bump_archive(line: str, current: str, latest: str) -> str:
+ """Return the archive line with every occurrence of the pinned version moved.
+
+ Args:
+ line: the ``archive`` line of an addon.
+ current: the pinned version, with or without a leading ``v``.
+ latest: the version it moves to.
+
+ Returns:
+ The line with each occurrence of ``current`` replaced by ``latest``,
+ each keeping its own ``v`` prefix or lack of one.
+ """
+ old, new = current.removeprefix("v"), latest.removeprefix("v")
+ return re.sub(
+ rf"(? list[Path]:
"""Rewrite every pin to its newer version and return the changed files."""
changed: list[Path] = []
@@ -464,8 +484,8 @@ def apply_updates(updates: Iterable[VersionSourceUpdate]) -> list[Path]:
lines[index] = lines[index].replace(update.entry.current, update.latest, 1)
archive = archive_index(lines) if update.entry.addon else None
if archive is not None:
- lines[archive] = lines[archive].replace(
- update.entry.current, update.latest, 1
+ lines[archive] = bump_archive(
+ lines[archive], update.entry.current, update.latest
)
checksum.rewrite(
lines,
]