Repository navigation
feat(admin): mark official plugins via npm provenance; confirm third-party installs - #8531
Conversation
Anyone can publish an ep_* package, and junk placeholders (0.0.0-stage, no repository) have started showing up in the plugin feed and the admin catalog. The project cannot review every plugin, so the catalog now marks plugins it publishes as Official and everything else as Third-party. Official is decided by npm provenance, not by self-declared fields: the SLSA attestation for the exact name@version (digest checked against dist.integrity) must come from a github.com/ether/* repository with the ether org's numeric owner ID. It is computed at catalog refresh and cached per version. The feed's own `official` flag is overwritten. - Third-party plugins stay listed with a badge; installing one asks for confirmation first. Official plugins install with one click. - Placeholder packages are left out of browsing but still found by an exact-name search. - New pluginCatalogThirdParty setting: label (default), hide, all. - CLI installs are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoMark official plugins using npm provenance and confirm third-party installs
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
- Installs from the catalog carry the version that was classified, and the server installs exactly that version, so an Official label cannot cover a newer, unchecked release. The socket still accepts a bare name. - Updates of installed plugins go through the same confirmation, using the catalog version and its classification; unknown means third-party. - getAvailable applies pluginCatalogThirdParty like search does. - Provenance is fetched in its own sweep with its own time budget, after the metadata sweep. A catalog with unchecked provenance is reused for at most a minute so the next search retries. - The deprecation-only lookup for installed plugins no longer fetches attestations. - Warn when provenance could not be checked, and in hide mode say why the list may be empty; document that hide needs registry.npmjs.org. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
|
Addressed the Qodo review in 1574219:
Each one has a backend test in |
Placeholder
ep_*packages (a0.0.0-*version, no repository) have started showing up in the plugin feed and the admin catalog, next to real plugins and looking just like them. The project can't review every plugin on npm, so the catalog now marks the ones the project publishes as Official and labels everything else Third-party.How "official" is decided
npm provenance, not anything the package says about itself. The
repositoryfield, the maintainer list and the feed's ownofficialflag can all be set by whoever publishes. A plugin is official only when the SLSA provenance attestation for that exactname@version(subject digest checked againstdist.integrity) was built in agithub.com/ether/*repository with the ether org's numeric owner ID. ether plugins already publish this way via npm trusted publishing. It is worked out at catalog refresh, reusing the existing npm metadata lookup, and cached per version, so browsing gets no extra latency. The feed'sofficialflag is overwritten. Logic is insrc/static/js/pluginfw/pluginTrust.ts.On the live feed today: 86 official, 99 third-party, 9 placeholders.
Behaviour
pluginCatalogThirdPartysetting:label(default),hide(official only),all(everything, placeholders included). Documented insettings.json.templateanddoc/plugins.md.pnpm run plugins iis unaffected.A plugin from the ether org that hasn't been released with provenance yet shows as third-party until its next release.
Tests
tests/backend/specs/pluginTrust.ts: classification, including attestations from another org, a mismatched owner ID, a copied attestation, wrong version and wrong digest.tests/backend/specs/pluginCatalog.ts: a package that claims to be official but isn't, provenance caching, offline behaviour, and the three modes.admin_plugin_trust.spec.ts: badges and the confirm dialog, using fixture search results on the socket with installs swallowed.adminupdateplugins.spec.tsnow accepts the dialog if npm can't be reached.🤖 Generated with Claude Code
https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw