Skip to content

Architecture / Decision records / ADR-HIS-059

ADR-HIS-059 Supply-chain controls: a register under version control, a build gate on the SBOM, a release SBOM archive and read-only ADR references

Status Accepted
Decided 2026-11-25 by session RC-1-S18
Record Drafted 2026-11-25; approved 2026-11-30 by the Enterprise Architecture Board
Where the rule lives platform/supply-chain/ (its README.md; the tool bin/supply-chain and supply_chain/; the registers in register/)

Context

RC-1-S18 builds MOD-ISE-010. Its two requirements in this slice are FR-ISE-SUP-001 and FR-ISE-SUP-003: - FR-ISE-SUP-001: an SBOM for every build, archived for every release, and a dependency register whose entries carry maintenance evidence, approvals and an exit plan. A build that uses an unregistered dependency fails. - FR-ISE-SUP-003: ADR references resolved in the Domain 10 register, and a supported-version policy.

The ISE contract of RC-1-S02 (contracts/ise/README.md) offers no API for them in this slice: "the SBOM and dependency register are pipeline artifacts". FN-S05's pipeline (ADR-HIS-046) already writes a CycloneDX SBOM per folder and image with Trivy (ADR-HIS-014). The card and the specification leave open:

  • what the register is and where it lives;
  • what one entry covers, when a Java unit brings two hundred packages and a web package two hundred more;
  • what the gate admits;
  • how a release's SBOM is archived and searched;
  • where ADR references are resolved;
  • which settings the specification leaves to a person.

Options considered

  • Register as a service with a database, behind a new ISE API. The contract offers none, and adding one is a contract change (session rule 4). It would also need a console before anyone could approve an entry.
  • Register as files under version control in the unit, checked by a tool (chosen). Every change is a reviewed pull request whose history is the audit trail. The pipeline reads the register without a running service. A later slice can serve the same data through an API when UI-ISE-011 needs it.
  • One entry per package (several hundred entries, most of them small transitive packages), or one entry per product, covering its packages by pattern (chosen).
  • ADR references resolved only from the repository's records, or resolved in the Domain 10 register through IF-ESS-014, with the repository as the source where no register runs (chosen).

Decision

  1. The unit is a tool and two registers. platform/supply-chain holds a standard-library Python tool (bin/supply-chain) and its registers in register/ (TOML):
  2. dependencies.toml, the dependency register (DE-ISE-016);
  3. components.toml, the supported-version register (CFG-007);
  4. policy.toml, their settings.

The tool has no third-party dependency, so it adds nothing to the register itself. The pipeline runs the unit as a script folder through its ci.sh. 2. The register is under version control, and a session branch cannot admit. Every change is a pull request, reviewed like any other. Each entry keeps its own approvals and history, with actor and date, and git keeps every earlier state (section 12). A session never writes an approval. The approvers add theirs in a pull request of their own, as Security Engineers do with exceptions (ADR-HIS-046). register guard enforces this on a session/* branch. Compared with the base commit, it refuses: - an added or changed approval; - a status moved into an admitted state; - a new admitted entry; - any change to what an admitted entry covers: name, major, kind, role, packages, licences, origin and ADR references.

The guard fails closed where the base commit can be read. The unit's ci.sh runs it. The pipeline's build job checks out one commit without credentials, so there it reports that it did not check. The pipeline enforces it once the protected-files job, which has the full history, calls it (RC-1-S19). 3. One entry per component, keyed by name and major version (DE-ISE-016). An entry names the packages it covers by package-URL pattern. A pattern without a version takes the entry's major version. @* takes any version, for the packages the component brings with it: its transitive dependencies as locked when it was approved. A new transitive package that no pattern names fails the build with its dependency path, so it is approved before it is used. Maintenance evidence is kept for the component, whose maintainers chose those packages, and the vulnerability scan covers each package on every build. 4. What the gate admits. The states are those of section 11: - Admitted: Approved, Under Review (lapsed evidence being renewed) and Deprecated (replacement in progress). - Fail the build: Proposed and Retired, and a package in no entry. - Licence: a component of a library entry whose SBOM licence is not one the entry was approved with fails as well, since the licence changed upstream. - Coverage mode: --coverage fails only on a package in no entry, so a register still awaiting its approvals can be shown to cover a build. - Operating-system packages: these are approved as one distribution entry under the distribution's archive policy, not one by one. 5. One SBOM per release, archived immutably. archive add merges the SBOMs a release's build wrote into one CycloneDX document: release, then each part, then what the part describes, then its components, so every component keeps its path. It is written to releases/<release>/sbom.cdx.json, the releases API's sbomRef, with the parts unchanged and their SHA-256 digests. A release is never archived twice with different SBOMs. Only its deployments are appended to, from ReleaseDeployed. The component impact query reads every archived release. 6. ADR references resolve in the Domain 10 register. Domain 2 holds only the identifier (DE-ISE-018). The tool resolves it through searchDecisionRecords and readDecisionRecord of IF-ESS-014 when HIS_DECISION_REGISTER_URL is set, and from docs/architecture/decisions/ otherwise (the pipeline, a developer host). - It shows number, title and state, with a link, and calls no operation that changes a record (behaviour 5). - The completeness check of FR-ISE-SUP-003 AC-01 (options, rationale, risks, review date) runs only against the register, which holds those fields as data. 7. Settings the specification leaves to a person are proposals that apply from the start. These are in policy.toml: - the review period of maintenance evidence: 365 days (ASM-ISE-008); - the end-of-life warning period: 180 days; - the licences compatible under the legal policy; - the approved sources; - in components.toml, the supported-until date of each owned service. Section 7 makes the date mandatory, also for a service with no successor yet. Each version line is supported for two years at a time: version 1 of every unit until 2028-11-30. The owning team extends the date by a year at each yearly review while the version is current. When a successor is released, the date is set to at least 12 months after it. The report thus raises Approaching End of Life when a review is missed.

Their owners confirm or change them on the merged work. 8. Every material dependency rests on an Accepted ADR (FR-ISE-SUP-003 behaviour 2, PR-SUP-003-3). An entry's decision names the record that selected or adopted it, for example ADR-HIS-005 for the Spring family or ADR-HIS-006 for PostgreSQL. The register check refuses to admit a material entry without one, or with one that is not Accepted. A Proposed entry without one is flagged. This record is the decision for the networknt JSON Schema Validator. RC-1-S05 adopted it in services/ess-governance to validate configuration against its type's JSON Schema 2020-12 (FR-ESS-CFG-001), and ADR-HIS-052 does not name it. The options were networknt (2020-12 support, Jackson 3, Apache-2.0, chosen) and validating in the contract tooling's Ajv over Node.js (a second runtime in a Java unit). 9. Replacement paths of the runtime dependencies that could impair clinical operations are in ADR-HIS-060, which every such entry references (behaviour 6, AC-03).

Rationale

  • A register in files needs no new contract, no running service and no console to be usable now. It is the same pattern the pipeline already uses for security exceptions, which the review agents and people already read.
  • Per-component entries keep the register to about sixty entries that a person can approve, instead of five hundred. The gate still names each package, and stops any new one.
  • Resolving references in the Domain 10 register follows the reworded FR-ISE-SUP-003 (Domain 2 holds no ADRs of its own). The repository fallback keeps the check usable where the register is not running.

Risks

  • Until the four approvals are given, no entry is admitted. Once the release pipeline (RC-1-S19) turns the gate on, every build stops until then. The approvals are listed under "Needs a person" of RC-1-S18; RC-1-S19 decides when to switch from --coverage to the full gate.
  • Approvals in a file are text no tool can verify. register guard (point 2) stops a session branch from adding any, wherever the base commit is present. In the pull request pipeline that holds only once the protected-files job calls it (RC-1-S19). Until then, the review and the people named under "Needs a person" of RC-1-S18 are the control.
  • The gate does not know whether a package is used at runtime. Trivy's SBOM of a Gradle lockfile or of a pnpm lockfile does not say which configuration a package is in. A package covered by an @* pattern of a build or test entry is therefore admitted, with that entry's evidence, even where it ships. An example is @babel/runtime under the Vite React plugin's @babel/*@*. Each pattern was written from what the component brings. A runtime package of a build entry is a register error, found by review, and fixed by moving the package to a runtime entry.
  • A package that declares no licence in the SBOM is not compared. The licence comparison applies to components whose SBOM states a licence. Trivy finds licences from installed packages and the Gradle cache, so a package it cannot read passes on its entry's approval alone. That includes many @* transitive packages, and every npm package when the scan runs before the install. The entry's licences, which legal approves, are the control. The pipeline runs the scan after the build so that licences are present (ADR-HIS-046).
  • @* patterns accept any version of a transitive package. A major upgrade of the component itself still needs a new entry, and the scan reports every package's vulnerabilities.

Review date

2027-11-25, or when the vulnerability and dependency console (UI-ISE-011) needs the register served by an API.

Consequences

  • RC-1-S19 calls bin/supply-chain gate on the SBOMs of every build and archive add on every release, and records each deployment with archive deployed.
  • RC-3-S10 (FR-ISE-SUP-002) builds the vulnerability register on the archive and its query (PR-SUP-001-3).
  • A session that adds a dependency cannot change this folder (ADR-HIS-039). It writes the entry it proposes under "Needs a person" in its pull request, as it does for a security exception. The approvers then add the entry with their approvals in a pull request of their own. Until then the gate names the package.