Skip to content

cli: loopback-only source override so install tests can exercise skills install offline #590

Closed

Description

@nc9

The released binary fetches agent skills from fixed hosts (github.com/squirrelscan/skills.git for the ref lookup, raw.githubusercontent.com/squirrelscan/skills for the manifest and files; see apps/cli/src/self/skills-manifest.ts). There is no way to point it at another source, so the release install tests cannot exercise squirrel skills install against a local fixture server (#423).

An override would decide where skill files are fetched from, so it is a supply-chain-sensitive change that needs its own security review. A narrow design to evaluate: an env var honoured only when it resolves to a loopback address, ignored otherwise, never read from project config.

Acceptance Criteria

  • A design note states the threat model and why the override cannot redirect a user's skill fetch to an attacker-controlled host
  • The override is honoured only for loopback addresses and ignored (with a visible warning) for anything else
  • A test proves a non-loopback value is rejected and the default hosts are used
  • The release install tests run squirrel skills install against a local fixture server on every platform
  • Docs describe the variable as a test hook, not a supported mirror setting

Activity

  1. added
    enhancement
    P3
    size: S
    security
    on Oct 8, 2026
  2. added theissue type on Oct 28, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Verified against main after v0.0.145 (loopback-only test hook landed). Met: criteria 1, 2, 3 and 5. Open: criterion 4, no workflow or release install test runs squirrel skills install with the hook on each platform (the in-process test covers syncSkills). Leaving this open for that.

    nik

  4. nc9 commented on Nov 4, 2026

    @nc9
    ContributorAuthor

    Acceptance check against main 7c31d5b (hook first released in v0.0.145, release gate step in v0.0.148, in v0.0.161):

    # Criterion Result Evidence
    1 to 3, 5 Threat model, loopback-only, rejection test, docs PASS already ticked; apps/cli/tests/self/skills-test-source.test.ts 19 pass on this main; docs/cli/skills.mdx calls it a test hook, not a mirror setting
    4 Release install tests run squirrel skills install against a local fixture server on every platform PASS issue #1367 added the step in commit 8b09cb9: .github/workflows/test-install.yml runs scripts/skills-install-fixture-check.py with SQUIRREL_SKILLS_TEST_SOURCE in the Linux glibc, Linux musl, macOS arm64, macOS x64 and Windows jobs; scripts/skills-install-gate.test.ts (2 pass) checks that every job embeds the same script. Release run 41736440175, at the v0.0.161 tag commit, shows "Install skills from a local fixture server" with conclusion success in all five "Verify installers" jobs

    Ticked criterion 4 and closing.

    nik

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

    P3enhancementsecuritysize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions