engineering

Compare scan coverage for amd64 and arm64 images

Check separate Linux image manifests for amd64 and arm64, and verify which platform artifacts were scanned before drawing a release conclusion.

TrustIvan · · 10 min read

The build job publishes one tag for two Linux variants. An amd64 scan succeeds and reports no blocking findings. The scheduler can also start the arm64 variant, whose build used a different base image. A release note that says the tag was scanned invites a wider conclusion than the record supports. The useful question is which deployable manifests the rule actually evaluated.

Build the comparison around the intended platform set, one stable index, one result per required child and the independently observed runtime. Keep missing coverage in the release record. A workflow can legitimately approve one platform while holding the other if the deployment controls actually enforce that restriction.

Set the release scope before you inspect results

Ask the release owner which workloads and environments may pull this release. Record the operating system, architecture and variant fields that matter for each target, plus the control that limits scheduling. An arm64 build for a future region can be outside the release decision only if the actual promotion or workload rules keep that artifact outside the approved environments. Capture where the exclusion is enforced. A line in a ticket gives a reviewer a reason to look for the restriction.

Include scheduled jobs and administrative workers if they use the tag. A node pool that is idle during rollout can still start a job months later. In another deployment, the main service has both architectures but a separate batch worker uses only amd64. Record these as distinct consumer sets. The reviewer then knows whether an observed manifest accounts for all current consumers, just one service, or only the containers that were running during a convenient time window.

Determine who makes the coverage decision. The build owner can show what it published. The scanner operator can show which references it resolved and inspected. The deployment owner can verify which artifacts are eligible or running. A release approver needs the combined evidence. Assign one owner to each missing observation so a temporary unknown does not survive because each team expected another to resolve it.

Keep the index, manifest and configuration identities distinct

An OCI image index contains descriptors that can point to platform-specific manifests. Each image manifest identifies configuration and layer descriptors. A registry tag can name an index, while a scanner result or runtime record can describe a child manifest or another object. These identifiers answer different questions. Keep the index and the child digest in the release record. Note the kind of digest each tool returns before asking whether two observed values match. OCI image index specification, OCI image manifest specification.

Resolve the candidate tag to a digest once at the approved registry. Use that immutable index when obtaining its descriptors and the scan inputs. If the tag changes later, note that as a new candidate. A result for the earlier index cannot establish which architecture was inspected from the later one even if both carry the same release name. For build systems with one runner per architecture, capture the child digest each runner generated and reconcile those values with the published index.

Review descriptors carefully. An index can also include attestations or other entries that are not runnable platforms. Separate these from expected runtime descriptors using their media types and documented purpose. Look up the real selection behavior when descriptors lack enough platform information or more than one matches an intended platform. Configuration can also disambiguate the operating system and architecture. An ambiguous selection is a source question for the build owner. Docker multi-platform build guidance.

Compare evidence with a two-platform fixture

Use a private test registry and inert package metadata. Build two Linux images under test revision R17. The amd64 build contains sample decoder 5.2. The arm64 build contains decoder 5.1 through a different base. Use fictional policies and identifiers so a test result cannot be mistaken for an active finding.

CandidateRecorded artifactScanner evidenceInitial release decision
Index R17Index I17 includes child A17 and child B17Report names R17 and lists only A17 as inspectedPending full scope
Linux amd64Child A17 contains sample decoder 5.2Direct report confirms inspection and policy passCovered for the recorded policy
Linux arm64Child B17 contains sample decoder 5.1No report identifies B17Unknown until inspection
Replacement Linux arm64Child B18 under a later replacement indexScan confirms B18 and decoder 5.2 after rebuildEligible only after new candidate reconciliation

First run an amd64-only scan and export its underlying record. Confirm it identifies A17. Check how the tool presents the overall result when the index is viewed. The desired release decision is that amd64 has evidence and arm64 is pending. Next run inspection for B17 with the same relevant policy. The synthetic fixture should produce the expected policy failure on its older component. That demonstrates the missing evidence was consequential without requiring a real exploit or security incident.

Build the arm64 replacement and publish the new complete index. A17 can remain identical if nothing changed in that child. Prove this by comparing the observed descriptors rather than assuming it because its source inputs appear stable. Keep the earlier B17 result with its original index and the B18 result with the new scope. Test whether the release tool preserves both histories. A readily auditable record shows which index was proposed when a specific child was inspected.

Check the scanner's coverage and evidence format

Find the source field that states which platform and manifest were actually inspected. Some tools may accept an index and fan out. Others may resolve according to the scanner worker's platform or require separate platform selection. A report heading naming the index cannot establish fan-out by itself. Read the exported per-platform result, raw scan metadata or documented resolver settings. Where evidence identifies only a configuration digest, see whether you can verify its relation to the relevant child manifest before counting it.

Record scan version, collection time, vulnerability data revision where available and the policy version. A difference between reports can result from the platform image contents or from different scan configuration and lookup dates. Compare controlled results from a common window with equivalent relevant data. Note any package manager, filesystem layer or index metadata that the tool does not cover. The coverage decision is explicit about what was inspected and what policy was applied.

Inspect component inventories before equating a difference in finding totals with a difference in safety. An arm64 base can contain fewer packages with one policy-blocking item, while amd64 carries more packages with none that block. Compare by package identity and installed version in the associated child. A count of zero can describe no applicable findings, a successful inspection with no matches, or a scan that never saw the image. The run disposition should distinguish them.

Bind the release rule to the promoted content

Write a verification record containing the index digest, expected platform set, observed children, evidence references and decision. Require every covered platform to have an inspection result that applies to the exact content, authorized policy and sufficiently recent scope. Treat a timed-out scan as unfinished. A pending report can be retried against the same digest after verifying the evidence source. If the digest changes, rerun the relevant comparison for the new candidate.

For a platform-limited approval, demonstrate why the uncovered variant cannot reach the released workloads. In the fixture, promote an amd64-only reference or apply and verify the documented scheduling and admission restriction for the scoped environment. Run a safe dry rehearsal that requests the unapproved variant and confirms the permitted release path excludes it. State what event opens a new review, such as enabling the arm64 pool or introducing a job whose template can resolve the index differently.

If the release process re-tags or copies the image into another registry, observe the candidate at its destination. Record the resulting index and child identity, and explain any registry transformation under your supported workflow. An unchanged name at the destination is not a content equivalence check. When evidence is tied to a build envelope, keep the source observations alongside the promoted result so an auditor can trace the release decision.

Verify what is deployed and what can return in a rollback

Work from actual placement and runtime metadata after promotion. Match each sampled workload to its platform, then record which immutable artifact was observed and the time. Runtime tools can display an artifact or configuration identifier in different forms. Confirm the meaning using the product documentation or inspect the association within the permitted runtime. Keep the observation at the workload granularity the release decision requires.

A newly approved arm64 child can be absent in an environment that has no running arm64 Pods today. Use deployment records or an approved staging replay to show what future eligible scheduling would select. Do the same for the rollback target. Returning to the previous index can reintroduce B17 even if the active amd64 child never changed. The rollback decision should identify each child that would return and give any unresolved platform a separate approval record.

If the rollout is incomplete, keep partial observations visible. For example, three applications have adopted the new index, while one cron worker still references the old one. The release record can state which platform evidence passed and which consumer has yet to deploy. This avoids calling the earlier scan a current failure or a finished rollout when neither conclusion fits the evidence.

Check which exact result gets replayed when a scan is retried

In a staging rehearsal, expire the first report for B17 and submit a requested rescan. While it is queued, move the test tag to the index that contains B18. An integration that stored the tag as its input might scan B18 and attach the result to the older B17 ticket. The expected evidence records whether the original immutable child was retained. If a retry resolves a new child, route it to a new release decision and leave the earlier record pending or superseded with a reason. Compare input and output identities for each retry event, and carry the resolved platform in both records.

Also test a report that arrives after a release stop has been lifted. The later report is evidence of its own inspection time and policy. Record whether the earlier approval intentionally covered a narrower scope. This prevents a delayed successful result from being read as if it had been available when the approver made the earlier decision.

Compare vendors with the same test evidence

Use the same immutable index and child manifests to evaluate platforms, then run a second exercise with a missing report and a changed arm64 child. Ask reviewers to produce the exact inspected set, record the explicit pending state and explain the deploy decision using the product's standard workflow. Test whether they can export readable child-level scan evidence that a second approver can validate. Compare the recurring operational work when one approach relies on independent scans or an external policy service. Review the site’s Snyk comparison and Wiz comparison for related coverage questions.

Retain the expected platform set, immutable references, negative case and verified observation in the pilot record. The container fix verification guide covers how release evidence connects to the runtime. When a single architecture lacks proof, record that gap at its own identifier so the operator can rerun exactly the missing check.