• v1.9 6e41f09c6e

    verify(P43): code review — 1 P0 auto-fixed, 1 P1 auto-fixed, 3 P1 flagged
    acdl-ci / Lint (push) Successful in 6s
    acdl-ci / Test (push) Successful in 26s
    acdl-ci / Platform check-only (offline) (push) Successful in 9s

    cloudinit-bot released this 2026-07-23 11:54:58 +00:00 | 466 commits to main since this release

    ---ci---
    phase: 43
    milestone: v1.9
    status: verify
    lessons:

    • P0 fix: run_platform.sh HITL gate passed approver via string interpolation into Python (GITHUB_ACTOR injection vector) — fixed by passing env vars (ACDL_HITL_*) read via os.environ
    • P1 fix: attestation_matrix._is_fresh accepted future-dated artifacts (negative age bypassed freshness) — fixed with negative-age guard + test
    • P1 flagged: WizClient._post does not check GraphQL errors (silent empty-list mask)
    • P1 flagged: WizClient._post no SSRF validation on WIZ_API_URL
    • P1 flagged: contract_resolver._load_env duplicates environment_check.load (can drift)
      ---/ci---

    Multi-persona review of the v1.9 diff (v1.8.0..HEAD). Review pass 2
    (post-complete) caught issues the initial self-review missed:

    P0-INJECT (auto-fixed): scripts/run_platform.sh Step 7b interpolated
    $APPROVER (GITHUB_ACTOR/GITEA_ACTOR) directly into a Python string
    literal — an attacker-controllable username containing shell/python
    metacharacters would execute arbitrary Python. Fixed: approver, contract
    id, and env are now passed as environment variables to the subprocess
    and read via os.environ[...] (no string interpolation).

    P1-FRESHNESS (auto-fixed): core/attestation_matrix.py _is_fresh
    accepted future-dated artifacts (negative age.days <= window_days).
    Fixed: added age.total_seconds() < 0 guard rejecting future timestamps.
    Test added: test_freshness_rejects_future_dated_artifact.

    3 P1 flagged for post-hoc:

    • WizClient._post does not surface GraphQL errors (silent empty mask)
    • WizClient._post no SSRF validation on WIZ_API_URL (operator-supplied, low risk)
    • contract_resolver._load_env duplicates environment_check.load (drift risk)

    REVIEW.md updated with the findings. 494 tests pass; run_ci.sh + run_platform.sh --check-only green.

    Downloads