Repository navigation
Open
Open
Feature
Copy link
Description
The workflow
I run a plugin whose job is security-sensitive: it is the client-side crypto endpoint of a "sealed mode" scheme — it intercepts HTTP(S) requests in bb's embedded browser and HPKE-seals them to pinned origin keys, so the CDN edge in between only sees ciphertext. The plugin is the trust anchor: if an update can be silently swapped, the entire guarantee is void. I need bb to verify plugin provenance and support a first-class pin/verify workflow.
(Activation-time tamper evidence — a small, separable fix — is tracked in #3522.)
What happens today (main @ 9b4f273)
- Install sources:
builtin:,git:<url>@<ref|semver-range>,npm:<pkg>@<version|range|tag>,path:, or catalog entry (install-sources.ts). - No auto-apply: a 6-hourly check records candidates (
plugin-updates.ts);bb plugin updateapplies after a prompt; exact pins refuse updates (update-resolver.tsrefuses moved tags). - npm:
dist.integrity(sha512) is verified against the tarball at install/update, plus a TOFU check between confirmation and install. Git: exact commits pinned, but no signature verification (all inmanaged-plugin-artifacts.ts). - The npm path's root of trust is the registry itself:
dist.integrityis TOFU against registry metadata, and the same registry serves the tarball — a compromised or malicious publish passes every install-time check. - No sigstore/cosign/minisign/TUF/GPG anywhere in the plugin pipeline.
- Bundled/first-party plugins update with the app; its update check/command and feed are not configurable for downstream distributions (Make the bb-app self-update check and upgrade command configurable for downstream distributions #3167/Make the desktop app consumable by downstream distributions: configurable default server, optional builtin runtime, product name, update feed #3168).
- Plugins run full-trust in the bb server process: they can read other plugins' secrets (
docs/configuration.md) and rewrite other plugins' files on disk.
What you would expect
- (a) Signature verification at install/update: let an install source declare a signing identity (minisign pubkey, or cosign keyless identity + OIDC issuer), verify artifact signatures, fail closed on mismatch.
- (b) Activation-time re-hash — split out to the companion execution-integrity issue, so the install-time provenance ask stands on its own.
- (c) Pin/verify surface:
bb plugin install --pin,bb plugin verify, and a verified/pinned state inbb plugin list/ the UI. - Minimal viable alternative if (a)/(c) are out of scope: document the exact-pin +
path:workflow as a supported "verified install" path (external verifier → verified dir →bb plugin install path:<dir>), and keepbb plugin updaterefusing pinned sources.
Context and alternatives
- Workarounds today: install exact (
npm:[email protected],git:url@<sha>— never ranges/branches); upgrade = explicit remove + reinstall; verify signatures externally (minisign/cosign) before apath:install; keep plugin sets small. - Prior art worth considering: npm provenance/attestations, VS Code extension signing + verified publishers, browser extension stores, TUF-style update metadata for freeze protection.
- Searches (2026-09-11): no issue found tracking plugin signing, signature verification, or a pin/verify mode. Adjacent open issues: Add transactional prebuilt plugin generations with exact resident rollback #2690 (transactional prebuilt plugin generations + exact resident rollback), Host-verified operator authorization for plugin invocations and tool approvals #1541 (host-verified operator authorization), Make the bb-app self-update check and upgrade command configurable for downstream distributions #3167/Make the desktop app consumable by downstream distributions: configurable default server, optional builtin runtime, product name, update feed #3168 (configurable update feed).
- Provenance: condensed investigation report — https://gist.github.com/cad0p/35a62a445538fd9915937fdb52b419f2 (base bb
main@9b4f273, 2026-09-11). Companion issues are the same driver.
Checks
- I searched open and closed issues for the same request.
- If an agent wrote this, the body ends with
> AGENT GENERATED.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 11, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Type Feature, Priority Medium, Effort High, and labels
plugins,security. No existing classification values needed preservation.This requests new publisher-verification and pinning capabilities requiring trust design and CLI/UI integration. Medium priority reflects the available manual verification workaround; High effort reflects the new security design and interfaces.
Final Type verified as Feature; reproduction and fix steps skipped. No PR: this requires product and security architecture decisions outside the simple-fix scope.