Skip to content

Key tested-image cache by sealed release identity #222

Description

@alexeygrigorev

Problem\nThe container job caches release-image.tar under only the source SHA. Schema-2 release identities also include a run-time version and constructed_at. A later manual promotion of the same SHA can restore an image labeled with an earlier identity and fail provenance, even though the image was valid for the original run.\n\nObserved on 2026-08-24 for SHA 522c47d: push run 32680937557 passed container verification with version 20260824-014815-522c47d; manual run 32682462766 restored that cache entry but expected 20260824-021544-522c47d and failed before publish/deploy.\n\n## Scope\n- Include the sealed schema-2 identity in the tested-image cache key so a cache hit can only restore an image built with the same release labels.\n- Add or adjust workflow contract tests for the cache key.\n- No Dockerfile, application runtime, deployment, or AWS changes.\n\n## Acceptance\n- A cache hit is valid only for the exact sealed source SHA, version, and constructed_at identity.\n- Existing automatic rerun reuse remains possible for the same sealed identity.\n- Manual reuse_existing_image=false builds a fresh image when its identity differs.\n- Focused CI tests and the normal CI quality gates pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Must-have or release-blockingoperationsArea: operations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions