security

Inventory dependencies in a separately built batch job

Capture the batch job's build inputs and deployed image separately from the web service, then verify which dependency versions the scheduler runs.

TrustIvan · · 5 min read

A web application and settlement batch job share one repository, but each builds from a different container target. The web SBOM is attached to the release; the batch job that ships weekly has no inventory for its own image. In this fictional example, collect the batch evidence at the point it becomes a distinct deliverable.

Identify the independently shipped job

ScopeSubjectInventory needed
Web deploymentImage digest WExisting web SBOM
Settlement batchImage digest BBatch artifact SBOM
Worker schedulerApproved weekly jobConfigured and observed digest B

Start with the scheduler's configured output and verify which produced artifact the job actually used. Follow the batch build definition, dependency inputs and final packaging target. A repository-level inventory can answer common source questions while missing what one of several built outputs actually contains.

Identify the bill of materials and its subject

Name the output the document describes and the stage where it was collected. A repository inventory, a builder inventory and a final output can each contain a valid observation about the same package. Establish where the question belongs before using names or totals to compare documents. Write down how the package was identified, including the ecosystem and resolved version where available. Preserve relationships and collector limitations. A line in a lockfile proves resolution in that file, and an artifact inspection establishes something different about shipped contents.

Match the artifact's digest to the job image pipeline and record its package resolution, operating-system packages and build target. Compare these inputs with the API image to see which packages each path owns. Carry the job schedule and environment alongside any affected version in the inventory.

If the batch job triggers rarely, verify the active image reference and the result of an approved verification run after updating it. During scanner selection, test two independent jobs built from one repository, ideally with distinct package versions. The OCI manifest specification provides the artifact model for this association.

In an approved fixture, give the batch image one dependency absent from the web image and remove a web-only component from the batch target. Generate or collect composition evidence on both immutable subjects. Confirm the expected difference and record any unknown component result separately for further inspection.

Check what collection sees in each output

Make the two fixture SBOMs from the precise web and worker output identities. Use the distinct dependency to verify that the batch collector follows the batch target's assembly path. If both reports show identical components, inspect whether the publication step attached the web report twice or whether the collector lacks coverage for the batch-only package path. Give the scheduler owner the image and interface where they can verify which one ran at the next job. Save the observation time because a weekly schedule can delay confirmation beyond the release date.

Check the batch job's supported recovery or replay image. A separately maintained artifact can have a different supported dependency set and scope. Give it its own inventory evidence if it can execute in production. Record the next expected job run to verify which candidate the scheduler resolves.

Ask the batch build team to repeat the check using the ordinary workflow. Provide the known evidence in the worker release evidence packet and request the exact record the reviewer would attach to their decision. A timestamp and stable identifier should carry over to the reviewed result. Capture agreement directly and log any change to that result as a new observation. Do the comparison before broadening the check to another service or project where collection and responsibilities may differ.

Attach the worker inventory to its rollout

Keep enough evidence for a release reviewer to recover the exact document they used and the packaging claim it supports. Cite the output identity, collector scope, relevant components and relationship, and owner of the result. Give unresolved component identity a named follow-up linked to the affected output. A reviewer needs to see where the report ends and the build team's inspection begins. If a release proceeds with an open coverage question, retain the approved disposition and the next observation due before someone relies on the same assumption again.

Route findings through the batch owner's normal release flow with the relevant artifact and package evidence. Keep the web evidence attached to the web scope. The portfolio report can group shared dependencies while still pointing to the output that requires remediation.

Allow the fixture to remain incomplete for one review cycle. Show the open item in the normal queue with its scope, known evidence and scheduled next action. Give it to an alternate operator to confirm they can pick up the work where it stopped.

During acceptance, pause between the observation and decision. Ask the receiving reviewer which item they would leave open and what evidence would allow it to move. Record the action alongside the owner's acknowledgment so the next scan can surface the same commitment.

The next scheduler migration should carry the subject and inventory references forward. Verify a regular job and an approved replay against the evidence once the execution system changes.