engineering
Write a base image remediation ticket an owner can use
Give base-image maintainers the affected artifact, package evidence and expected rollout verification so the fix can move through dependent services.
TrustIvan · · 10 min read
A scanner flags an operating-system library in the Dispatch API container. The security ticket says “update the base image” and goes to the team that maintains the common image. That team publishes a corrected parent the next morning. Dispatch still runs the affected package because its build is pinned to the previous digest, and its recovery job pulls an independently configured image. Closing the parent ticket was appropriate. Closing the downstream finding at the same time would have lost both deployment decisions.
Give the base-image owner a specific upstream artifact to evaluate and give each downstream owner a measurable handoff. The closure record should connect the affected package to the old runtime, then follow the corrected parent through the new build, a comparable scan and rollout verification. Start with the scope you can actually prove.
Confirm where the package came from
Record the original finding ID, package name and observed version, the scanned image digest, the platform and the scanner or advisory source. Check whether the scanner identifies a package-manager record in the final image or only reports a file, language package or vulnerable component inferred from build input. Those are different clues. A base rebuild is productive when the package came from the parent or the parent's supported updates are required for the fix.
Trace the application image through its approved build definition and build records. Some builds have a compiler image, a distinct runtime image and dependency files copied between stages. The presence of a package in a build stage does not automatically place it in the shipped runtime. Likewise a library copied out of a stage may be present without a final-stage package entry. Compare source image inventory, build provenance and the runtime inventory where those are available. If the evidence shows the application layer installs the package after the parent image is selected, the application build may need the change.
Verify the vendor's guidance for the actual operating-system release and package. Distribution versions can include revisions or backported changes, so a comparison against a generic upstream version can be misleading. Preserve the advisory reference or documented uncertainty. If the version appears to be fixed and the scanner still reports it, give the security reviewer the exact package and distribution evidence to adjudicate. A new build by itself cannot resolve a disagreement between detectors.
Write the ticket from the build owner's perspective
The base-image maintainer needs a contract that identifies the affected image and the reason the work belongs to them. Name the image repository and build definition, the required platform, the vulnerable component and the evidence that links it to their parent. Include the consumer deployment that will exercise one representative rebuild. State what their work must produce, such as a replacement parent published to an approved registry, a reviewable build reference and platform-specific package evidence.
Keep the scope limited to the actual finding. If a common baseline has AMD64 and ARM64 variants but only one was observed in an affected runtime, document which platform evidence exists and which still needs checking. The common image owner may patch both as one release. The downstream ticket still needs to show which variants were built and deployed for that service. Relevant build attestation or provenance can make the resolved inputs discoverable. A tag update with no immutable build record leaves a reviewer guessing which version a dependent service consumed. Docker image build best practices
Use the ticket description for observations and ownership. Avoid a large raw scan dump where someone has to find the one package independently. Attach a stable artifact reference, quote only the approved evidence needed to make the decision and keep the original scanner revision beside the observation. Route exceptions and timeline risks through the designated owner.
Follow a synthetic Dispatch release
In the fixture, a scanner reports a fictional library called example-tls-runtime at package revision 4.1-2 in the AMD64 Dispatch API image. The original API artifact is A11. Its build provenance resolves the runtime parent to B07. An authorized package inventory from B07 reports the same revision. A second handler in the same repository runs on ARM64 and the scheduled recovery job has its own deployment reference.
| Handoff | Fixture reference | Owner | Acceptance evidence |
|---|---|---|---|
| Establish affected state | Dispatch AMD64 A11 from parent B07 | Security triage and Dispatch owners | Comparable scanner report and package inventory establish the affected revision |
| Publish corrected parent | Parent B12 for the scoped platform | Base image maintainers | Approved package revision, immutable registry artifact and build record |
| Rebuild application | Dispatch AMD64 A14 from parent B12 | Dispatch build owner | New build input proof, package inventory and comparable rescan |
| Verify application rollout | Dispatch deployment using A14 | Dispatch release owner | Running replicas, intended platform and response health after promotion |
| Verify job and alternate platform | Separately tracked run and artifact | Owners of each workload | Matching scan and runtime evidence, or a documented approved exclusion |
At 11:00 UTC, the base image lands in the approved registry and the maintainer records B12 and its fixed package evidence. At 13:00, the application team's first build still resolves B07 because it inherits a centrally stored build argument. That build has increased in version number but still produces affected evidence. The ticket stays open. The team updates the approved input definition, obtains the new application artifact A14 and attaches the manifest, input record and rescan result for the same scanner and scope.
The application deployment then shows A14 on five of six expected replicas during the rollout. A status update records the one pending replacement. The release owner confirms A14 on all six and checks an approved Dispatch request. The scheduled recovery job still references A11 in its separate template, so verification for that workload remains pending. Give it an accountable owner and an agreed run or staging test instead of expanding the success statement to all Dispatch consumers.
Assign acceptance criteria at each boundary
The parent ticket can describe what the owning team can finish, while the downstream issue retains rollout accountability. Link them in the tracking system and use criteria that a second reviewer can check.
- The base-image owner publishes the approved replacement, records the scoped platform and verifies the relevant package or component.
- The application build owner proves the new build used that replacement on the expected platform. A registry tag timestamp is insufficient evidence for a pinned or cached input.
- The security reviewer examines a comparable scan of the final artifact and confirms the observation applies to the same component and intended coverage.
- The release owner reconciles all in-scope runtime consumers and attaches the expected verification time. Old artifacts in staged deployments or scheduled jobs stay visible by owner and status.
These criteria let the upstream team close its own task when its work is published. They keep downstream progress clear for the owner who must act next. When a dependent team plans an exception, record the affected environment, expected expiration and approval reference. Do not substitute the parent team's completion date for evidence that the downstream risk ended.
Check source, platform and comparability
A build can declare the corrected image in source control while its pipeline uses a different build context, pinned platform or cached remote input. Review the resolved parent from the build that produced the promoted digest. If a platform index contains different child manifests, record the association from the index to the child selected by each workload. For a Linux AMD64 scan, keep the matching AMD64 deployed artifact observation. An ARM64 rollout deserves its own evidence where that platform is in scope.
Keep the scanner input, package collection and observation window comparable. If the original scan covered operating-system dependencies and the new scan checks only application packages, disappearing findings leave a coverage gap. If scanner databases have changed, retain the revisions and inspect relevant package and advisory evidence to explain differences. The ticket should show whether the detector can still observe the same type of component in the new artifact.
A staging test can use one affected service and one authorized machine-readable build record to prove the linkage. Compare the old and new inputs, the matching policy evidence and the runtime digest at the intended exposure point. Then exercise a supported workflow, since an image can pass the package check while missing a runtime dependency required by the service. Keep the operation stable and record the observed success or failure with the new digest.
Reconcile the shared-image inventory
Ask the platform owner for the list of pipelines that actually resolved the affected parent during the agreed observation window. Compare it with repository declarations and deployment inventory. A repository can declare B07 while its production release already moved to B12 through another branch. A pipeline can also inherit B07 without a direct reference in the application repository. For each discrepancy retain the source and observation time, then assign the team able to confirm the resolved build input.
Use this reconciliation to choose which consumers receive a remediation task. The fixture's scheduled recovery job belongs on the list because its launcher still points to A11. A test fixture archived before the affected release might legitimately be excluded with an owner and date. Review the population again before reporting the program's coverage, especially if new workloads entered scope while the updated base image was being published.
Make blocked work visible and recoverable
If a supported fixed parent does not yet exist, keep the evidence current and route the decision to the security and service owners. The next action might be a vendor request, an approved temporary mitigation or an alternate supported base. Document who owns the timing, what deployment remains affected and how to revisit the decision if a replacement appears. A scan that no longer reports the component after changing policy still needs an explanation before it can change the disposition.
If a replacement breaks compatibility, retain the artifact and test record and identify the failing service condition. Track the approved recovery decision and recheck deployed digests after rollback. Restoring A11 in the fixture restores the previously documented affected artifact, which puts its verified remediation back in question. Record the time and affected workloads before assigning the next fix. A rollback plan that only describes restarting services leaves this decision ambiguous.
A downstream maintenance window can delay rollout even after the fixed binary exists. Set separate dates for parent publication, downstream build and verification. Add the consumer whose operation waits on each activity and specify the evidence they will produce. If one alternate platform is blocked by the build queue, the other platform can still have a verified result. Keep both observations scoped so dashboards and stakeholders can describe what actually changed.
Review the ticket as the next engineer
Open the ticket after the fixture's rollout without relying on conversation history. Identify the affected package, original runtime digest, corrected parent, downstream artifact and time of the deployment check. Find the owner of any unresolved consumer. If any of those facts require a private message to the author, put the durable record or an authorized reference in the ticket.
Test the same workflow during a vendor evaluation. Give each product the common parent, one passing consumer, one pending job and one excluded platform, all with synthetic references. Ask two reviewers independently to recover the work owners, the complete scan-to-runtime proof and the next action if the service rolls back. Observe whether rescan refreshes preserve the affected artifact and exception scope. That exercise shows which parts of a particular team's handoff are reproducible from the records. Container image digest verification guide