|
| 1 | +# Targets and operational assurance |
| 2 | + |
| 3 | +Bomly accepts local projects, Git repositories, container images, and existing |
| 4 | +SBOMs. The public evidence uses the same engine paths as the CLI and states |
| 5 | +where the input itself is not immutable. |
| 6 | + |
| 7 | +## Target cases |
| 8 | + |
| 9 | +| Target | Public case | What is checked | |
| 10 | +| --- | --- | --- | |
| 11 | +| Local project | `baseline-policy` | A public Git fixture is materialized locally, then scanned and audited through `--path` | |
| 12 | +| Git repository | `graph-npm`, `graph-go`, and the other graph cases | The CLI clones a recorded commit and runs the selected detector | |
| 13 | +| Container image | `container-inventory` | Built-in inventory reads packages from the checked Alpine image | |
| 14 | +| SPDX SBOM | `sbom-spdx-ingest` | The checked SPDX 2.3 graph is ingested through the SBOM detector | |
| 15 | +| CycloneDX SBOM | `sbom-cyclonedx-ingest` | The checked CycloneDX 1.6 graph is ingested through the SBOM detector | |
| 16 | + |
| 17 | +Inspect or reproduce one: |
| 18 | + |
| 19 | +```sh |
| 20 | +make evidence CASE=container-inventory |
| 21 | +make evidence CASE=sbom-spdx-ingest |
| 22 | +``` |
| 23 | + |
| 24 | +The container smoke case currently uses `alpine:3.20`. The tag can move, so |
| 25 | +the checked-in golden is explicitly a snapshot rather than an immutable image |
| 26 | +claim. The Git cases separately record the full commit behind their readable |
| 27 | +tag or ref. |
| 28 | + |
| 29 | +## Example SBOM workflow |
| 30 | + |
| 31 | +A release engineer receives a supplier SBOM and wants to apply the same policy |
| 32 | +used for source scans: |
| 33 | + |
| 34 | +```sh |
| 35 | +bomly scan \ |
| 36 | + --sbom \ |
| 37 | + --path supplier.spdx.json \ |
| 38 | + --enrich \ |
| 39 | + --audit \ |
| 40 | + --fail-on high |
| 41 | +``` |
| 42 | + |
| 43 | +The deterministic ingestion cases check Bomly's internal graph. The manually |
| 44 | +started interoperability workflow adds an external check: |
| 45 | + |
| 46 | +```sh |
| 47 | +gh workflow run sbom-interoperability.yml |
| 48 | +``` |
| 49 | + |
| 50 | +It generates canonical SPDX 2.3 and CycloneDX 1.6 files, verifies the |
| 51 | +downloaded validator checksums, runs the named official validators, and saves |
| 52 | +the generated files plus a `bomly.sbom-assurance-run/v1` report. See |
| 53 | +[`test/assurance/SBOM_INTEROPERABILITY.md`](../../test/assurance/SBOM_INTEROPERABILITY.md) |
| 54 | +for the workflow summary and failure-investigation steps. |
| 55 | + |
| 56 | +The public catalog records the workflow checksum under |
| 57 | +`sbom-interoperability`. Validator versions and download checksums stay in the |
| 58 | +workflow so changing either requires an intentional evidence update. |
| 59 | + |
| 60 | +## Supported-system checks |
| 61 | + |
| 62 | +The `portable-platforms` case starts: |
| 63 | + |
| 64 | +```sh |
| 65 | +gh workflow run portable-assurance.yml |
| 66 | +``` |
| 67 | + |
| 68 | +This workflow: |
| 69 | + |
| 70 | +- runs the Go unit tests twice on Linux, macOS, and Windows; |
| 71 | +- repeats Java-related unit tests ten times; |
| 72 | +- repeats all Go unit tests five more times on Linux; |
| 73 | +- builds full and lightweight binaries for every release target. |
| 74 | + |
| 75 | +It is important to be precise: this is unit-test and build assurance. It does |
| 76 | +not run smoke tests against public repositories, container registries, or |
| 77 | +advisory services. The workflow summary identifies each group and explains |
| 78 | +how to open failed logs. See |
| 79 | +[`test/assurance/BENCHMARK_RUNS.md`](../../test/assurance/BENCHMARK_RUNS.md) |
| 80 | +for the full description. |
| 81 | + |
| 82 | +## Repeatable performance measurements |
| 83 | + |
| 84 | +Run: |
| 85 | + |
| 86 | +```sh |
| 87 | +make benchmark-samples |
| 88 | +``` |
| 89 | + |
| 90 | +The `performance-stability` case uses the checked SPDX fixture and the |
| 91 | +lightweight Bomly binary. It records five isolated cold-cache scans and five |
| 92 | +shared-cache warm scans under `.benchmark-runs/performance`. |
| 93 | + |
| 94 | +The resulting `bomly.benchmark-run/v1` report includes: |
| 95 | + |
| 96 | +- repository and executable revisions and hashes; |
| 97 | +- host and Go runtime details; |
| 98 | +- exact command, working directory, cache mode, and network state; |
| 99 | +- exit status, output size and hashes, timing, and peak memory for every run; |
| 100 | +- median, variation, and an approximate 95% confidence interval. |
| 101 | + |
| 102 | +The stable gates are successful exit status, normalized output consistency, |
| 103 | +and an optional explicit output-size cap. Wall time and memory remain |
| 104 | +machine-specific measurements for review rather than universal limits. |
| 105 | + |
| 106 | +## Example release-confidence workflow |
| 107 | + |
| 108 | +Before a broad release: |
| 109 | + |
| 110 | +1. Run `make test` and the relevant pinned smoke slices. |
| 111 | +2. Run `make benchmark-samples` and compare the report with the previous run |
| 112 | + from a comparable host. |
| 113 | +3. Start the portable workflow and read its Summary page. |
| 114 | +4. If SBOM output changed, start the interoperability workflow and inspect its |
| 115 | + generated artifact hashes and validator results. |
| 116 | +5. Record the repository commit with every retained workflow or benchmark |
| 117 | + report. |
| 118 | + |
| 119 | +## Limits |
| 120 | + |
| 121 | +- Remote services and package registries can be temporarily unavailable. |
| 122 | +- Build-tool-backed graph resolution can vary with tool versions; the catalog |
| 123 | + states required tools and checked source revisions. |
| 124 | +- Local repository scans can contain any number of individually bounded |
| 125 | + files. Per-file parser limits do not create a total project-size limit. |
| 126 | +- Portable Git options bound time and checkout validation but cannot reliably |
| 127 | + cap transfer bytes or `.git` object storage before checkout completes. |
| 128 | +- Workflow artifacts have retention periods. The workflow file, pinned tools, |
| 129 | + reproduction command, and result link remain public after an artifact |
| 130 | + expires, but the raw artifact may need to be regenerated. |
0 commit comments