Skip to content

build: pin image deps and base by digest #629

Closed

Description

@uniqueg

Problem

Follow-up of #556, which removed pip from the final image. The builder stage of docker/Dockerfile still installs FOCA's dependencies without pins (pip install .), and the base is python:$PY_IMAGE by tag. Every app inherits this image, so builds aren't reproducible, and a moved tag or new dependency release silently changes all apps.

Proposal

  • A hashed constraints file per supported Python version (uv pip compile --generate-hashes), used by the builder stage with --require-hashes. CI fails when it is out of date with pyproject.toml, and Dependabot or a CI job keeps it current.
  • Base images pinned by digest; the Dependabot docker ecosystem updates them.
  • Publish the constraints as release assets, so apps can reuse them for their own layer. If that needs new workflow permissions, leave it out and keep them in the repo.
  • SBOM: already published; verify only.

Acceptance criteria

  • The image builds from the hashed constraints; CI fails if they are stale.
  • Base images referenced by digest, covered by Dependabot.
  • Docs: contributing (updating constraints) and deployment (reusing them).

Activity

  1. added this to the v0.21.0 milestone on Nov 3, 2026
  2. added
    priority: medium
    status: triage
    type: security
    workload: hours
    status: in progress
    on Nov 3, 2026
  3. removed
    status: in progress
    on Nov 4, 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: mediumstatus: triagetype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions