Skip to content

Catalog-supplied expected identity, so first install is not trust-on-first-use #6310

Closed

Description

@samuv

Summary

The first install of a skill has nothing to verify against. We verify the signature chains to Sigstore, then record whatever identity we observe — trust on first use. Every install afterwards is enforced against that pin, but the first one takes the publisher on faith.

The catalog already knows who is supposed to sign each skill. If it declared that, the first install could be checked too.

Deferred from v1 in #5740 and tracked as a bullet in #5899 (now closed); this gives it a home.

Blocked on

Provenance on toolhive-core's Skill types — the catalog entry has no field to carry an expected signer identity today. That is the prerequisite, and it lives in toolhive-core.

What changes once it exists

skillsvc already threads an expected identity through verification: expectedLockTrust(projectRoot, name) returns the locked provenance, and nil means "first use, record what you see". The plumbing to enforce an expectation is built and exercised — this issue only changes where the expectation comes from on first install.

Roughly:

  1. Read the expected identity from the resolved catalog entry.
  2. On first install, pass it instead of nil, so it is bound into the Sigstore policy rather than compared afterwards.
  3. On mismatch, fail with the existing signer-mismatch classification.

Decisions to make deliberately

  • Catalog entries without provenance. Most will have none for a while. Absent must mean "fall back to TOFU", or every install breaks — but that also means the protection is opt-in per catalog entry, which is worth stating plainly rather than discovering later.
  • Disagreement between catalog and lock. If a lock entry already pins identity A and the catalog now declares B, that is a signer change and should be treated as one, not silently resolved in either direction.
  • Trust in the catalog itself. This moves part of the trust decision onto catalog contents. Worth being explicit about what that assumes.

Related: #6309 (recording ref and runner environment would give a catalog-declared identity more to assert).

Activity

  1. added
    enhancement
    go
    skills
    on Aug 13, 2026
  2. added
    needs-triage
    on Aug 13, 2026
  3. removed
    needs-triage
    on Aug 13, 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

    enhancementgoskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions