aup-learning-cloud icon indicating copy to clipboard operation
aup-learning-cloud copied to clipboard

Add integrity verification for installer downloads

Open kerwtsai-amd opened this issue 8 months ago • 1 comments

Summary

auplc-installer downloads binaries/scripts (k3s, helm, k9s, manifests) and executes/uses them without checksum or signature verification. It also uses pipe-to-shell installation in one path.

Why this matters

This increases supply-chain risk: tampered or corrupted downloads could be executed with elevated privileges.

Current behavior

  • Remote binaries/scripts are fetched and immediately used.
  • No hash/signature verification step is enforced.
  • Includes curl ... | sh style install path.

Expected behavior

Downloaded artifacts should be cryptographically verified before execution/use.

Proposed fix

  • Pin and verify checksums/signatures for downloaded artifacts.
  • Avoid pipe-to-shell where possible; download then verify then execute.
  • Fail fast on verification mismatch.
  • Document the trust model for online/offline installation paths.

Acceptance criteria

  • Installer verifies integrity for all critical downloads.
  • Verification failures stop installation with clear error messages.
  • Docs describe verification behavior and update process for pinned versions.

kerwtsai-amd avatar Apr 01 '26 17:04 kerwtsai-amd

A fix is now open in PR #63.\n\nThis hardens the installer download paths by verifying downloaded artifacts before use for Helm, k9s, the K3s installer script, and the ROCm device plugin manifest. The PR also adds a focused verification script for these integrity checks.

MioYuuIH avatar Apr 10 '26 05:04 MioYuuIH