Skip to content

Accept a bundle TRO bound to a certified Core version when the publisher manifest is reachable #784

Backlog

Description

@MaxGhenis

_validate_supplied_bundle_tro refuses a shipped bundle TRO bound to a certified Core version whenever the publisher's data release manifest is reachable. Offline, the same TRO passes.

certify-data --core-version writes a certificate with core_binding: "certified" and certified_for_core_version, and build_trace_tro_from_release_bundle writes both into the shipped TRO. Online, _certify_available_data_release can return an exact-build, matching-fingerprint or legacy certificate, none of which carries Core fields, so the TRO's pe:certifiedForCoreVersion no longer equals the live certificate's None and write_run_record(bundle_tro=...) raises "different certified runtime". Offline, the bundled certificate is used and the check passes.

No bundle on main uses --core-version today, so no shipped TRO hits this yet. #761 fixed the same split for an omitted or bundle_pin binding (check).

Fix: when the live certificate makes no Core claim, accept the TRO's Core binding and version if they equal the bundled certificate's (manifest.certification), since the bundle manifest hash already matched. Add a publisher-path test with a certificate bound to a Core version.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions