Export an asset’s inventory
The response carries
X-TrustIvan-SBOM-Digest, the SHA-256 of the body.
Compare it with the file you saved to confirm you hold the bytes that were
recorded:
Scan a bill of materials for vulnerabilities
Use an upload when you have an SBOM and want to know what is wrong with it: a supplier’s product, a build you cannot give TRUSTIVAN access to. In the dashboard, choose New scan → SBOM file. Over the API, the request body is the document itself:?asset_kind=sbom.
- The name is the asset.
namedefaults to what the document says it describes. Upload the next version under the same name and triage and SLA clocks carry over, a package it no longer lists leaves the inventory, and a vulnerability it no longer has is resolved. - Set a schedule to catch new advisories. Software nobody rebuilds still gains vulnerabilities. The newest document is rescanned on the asset’s Scheduled rescans card.
- Matching needs identifiers. A component with no purl cannot be matched. An operating system package is matched only if the document also names the operating system, as most SBOM generators do for a container image. A document that names neither returns no findings, which does not mean the software is clean.
Import a bill of materials
Use an import when you want to add to what a scan of an existing asset found, as inventory. An import finds no vulnerabilities; for that, upload it as above. The request body is the document itself, not a JSON envelope around it:?format=cyclonedx or ?format=spdx; a declared format that disagrees with
the content is refused, and so is a document that declares both.
What an import does to the inventory
- It adds and corrects. It never removes. Components an import wrote are not removed by a later scan, and an import does not remove what a scan found.
- Identity is the Package URL. A component exported and imported again is the same row, not a second one.
- Entries that cannot be stored are dropped and counted, not allowed to fail the whole import.
partial is true whenever anything was refused, and document.drop_reasons
says why. Check it every time: an inventory that is silently incomplete is
worse than one that was refused.
Refusals
Read the provenance
TRUSTIVAN records every document it imported and every document it exported, because a supply-chain review asks both where an inventory came from and who it was given to.asset_id and direction (import or export). Each record
carries the format and spec_version, the content_digest and
content_bytes, the producer, and the component counts. Read one with
GET /api/v1/sbom/documents/{id}.
An import’s bytes are not kept. The SHA-256 is, which answers “is the file you
are holding the one you gave us?” without TRUSTIVAN storing a second copy of a
file you already have. An upload is different: the newest document per asset
is held so the scanner can read it and a schedule can rescan it. It is replaced
by the next upload and deleted with the asset or the organization.
See also
- Find where a package is used: search the inventory an import adds to.
- Export a licence compliance inventory: the licence view of the same components.
- Supply chain security: the SBOM and provenance of TRUSTIVAN’s own images.