GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — security(ci): the KSail archive is still installed unverified on both production deploy paths · Issue #3075 · devantler-tech/platform

security(ci): the KSail archive is still installed unverified on both production deploy paths #3075

New issue
Copy link
New issue
Copy link
Closed
Security
Closed
security(ci): the KSail archive is still installed unverified on both production deploy paths#3075
Security
Copy link

Description

@devantler
devantler
opened on Aug 10, 2026
Issue body actions

🤖 Generated by the Agentic Engineer

Evidence

#2841 fixed the unverified KSail install in ci.yaml's validate job. Sweeping the class rather
than the instance found two more — and both sit on a more privileged path than the one fixed:

Site Path it runs on
.github/actions/deploy-prod/action.yml (~L47–52) the composite action both production deploy paths call (ci.yaml merge_group and cd.yaml)
.github/workflows/dr-rebuild.yaml (~L156–161) disaster-recovery rebuild of the production cluster

Both are the original three lines, unchanged:

curl -fsSL ".../ksail_${KSAIL_VERSION}_linux_amd64.tar.gz" -o /tmp/ksail.tar.gz
tar -xzf /tmp/ksail.tar.gz -C /tmp
sudo install /tmp/ksail /usr/local/bin/ksail

KSAIL_VERSION is pinned in four places (ci.yaml, validate-main.yaml, dr-rebuild.yaml,
deploy-prod/action.yml). Two now verify the download; two do not.

Affected audience and impact

Every production deploy and every DR rebuild. The installed binary is sudo installed and then
driven against the real production cluster holding deploy credentials — so this is the highest-value
of the four sites, and it is one of the two still unverified. A replaced release asset would execute
there.

Expected behaviour

Both sites verify the archive against the release's published ksail_${KSAIL_VERSION}_checksums.txt
before extracting, and fail closed when the verification cannot be performed — identical to the block
now in ci.yaml and validate-main.yaml.

Acceptance criteria

  • deploy-prod/action.yml verifies before tar -xzf.
  • dr-rebuild.yaml verifies before tar -xzf.
  • A missing checksum entry fails the step with an actionable message (grep exits 1 under
    set -euo pipefail, so the lookup needs || true).
  • A mismatch fails and names expected and actual digests.
  • Verified three ways: real archive passes, tampered archive fails, missing entry fails closed.

Consider extracting rather than copy-pasting a fourth time

The same ~25-line block would then exist in four files that must also move together on every Renovate
bump. A setup-ksail composite action (the repo already uses .github/actions/deploy-prod/) would
carry the version pin and the verification once. That is a refactor, so it should not ride inside
the security fix — but it is the reason not to simply paste twice more.

Stated limit (same as #2841): archive and checksum list share an origin, so this detects a
corrupted, truncated or individually substituted asset, not a fully compromised release.

Size

Small — two run: blocks, or one composite action plus four call sites if extraction is chosen first.

Reacted by coderabbitai

Activity

  1. devantler
    added the
    Security
    issue type on Aug 10, 2026
  2. github-project-automation
    added this to 🌊 Project Boardon Aug 10, 2026
  3. coderabbitai commented on Aug 10, 2026

    @coderabbitai
    coderabbitaiBot
    on Aug 10, 2026 – with coderabbitai
    Contributor
    More actions
    🔗 Related PRs

    #2319 - feat(security): cosign-verify the infrastructure Flux OCI artifact [merged]
    #2633 - fix(deploy): verify incoming image on Talos nodes [merged]
    #2767 - fix(ci): unblock pinned Helm dependency updates [merged]
    #2930 - feat(ci): verify published evidence before promoting the prod digest [merged]
    #2947 - fix(ci): refuse to promote a prod digest whose evidence cannot be verified [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  4. devantler
    moved this to 📥 Backlog in 🌊 Project Boardon Aug 10, 2026
  5. devantler
    added a commit that references this issue on Aug 22, 2026

    chore: agent-claim #3075 nonce=f0d8903b4f55110da7567aeb51ded4d6

    d8b41e1
  6. devantler commented on Aug 22, 2026

    @devantler
    devantler
    on Aug 22, 2026
    ContributorAuthor
    More actions

    🤖 Generated by the Agentic Engineer

    Delivered — closing

    Picked this up as the oldest actionable Security issue and found it already satisfied on main.
    Recording the evidence rather than rebuilding it, since the stated evidence here has gone stale and
    the next run down the queue would reproduce this same investigation.

    Delivered by #2738 (merged 2026-08-14), which took the route this issue recommended: rather than
    pasting the block a third and fourth time, it extracted .github/scripts/setup-ksail.sh and pointed
    every call site at it.

    Acceptance criteria

    Criterion State
    deploy-prod/action.yml verifies before tar -xzf met — calls the shared script (L60); extraction happens inside it, after verification
    dr-rebuild.yaml verifies before tar -xzf met — L159
    Missing checksum entry fails with an actionable message met — no published checksum for … — refusing to install unverified
    Mismatch fails naming expected and actual met — both digest comparisons print expected and actual
    Verified three ways met — see below

    All four pinned call sites now route through the one script: ci.yaml L888, dr-rebuild.yaml L159,
    validate-main.yaml L138, deploy-prod/action.yml L60.

    The three-way verification

    • Real archive passes — validate-main.yaml run 32596312756 on main (2026-08-22T20:19:00Z),
      step ⚙️ Setup KSail → success.
    • Tampered fails — scripts/tests/test-setup-ksail.sh asserts release metadata digest mismatch.
    • Missing entry fails closed — the same suite asserts no published checksum.

    Both negative arms assert rejection happens before install, so a guard that failed after the binary
    was already in place would not pass. The suite is wired into CI (ci.yaml L495) alongside
    shellcheck, and it enumerates all four call sites by name — so adding a fifth unverified site, or
    dropping the token from an existing one, fails the build.

    Two notes for the record

    The implementation is stronger than this issue asked for. It checks the archive against two
    independent sources — the published checksums.txt and the digest field in GitHub's release
    metadata — which narrows the stated limit here: a substituted asset now has to be reflected in
    GitHub's own release metadata as well, not just in the manifest shipped beside it.

    The grep-exits-1 concern in criterion 3 is structurally avoided rather than worked around: the
    lookup uses awk '$2 == asset {print $1}', which yields an empty string on no match instead of a
    non-zero exit, so the explicit emptiness check is what fails closed.

  7. devantler
    closed this as completedon Aug 22, 2026
  8. github-project-automation
    moved this from 📥 Backlog to ✅ Done in 🌊 Project Boardon Aug 22, 2026
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

    Security

    Fields

    No fields configured for Security.

    Projects

    • 🌊 Project Board
      Status
      ✅ Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.