clusev/tests/scripts
boban 8a814337ff fix(install): validate release-image digests as ghcr.io/<owner>/<name>@sha256:<64-hex>
Codex R15 flagged that _clusev_ref_ok accepted malformed digest refs (short/non-hex,
which trigger a doomed pull instead of a build fallback) and refs carrying an embedded
newline in ANY segment (force_kv would then split .env, injecting an attacker-chosen key).
Anchor the check to an exact 64-hex sha256 digest and two ghcr.io path segments that each
start alphanumeric and otherwise contain only [A-Za-z0-9._-] — so no newline, "=",
whitespace or slash can appear anywhere in the ref. Malformed or tampered refs now fall
back to a local build and can never reach force_kv. Tests: +6 cases (short, non-hex,
path-traversal, ".." name, newline in digest, newline in owner).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 21:43:45 +02:00
..
promote-guard.test.sh feat(release): string leak-guard in promote.sh + shell test 2026-07-03 19:49:31 +02:00
release-images.test.sh fix(install): validate release-image digests as ghcr.io/<owner>/<name>@sha256:<64-hex> 2026-07-03 21:43:45 +02:00
test-clusev-cli.sh fix: shell-escape the install dir when generating the clusev CLI (R15 Codex) 2026-06-20 13:50:19 +02:00