Skip to content

build: pin image dependencies by hash #365

Closed

Description

@uniqueg

Problem

The image installs its dependencies from the version ranges of pyproject.toml (scripts/image_requirements.py, Dockerfile), without a lock file or hashes. A rebuild of the same commit or tag can therefore install other versions than the image that was scanned and smoke-tested. Pre-existing since v0.3.0; found by the pre-release review of 0.4.0, deferred (not needed for 0.4.0).

Proposed fix

Install the image's dependencies from a hashed constraints/requirements file with pip install --require-hashes, as examples/plugin-image already does for plugins, kept up to date by Dependabot or a CI job, and checked against pyproject.toml by a test.

Acceptance criteria

  • The image build installs only pinned, hash-checked distributions.
  • CI fails if the lock is out of date with pyproject.toml.

Activity

  1. added
    priority: low
    status: triage
    type: security
    workload: hours
    on Oct 31, 2026
  2. added this to the v1.0.0-rc1 milestone on Nov 1, 2026
  3. added
    status: in progress
    and removed
    status: triage
    on Nov 2, 2026
  4. modified the milestones: v1.0.0-rc1, v0.5.0 on Nov 3, 2026
  5. removed
    status: in progress
    on Nov 3, 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: lowtype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions