Skip to content

ci: check chart before signing anything #353

Closed

Description

@uniqueg

The release workflow's publish job downloads the chart artifact and attests and signs whatever matches dist/*.tgz. Any job of the run can overwrite artifacts with the run's token, so publish must check that the artifact is exactly the chart that prepare packaged before anything is attested, signed or released.

Port elixir-cloud-aai/cloud-registry#295 (PR elixir-cloud-aai/cloud-registry#296):

  • prepare outputs the chart's file name and SHA-256 (chart_file, chart_sha256);
  • publish downloads the chart first and checks it (expected name and checksum formats, exactly one file in dist/, hidden files included via shopt -s nullglob dotglob, sha256sum --check --strict) before the image or the chart is attested or signed;
  • the chart is attested and signed by its exact file name, not by dist/*.tgz; the upload keeps overwrite: true so that full re-runs work;
  • tests in tests/test_workflows.py pin the outputs, overwrite: true, the exact attest/sign subjects and the step order, and run the check script for good, wrong hash, extra file, hidden file, renamed, empty and bad outputs;
  • the workflow header comment and docs/development.md describe the check.

Activity

  1. added
    priority: high
    status: in progress
    type: ci / cd
    type: security
    workload: hours
    on Oct 31, 2026
  2. removed
    status: in progress
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: ci / cdtype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions