Skip to content

repro_hermetic_build misses language package installers (go install, cargo install, etc.) #430

Description

@Jaydeep869

Description

repro_hermetic_build checks build files and Dockerfiles for non-hermetic network download commands, but its pattern list only covers pip, npm, yarn, apt-get, brew, curl, and wget. It misses other major language package managers such as Go, Cargo, and Ruby. This supplements the hermeticity roadmap discussed in #227.

What We Did

  1. Audited a Dockerfile containing:
    RUN go install github.com/gittuf/gittuf@v0.7.0
  2. Ran darnit audit . --framework reproducibility --show-all.

What It Was Supposed To Do

The handler should detect that go install downloads packages from the public internet during the container build step and flag a suspicious pattern violation.

What We Got

The check reported 0 violations found and marked the build file as clean:

"No suspicious patterns found in 1 scanned file(s)"

Proposed Fix

Add common language package manager install commands to _SUSPICIOUS_PATTERNS in handlers.py:

  • go install , go get
  • cargo install , cargo binstall
  • gem install
  • pipx install
  • pnpm add , pnpm install

Reference report: https://github.com/Jaydeep869/darnit/blob/reproducibility-evaluation/reports/README.md#issue-3-hermeticity-gap-repro_hermetic_build-misses-language-native-package-managers-go-install-cargo-install

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