Machine-translated – improvements welcome. Suggest an improvement
Components and licences¶
Ablago isn't only its own code: the image contains Alpine Linux with a few system programs, Node.js, libraries from npm, fonts and the offline manual. Exactly which ones a version contains, with version, licence and source, is listed with every release – to look up, for your own documentation or for a review in your organisation.
No legal assessment
The list is a technical listing, generated automatically. It says what is in the image and which licence the packages declare – not what that means for your use. Ablago itself is under the Apache License 2.0 (LICENSE, NOTICE).
Where to find the list¶
In the text of every release there is the section Bestandteile und Lizenzen (components and licences) – an overview:
- Stand (state): version, date, commit and the digests of both images (
dmsanddms-komplett), per architecture (amd64, arm64) and for the shared index. - Changed compared with the previous version: first components with a changed licence, then new ones, removed ones and those with a new version.
- Licences: how many components carry which licence, per licence expandable with the names (directly included ones in bold). Listed individually are those with special obligations (copyleft, e.g. GPL, LGPL, MPL) – with the package they come through and a link to the source code – and those without a recognised licence.
- Directly included libraries and system programs: what each is for and how many packages it brings along.
- Only what is in the image is counted. Tools for development and test are only in the attachments.
As attachments to the release you get the complete list, every component with its source:
| File | Format | For |
|---|---|---|
ablago-bestandteile.csv |
CSV (comma, UTF-8) | Spreadsheets, your own documentation |
ablago-bestandteile.spdx.json |
SPDX 2.3 | Tools for licences and bills of materials |
ablago-bestandteile.cdx.json |
CycloneDX 1.5 | Tools for bills of materials and vulnerabilities (e.g. Dependency-Track) |
The links in the table always lead to the stable version (:stabil) – on GitHub that is the release marked Latest. For a specific version, replace latest/download with download/v<version>, e.g. …/releases/download/v0.291.0/ablago-bestandteile.csv. Releases from before this feature have no attachments; until the first version with a list is stable, the links lead nowhere.
The CSV columns (German headings): Art (kind), Name, Version, Lizenz (licence), Varianten (dms, dms-komplett), Architekturen, Herkunftspaket (for Alpine the source package it was built from; for the web interface „im Bündel“, in the bundle), Quelle (source) and, the tree:
- Ebene (level): 0 = Ablago itself, 1 = directly included, 2 and more = brought along.
- Eingebracht durch (brought in by): the level-1 packages through which a transitive package comes, e.g.
poppler-utilsorfastify. Alpine packages that none of the specially installed programs needs come with the Basis-Image (node, Alpine) (base image). - Einsatz (use): Betrieb (operation) = in the image; Entwicklung (development) and Test = only for building and checking, not in the image (then Varianten and Architekturen are empty).
- Zweck (purpose): for level 1, what the package is for.
In SPDX the dependencies are DEPENDS_ON relationships (level-1 tools as DEV_DEPENDENCY_OF or TEST_DEPENDENCY_OF), in CycloneDX under dependencies, tools with scope: excluded. This way a tool such as Dependency-Track shows through which package a vulnerability comes in. How Ablago is built, package by package: Composition from components in the developer manual.
What it contains¶
| Kind | From | Examples |
|---|---|---|
| Alpine-Paket, Schrift (Alpine) | Bill of materials of the finished image (Trivy) | busybox, poppler-utils, qpdf, font-liberation, PostgreSQL in dms-komplett |
| npm (Server) | Bill of materials of the finished image (Trivy) | Fastify, nodemailer, pdf-lib |
| Ablago selbst (Ablago itself) | Bill of materials and repository | Server, web interface, the release's commit |
| Laufzeit (runtime) | Node version from the image | Node.js |
| npm (Oberfläche) (web interface) | Build of the web interface (Vite) | React, qrcode – bundled into one file in the image, so invisible to Trivy |
| Schrift, Oberfläche (fonts, interface) | Repository | Noto Sans and Noto Sans Mono (Ablago's own PDFs), Lucide (icons) |
| Handbuch (manual) | Repository | Texts and images of the offline manual, Material for MkDocs |
| npm (Werkzeug) (tool) | package-lock.json, web/rauchtest/package-lock.json |
TypeScript, Vite, ESLint, Playwright – development and test only, not in the image |
Two limits:
- Web interface libraries come from the build of the web interface: every npm package that contributes code to the finished bundle counts, with version and licence from
package-lock.json. What a package only brings along for its command line (e.g.yargswithqrcode) is not in the list. - Licences are taken as the packages declare them. Where a package declares none, it says ohne erkannte Lizenz (without a recognised licence). You find the source of an Alpine package via the link to pkgs.alpinelinux.org (source package and Alpine branch); from there a link leads to the build script in aports.
How the list is made¶
With every new version, after both images have been built and merged:
- Bill of materials per image and architecture: Trivy reads the finished images from the registry (
dmsanddms-komplett, each amd64 and arm64); the digests and the Node version come from the image as well. - Additions: what Trivy can't see – the web interface libraries (from the build of the web interface in the same run, the same production build as in the image), fonts, the offline manual and Ablago itself.
- Tree: level and origin for npm from the lockfiles, for Alpine from the package database in the image (relationships in Trivy's bill of materials); the purpose of the directly included packages from
bestandteile-wozu.json. - Merge and compare: identical components from all variants and architectures become one row; the comparison is with the CSV attached to the previous release, only for what is in the image.
- Release: the overview goes into the release text, the three files become attachments.
The tool for this is in the repository at .github/werkzeuge/bestandteile.mjs, what the system programs and the directly included libraries are for at bestandteile-wozu.json. If the list can't be generated once, the release still appears – with a note in place of the overview.
License check¶
Every license in the image is checked against a fixed list: .github/lizenzen-erlaubt.json. It is a policy decision of the project, not a legal assessment. The list has three groups:
- Allowed: also in Ablago's code or bundled into the web interface, e.g. MIT, BSD, Apache-2.0, ISC.
- Standalone only: only for programs and system libraries in the image that are not linked into Ablago's code, e.g. GPL for busybox or poppler. Each such package is listed with a reason.
- Blocked: never goes into the image, e.g. AGPL.
On top of that there are exceptions per package with a reason. For a choice of licenses, the chosen one is noted there.
The check runs with every release against the list and against the previous version, and every week again on the latest release: Trivy reads the image again so that a license detected differently later also stands out. If something differs – changed license, license not on the list, no license detected – three things happen:
- There is an issue “Lizenz prüfen: …” (only one per package; later findings become comments).
- The release still appears so that security fixes do not get stuck. But it carries the notice “Lizenz noch nicht geprüft” (license not yet checked) at the very top of the section “Bestandteile und Lizenzen”, with package, version, license and issue. When everything is checked, it says “Alle Lizenzen geprüft” (all licenses checked) with a link to the list in exactly this version.
- The CSV has the column “Prüfstatus” (check status):
geprüft(checked) ornicht geprüft (#issue)(not checked). Your audit tool can filter by it. Tools for development and test have no check status; they are not in the image.
A license is confirmed once it has been added to the list or entered as an exception and the issue is closed. From the next release on, the notice is gone.
Verifying¶
Overview and attachments are a readable view. The proof is the signed attestation on the image: the provenance (which commit and which workflow the image comes from) and a bill of materials in SPDX format. Both are next to the image in the registry, see also Where does the image come from?.
Provenance and signed bill of materials, using the digest of the index (row alle (Index) in the section Stand). The attestation is attached to the index, not to the per-architecture digests; with the digest for amd64 or arm64, gh reports "no attestations found". Each image has its own attestation:
gh attestation verify oci://ghcr.io/motom001/dms@sha256:<index digest> -R motom001/dms
gh attestation verify oci://ghcr.io/motom001/dms@sha256:<index digest> -R motom001/dms \
--predicate-type https://spdx.dev/Document/v2.3
gh attestation verify oci://ghcr.io/motom001/dms-komplett@sha256:<index digest> -R motom001/dms
The signed bill of materials on the image covers the system packages and the server's npm packages as Trivy recognises them for amd64. The additions (web interface, fonts, manual) and the list for arm64 are in the attachments. They are made in the same run from the same commit and carry their own provenance attestation. Download the file from the release and check it:
gh attestation verify ablago-bestandteile.csv -R motom001/dms
gh attestation verify ablago-bestandteile.spdx.json -R motom001/dms
gh attestation verify ablago-bestandteile.cdx.json -R motom001/dms
The attestation names the workflow and commit of the release. If a release is made again, the new files get a new attestation.
Independently: load the image by its digest in an isolated test environment, generate a bill of materials yourself and compare it with the attachment – with Trivy or another tool such as Syft:
trivy image --platform linux/arm64 --format spdx-json ghcr.io/motom001/dms@sha256:<digest>
syft ghcr.io/motom001/dms@sha256:<digest> --platform linux/arm64 -o spdx-json
Other tools recognise licences and packages slightly differently; small differences in how licences are written are normal.
Source code¶
- Ablago: the repository motom001/dms; the exact state of a release via the commit in the section Stand.
- Alpine packages: via the link Quelltext in the overview or the column Quelle (pkgs.alpinelinux.org, from there to the sources in aports).
- Node.js: source archive of the version at nodejs.org.
- npm packages: the package's page on npmjs.com, from there to the package's repository.