Skip to content

security: Supply chain: provenance for all release binaries, bump go-jose to 4.1.6, pin project.yml #1641

Closed

Description

@huang195

Problem

Three supply-chain gaps:

  1. Provenance. release-binaries.yaml attests only the cortex-cpex tarballs (#L363). The default cortex and agentop tarballs have checksums but no provenance. gh attestation verify fails for them.
  2. go-jose. github.com/go-jose/go-jose/v4 is v4.1.5 (indirect) in core, cmd/cortex, cmd/cortex-envoy, cmd/cortex-praxis, cmd/agentop and scripts/readme-demo. Advisory GHSA-mgcc-cww5-fp2q is fixed in v4.1.6. We did not check if Cortex can reach the affected code.
  3. project.yml. project.yml runs on pull_request_target, uses secrets: inherit, and calls rossoctl/.github/.github/workflows/add-to-project.yml@main. The workflow does not check out PR code. But a push to rossoctl/.github main runs with this repo's secrets. The @main pin is intentional (see the comment in the file).

Suggested fix

  1. Add the plain tarballs to the existing attest-build-provenance step.
  2. Bump go-jose to v4.1.6, then run go mod tidy in each module.
  3. Pin add-to-project.yml to a commit SHA, or give it only the secret it uses. This is a decision because it stops the automatic updates.
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

    dependenciesgithub_actions

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions