Skip to content

Consider pinning Docker base images to SHA256 for reproducibility #137

@adnaan

Description

@adnaan

Context

This follow-up task was identified during the review of PR #132.

Source PR: #132
PR Title: feat: add Docker support with multi-stage build
Suggested by: @claude[bot]

Task Description

For enhanced reproducibility and security, consider pinning base images to specific SHA256 digests rather than tags.

Example:

FROM node:20-alpine@sha256:abc123... AS client-builder
FROM golang:1.25-alpine@sha256:def456... AS go-builder
FROM alpine:3.21@sha256:ghi789...

Trade-offs

Pros:

  • Guaranteed reproducible builds
  • Protection against supply chain attacks
  • Immutable base images

Cons:

  • Manual updates required for security patches
  • More maintenance overhead

This issue was automatically created from PR review comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4-backlogBacklog: future, nice-to-havefollow-upFollow-up task from PR reviewfrom-reviewIssue originated from PR review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions