A transport software supplier prepares a route-optimisation release for a fleet operator. The code passes tests, but the deployable package is assembled and copied through a separate partner-managed pipeline. If the artefact changes between testing and production, the operator may receive a build that no reviewer approved. A chain-of-custody checklist must therefore connect source revision, build environment, release artefact, delivery channel and deployed version rather than relying on a successful test badge.
Define the exact release unit
Start by naming what is being shipped. A release may contain a container image, mobile application bundle, routing rules, machine-learning model, database migration and API schema. Each component can change behaviour without changing the others. A signed application binary does not prove that a remotely loaded route-configuration file is the one reviewed. List the deployable items, their immutable identifiers and the environments where they will run.
Ask the fleet owner to identify the business-critical effects: changed delivery sequences, altered driver instructions, geofence rules, depot allocations and data transmitted to third-party mapping services. The acceptance plan should cover integrity of the release and operational correctness of these outcomes. If a route change affects safety-sensitive vehicle activity, engineering and operations approvals are needed as well as application security checks.
Use a test environment with synthetic consignments and routes. Do not deploy experimental artefacts to live driver devices or production dispatch systems during the rehearsal. Record who can approve a release and who can initiate deployment; these should be distinguishable responsibilities even where a small team needs controlled emergency arrangements.
Establish source-to-build traceability
Capture the source repository URL, commit identifier, protected branch or tag, change request and code-review approvals. Verify that branch restrictions are enforced by the hosting platform and that an administrator cannot silently bypass them without an attributable audit event. A tag name by itself may be mutable; the immutable commit or source archive hash is the stronger record. Include submodules, generated code and configuration repositories that materially influence the package.
Identify the build definition and authorised builder. If a third-party pipeline is involved, the transport company should understand which controls the partner owns: runner isolation, secret management, dependency retrieval and generation of attestations. A vendor statement that “the image is signed” is not enough to answer whether it came from the approved source revision. The signer’s identity and trust conditions must be linked to the intended build process.
Where the platform supports software supply-chain attestations, capture provenance describing the builder, inputs and resulting artefact digest. Compare it to an independently approved release expectation. Provenance is useful only when someone verifies it; a JSON file stored beside an image is not a control if deployment scripts ignore it.
Freeze an immutable artefact for testing
Build the package once, compute its cryptographic digest and use that exact digest for security testing, integration testing and deployment approval. Avoid a release process that rebuilds from the same tag after testing and assumes the new output is identical. Reproducible builds may reduce this uncertainty, but the system still needs to identify the actual bytes deployed. A digest proves identity of a particular artefact; it does not prove the code is safe or that the build environment was trustworthy.
For a container image, prefer deployment by immutable digest rather than a floating tag such as latest. For a firmware or mobile bundle, record the signing identity and package hash. For route rules distributed as data, use an approved manifest or signature mechanism that can tie the rule set to the release. Include any scripts that will modify production schema or permissions after deployment, because they may materially affect behaviour.
Store test results with the artefact identifier. A vulnerability scan for digest A must not be represented as a scan of digest B even when both images carry the same marketing version number.
Evaluate the handoff through the supplier boundary
Map every copy operation between build output and deployed environment. Is the package uploaded to a partner registry, mirrored into the operator’s repository, downloaded through a ticket attachment or pulled directly into production? For each hop, identify transport protection, write permissions, identity logging, retention and allowed destination. A trusted internal package may be replaced at a weak intermediary even if source control was well protected.
Require the receiving organisation to verify the digest and, where used, signature or provenance before acceptance. Do not trust a checksum sent in the same unprotected message as the file when an attacker could replace both. Compare against an independently approved manifest or trusted attestation. If the partner uses a shared service account to publish images, identify who can authenticate as that account and what audit record exists for each publish.
Test a failed verification on purpose using a harmless altered fixture. The pipeline should stop deployment and record an informative failure rather than silently fall back to an unverified package. A manual override, if allowed for emergencies, should require explicit authority and leave evidence.
Inspect dependency and build-service risks
Look at the dependencies resolved during the approved build. Direct libraries, transitive packages, base images, plugins and build actions can change without source code changes if versions are unpinned. Record dependency lockfiles or equivalent resolution metadata and any software bill of materials generated for the artefact. An SBOM helps inventory components; it does not replace a vulnerability assessment or prove that the published artefact originated in the expected environment.
Review build runner privileges and network access. Does the pipeline hold a standing production deployment key? Can a pull request from an untrusted fork access signing credentials? Does an external build action run with write permissions to the release registry? The appropriate design limits secrets and deployment rights to trusted, reviewed release contexts. The build definition itself should be versioned, reviewed and tied to the release evidence.
When third-party hosted build environments are used, obtain the vendor’s assurance description and an incident contact. The operator should know whether a compromised vendor account could publish to the production registry and what response would be needed to revoke that trust.
Test release promotion using two representative cases
Case A is the expected approved promotion: a reviewed source commit produces artefact digest A, tests reference A, approvals name A, the destination verifies A and production inventory records A after deployment. The fleet test confirms an approved route adjustment on synthetic consignments and no unexpected changes to other depots. Capture evidence from each boundary, including the deployment log and running workload identity.
Case B is a tampered handoff: the test harness supplies artefact digest B under the same version label, or substitutes a rule package not listed in the signed manifest. The deployment gate should reject it. A dashboard error alone may not prove the gate works; check whether the package was refused before execution, whether the rejection was logged and whether the original approved artefact remains available for rollback.
A third optional case covers an authorised emergency patch. The team should have a documented fast path with explicit approvals, scoped testing and preserved provenance. Emergency status should not mean unlogged manual copying into a production server.
Treat configuration and migrations as first-class release material
Transport software often draws routing behaviour from feature flags, geospatial data, carrier contracts and optimiser parameters rather than code alone. If a configuration file can alter depot selection or delivery order, it belongs in the integrity and approval scope. Record who changed it, when it became effective, which fleet groups received it and how it can be reverted. A fully signed application deployed with unauthorised parameters is not an acceptable result.
Database migrations warrant similar discipline. A schema change may drop fields used to reconcile shipments or expose additional API attributes. Test backward compatibility and restore paths using a representative synthetic dataset. A successful rollback of the application image does not necessarily undo a destructive database migration. The release owner should know which changes are reversible, which require forward recovery and what evidence operations will use to validate shipment state afterward.
Include the release’s interactions with driver mobile devices. Some devices may remain offline and receive an older package later. Define whether those updates are still trusted and what happens when a signature is revoked or an urgent defect requires withdrawal.
Build the chain-of-custody register
The release record should include: business change ID; source commit; reviewer and approval time; build-job identity; builder and provenance reference; artefact and rule-set digest; signing identity; test report IDs; destination registry; deployment approver; running version; and rollback reference. Link the evidence to controlled systems rather than pasting secret-bearing logs into a spreadsheet. Use stable identifiers that an independent reviewer can reconcile.
For every item record an owner and a disposition: verified, failed, not applicable or not demonstrated. A partner-provided certificate with no matching build or artefact identifier is not independently verifiable release evidence. Likewise, an approved change ticket without a recorded production digest is a process assertion, not proof of what was deployed.
Require that the evidence can be reconstructed after a vendor relationship ends. The transport operator should retain enough approval and verification metadata to investigate a problematic release without depending entirely on a supplier’s transient pipeline logs.
Decide release readiness and rollback boundaries
A release should not be promoted if its source cannot be tied to its build output, the package at deployment differs from the package tested, a signature check fails or a privileged handoff lacks adequate attribution. Where provenance tooling is unavailable, document compensating controls and their limitations; do not label a manual checksum comparison as equivalent to a trusted build attestation.
Operational acceptance also matters. Verify that dispatchers can reconcile planned routes with delivered events, no unauthorised depot or customer records are changed, and customer notifications are generated correctly. Set specific rollback triggers for unexpected route changes, missing shipment events and integrity-gate failures. If rollback would affect active deliveries, involve operations in the timing decision before release.
Retest after switching CI providers, registries, software vendors or fleet integration partners. The chain of custody is strongest when the exact artefact running in production can be traced through independently verifiable evidence to its approved source and build—not merely when every team has ticked its portion of a change form.
Sources and further reading
How Next Defence can help
A scoped review should cover tracing one transport release from approved source to the exact deployed artefact. Record build identity, package digest, promotion approval and rollback evidence; an owner should accept both the permitted and blocked outcomes. Next Defence can help design the exercise through Application Security & DevSecOps, subject to the relevant operational approvals.