feat(yocto): layer pins from kas, repo manifests and submodules, and a finding when the Yocto release is end of life
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m14s

- kas files (local includes merged as kas does, cycles end, remote and
  missing includes named and never fetched, lock-file overrides), repo
  manifests (remote/default inheritance, includes, extend/remove-project)
  and .gitmodules with the gitlink commit of a checkout are read as layer
  pins; YAML alias expansion is bounded, manifests with a DTD are refused.
- The pins and the release they make up are stored on the target
  (layer_pins) and shown on the target page ("Layer-Stände").
- The release comes from the poky / openembedded-core / meta-openembedded
  branch or tag, else LAYERSERIES_COMPAT_core, else the newest release all
  customer layers declare. A table of Yocto releases (wiki + endoflife.date,
  checked 2026-10-09) gives LTS and end of life.
- yocto-release-eol (high) / yocto-release-eol-soon (medium, within six
  months) bound to cra-ai-22; an unknown release is a skipped stage.
- Nightly fixture pins Poky to Dunfell; baseline records pins and release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-09 20:04:27 +02:00
1 parent ba499d14e4
commit dc1b13b3b7
30 files changed
+2547 -7

No files matched your search

+79
View File
@@ -37,6 +37,7 @@ searched.
| SBOM from lockfiles (Syft) | runs, but a layer has no lockfiles, so it is usually empty |
| Firmware SBOM (Firmwerk) | not run: listed under **Nicht ausgeführt** as "Yocto build analysis is planned (tier 2)" |
| Recipe lint (oelint-adv and our own rules) | runs over your layers, see below |
| Layer pins and Yocto release | runs: kas files, `repo` manifests and submodules, and a finding when the release is end of life; see [Layer pins and the Yocto release](#layer-pins-and-the-yocto-release) |
| Recipe inventory | runs: SBOM components and NVD CVEs from the recipes, `CVE_STATUS` and `CVE:` patches as VEX; see [Recipe inventory](#recipe-inventory) |
| In the image (declared) | runs: the recipes your image recipes install are marked; see [Im Image (deklariert)](#im-image-deklariert) |
| Image SBOM / CVE | needs build artefacts (SPDX / manifest), planned (tier 2) |
@@ -102,6 +103,84 @@ layer tree, recipe lint checks it (network access in build tasks, plain-http
fetches), so the CRA status assesses it there; for every other target it stays
"not code-checkable".
## Layer pins and the Yocto release
The scan reads which layer repositories the build fetches, and at which
branch and commit, without fetching any of them. The pins are stored on the
target and shown on its page under **Layer-Stände** (*Layer pins*), with the
release they make up.
| Read from | What |
| --- | --- |
| kas project files (`kas*.yml` anywhere, any YAML file in a `kas/` directory) | every repository under `repos:` with a `url`: `branch`, `tag` or the older `refspec`, and `commit`; `defaults.repos.branch`; a lock file beside it (`kas.lock.yml`, `overrides.repos.<name>.commit`). A repository without `url` is the one the kas file is in and is not a pin. |
| kas includes (`header.includes`) | local files, relative to the including file or to the repository root, merged in before the including file's own settings, as kas does; an include cycle ends at the file already being read. An include from another repository (`repo:` / `file:`) or a URL is never fetched: it is listed under "Nicht gelesene Includes", as is a local include that is missing or leaves the repository. |
| `repo` manifests (an XML file whose `<manifest>` has `<project>` or `<include>` elements) | each `<project>`: URL from its remote's `fetch` and its name, revision from the project, else the remote, else `<default>`; a commit as revision takes the branch from `upstream` / `dest-branch`. `<include>`, `<extend-project>` and `<remove-project>` are followed (locally). A manifest with a DTD is not read. |
| `.gitmodules` | each submodule's URL and `branch`; for a git repository the commit its HEAD records for the submodule (the gitlink). An uploaded archive has no git history, so its submodules have no commit. A submodule's own kas files and manifests are not read as the tree's. |
Files over 1 MiB, symbolic links and YAML that expands past 100,000 nodes
through aliases are not read; kas files and manifests are looked for up to four
directories deep, not in `build/`, `downloads/` or vendor directories.
**The release** is read from the first of:
1. the branch or tag of the Poky, OpenEmbedded-Core or meta-openembedded pin
(in that order): a codename (`scarthgap`, `scarthgap-5.0.3`,
`kirkstone-4.0.15`, `dunfell-23.0.10`) or a `yocto-<version>` tag
(`yocto-5.0.3`); `master` names none;
2. `LAYERSERIES_COMPAT_core` of an OpenEmbedded-Core layer in the tree;
3. `LAYERSERIES_COMPAT_*` of your layers: the **newest** release all of them
declare. A layer compatible with `kirkstone scarthgap` may be built on
Scarthgap, so it is not reported as Kirkstone (the recipe lint reads the
oldest one instead, for the syntax the recipes must accept).
The pins win over `LAYERSERIES_COMPAT`: they say what the build fetches, the
layer what it claims to support. When none of the three names a release in the
table below, there is no finding and the run lists **Yocto-Release
(Support-Status)** under **Nicht ausgeführt**.
**Support status.** On the scan's date:
| Rule (`yocto-release`) | When | Severity | CRA | Control |
| --- | --- | --- | --- | --- |
| `yocto-release-eol` | the release's end of life has passed | high | Annex I Part I (2)(c) security updates, Part II (2) remediation without delay | CRA-AI-22 |
| `yocto-release-eol-soon` | its end of life is within six months | medium | the same | CRA-AI-22 |
The finding names the release, its end of life, where it was read from (the
kas file, manifest or `layer.conf`) and the source of the date, and recommends
the current long term support release (the newest LTS supported for more than
six months on the scan's date). It is CWE-1104 (unmaintained third-party
components).
**The release table** (in `compliance-agent/src/pipeline/yocto_pins/release.rs`)
is taken from the [Yocto Project releases wiki](https://wiki.yoctoproject.org/wiki/Releases)
(page last updated 2026-09-10), checked on **2026-10-09**. The wiki gives
months; the exact days are [endoflife.date's](https://endoflife.date/yocto),
which match the wiki except Walnascar (wiki: "EOL since November 2025"). For
Thud and older the end of life is the month of the last point release.
| Codename | Version | LTS | Released | End of life |
| --- | --- | --- | --- | --- |
| Jethro … Thud | 2.0 – 2.6 | no | 2015 – 2018 | 2017 – 2019 |
| Warrior | 2.7 | no | 2019-05-01 | 2020-06-01 |
| Zeus | 3.0 | no | 2019-10-22 | 2020-08-01 |
| Dunfell | 3.1 | yes | 2020-04-21 | 2024-04-30 |
| Gatesgarth | 3.2 | no | 2020-11-03 | 2021-05-01 |
| Hardknott | 3.3 | no | 2021-04-19 | 2022-04-20 |
| Honister | 3.4 | no | 2021-10-25 | 2022-05-01 |
| Kirkstone | 4.0 | yes | 2022-04-25 | 2026-04-27 |
| Langdale | 4.1 | no | 2022-10-23 | 2023-05-27 |
| Mickledore | 4.2 | no | 2023-05-03 | 2023-11-05 |
| Nanbield | 4.3 | no | 2023-11-09 | 2024-06-09 |
| Scarthgap | 5.0 | yes | 2024-04-29 | 2028-04-30 |
| Styhead | 5.1 | no | 2024-10-16 | 2025-05-16 |
| Walnascar | 5.2 | no | 2025-05-07 | 2025-12-07 |
| Whinlatter | 5.3 | no | 2025-12-15 | 2026-06-15 |
| Wrynose | 6.0 | yes | 2026-05-13 | 2030-04-30 |
Blacksail (6.1, due October 2026) is not in the table until it is released; a
layer on it reads as an unknown release. The table is updated by hand with
each Yocto release.
## Recipe inventory
A tree detected as a Yocto layer tree (see [Detection](#detection)), and any