Repository navigation
v1.5.0 — surface filter, actionable upgrade prompt, and security hardening
1.5.0 — surface filter, actionable upgrade prompt, and security hardening
Bundles the post-1.4.1 work tracked in siropkin/budi-cursor#42–#45, #50, and #51. Two user-visible improvements (per-host surface filtering, actionable copy when the daemon api_version is stale) ride alongside four security fixes that close drive-by primitives a malicious repo could abuse via .vscode/settings.json. No data-contract change with the daemon — ?surface=<host> and the existing ?provider=… shape coexist, and the extension still runs against any 8.4.x daemon without modification.
Added
- Per-host
?surface=<host>filter on every analytics request (siropkin/budi-cursor#50/ PR #52). The extension now tells the daemon which IDE it is rendering for —cursorfrom Cursor,vscodefrom VS Code,vscodefrom VSCodium (re-uses VS Code paths in core's path-based inference). Stops the cross-IDE leak where a user with both editors installed saw the same blended dollar number on both status bars. NewsurfaceFilterForHosthelper insrc/budiClient.ts;unknownhost returns[]as a failsafe so we never accidentally hide the user's data. Pairs withsiropkin/budi#701(data layer) andsiropkin/budi#702(HTTP + CLI filter). budi.includeOtherSurfacessetting (defaultfalse) for the holistic-view crowd that wants the pre-#50 cross-IDE aggregation back. Documented inpackage.jsonconfiguration contributions; re-read ononDidChangeConfigurationandonDidGrantWorkspaceTrust.- Actionable upgrade prompt when the daemon
api_versionis stale (siropkin/budi-cursor#51/ PR #53). The previousredHealthStatecollapsed both "daemon unreachable" and "daemon too old" into a singlebudi · offlinecopy plus a vague toast. Split into two states so the bar copy and toast tell the user what to actually do:unreachable→budi · offline(unchanged for the truly-down case).version-stale→budi · update needed, with a tooltip that names the installed daemon version, the requiredapi_version, and the platform-appropriate one-line upgrade command (budi update/brew upgrade siropkin/budi/budi/ standalone installer).- Toast offers a Show update command action that opens a
budi: Updateoutput channel pre-populated with the right command, plus Dismiss to silence it for the session. The extension never runs the upgrade itself — daemon installs span Homebrew, manual binaries, and corp-managed paths.
Changed
budi.daemonUrlis now loopback-only (siropkin/budi-cursor#42/ PR #46).getConfiguration("budi").getreturns the merged user/workspace value, so a malicious repo's.vscode/settings.jsoncould pivot the extension's 15-secondGET /health+GET /analytics/statusline?project_dir=<abs path>polling to an attacker URL the moment the workspace was trusted, leaking the absolute workspace path, the detected AI-extension list on non-Cursor hosts, and a presence beacon. Onlyhttp(s)://127.0.0.1,localhost, and::1are honored now; everything else is logged and falls back tohttp://127.0.0.1:7878. Schema-levelpatternmakes the editor's settings UI flag non-loopback values too. SOUL.md already pins the daemon as local-only, so a remote override has no legitimate use case.budi.cloudEndpointis now restricted togetbudi.devhosts (siropkin/budi-cursor#43/ PR #47). Same primitive asdaemonUrlbut on the click-through side: a workspace override could redirectvscode.env.openExternalto an attacker URL and turn a status-bar click into a drive-by phishing landing. Only https URLs whose hostname isgetbudi.devor ends in.getbudi.devare honored; everything else falls back to the default. Subdomains stay allowed so a user-scopestaging.app.getbudi.devoverride keeps working. Schema gains a getbudi.dev-suffixpattern.- HTTP responses from the daemon are capped at 64 KB and content-type-checked (
siropkin/budi-cursor#44/ PR #48). BothfetchDaemonHealthandfetchStatuslinenow route through a singlefetchDaemonJsonwrapper that rejects non-2xx responses, rejects non-application/jsoncontent-types, and aborts streams over 64 KB — a fast loopback peer could previously flood hundreds of MB inside the 3 s timeout window and OOM the extension host. Real/healthand/analytics/statuslinepayloads are well under 1 KB, so 64 KB still leaves slack for forward-compat fields. Defense in depth alongside the loopback allowlist from #42 — even with a benign daemon, this protects against the daemon misbehaving. - Untrusted-workspace capability declared and security-sensitive settings gated (
siropkin/budi-cursor#45/ PR #49).package.jsonnow declarescapabilities.untrustedWorkspaces: { supported: "limited" }with a description listing the keys that get ignored in untrusted folders.extension.tsrunsbudi.daemonUrl,budi.cloudEndpoint, andbudi.pollingIntervalMsthrough areadSecuritySensitivehelper that falls back to the user-scoped (or default) value whenvscode.workspace.isTrustedisfalse. Workspace overrides become effective without an editor reload once the user trusts the folder viaonDidGrantWorkspaceTrust. Platform-level companion to the per-setting allow-lists in #42/#43 — the trust gate is enforced in code rather than relying on the user-overridable VS Code declaration alone.
Notes
- No daemon contract change.
?surface=<host>is additive; an old daemon ignores it and returns the same shape it always did. Single-host v1.4.x calls remain byte-identical whenincludeOtherSurfaces=false(the default) and the extension already filters to a single surface. - Status-bar copy gains exactly one new state —
budi · update neededfor stale daemons. The other four states (budi,budi · setup,budi · offline,budi · $X 1d · $Y 7d · $Z 30d) are unchanged. - The four security fixes are no-ops in the trusted single-developer-workspace flow that has been the default to date; they exist to make the "I just opened an unfamiliar repo" path safe rather than to change shipped behavior for existing installs.