You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Catalog-supplied expected identity, so first install is not trust-on-first-use #6310
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:
Read the expected identity from the resolved catalog entry.
On first install, pass it instead of nil, so it is bound into the Sigstore policy rather than compared afterwards.
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
Bump toolhive-core to v0.0.42
Check first skill install against catalog-declared provenance