cernlydocs

Dependencies and SBOM

TL;DR Direct dependencies come from manifests, transitive ones from lockfiles. Each is attached to the services whose build includes its folder. cernly sbom writes that as CycloneDX 1.6, the same bytes for the same scan.

Reading

Attaching

A dependency belongs to a service when the service's build sources include the manifest's folder: the Dockerfile's build context and copied paths, linked through the map. A manifest no build reaches stays on the repo, not on a service. The attach rule is the same for the map, the gate and the SBOM.

The SBOM

Gate rules

new_dependency, new_transitive_dependency and licence_not_allowed read the same facts. The transitive rule is off by default: one direct dependency can bring dozens.

In the code

plugins/deps (manifests and lockfiles), sbom (CycloneDX), rules (attach and licence rules). Command: cernly sbom.