Skip to content

fix(server): omit a probed provider version that holds a stored secret - #421

Closed
cursor[bot] wants to merge 1 commit into
claude/backlog-triage-planning-pr-b5ee7ffrom
fix/redact-probed-provider-versions
Closed

cursor[bot] wants to merge 1 commit into
claude/backlog-triage-planning-pr-b5ee7ffrom
fix/redact-probed-provider-versions

Conversation

@cursor

@cursor cursor Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What Changed

A provider version that contains a stored secret is left unpublished on the two probe paths that returned before the shared check:

  • Cursor's about probe, including the --version fallback when about has no version
  • The quick OpenCode probe, when it reports an unsupported version

Why

Settings save publishes the quick probe before the full one. Cursor's about command returns on both probes, so the new secret check never saw that version. A CLI that prints a stored secret as cliVersion, or as --version when about has none, put the secret on the provider row sent to clients (version and versionAdvisory.currentVersion).

The quick OpenCode probe has the same hole for an echoed secret whose first number is 3 or higher (123.456.789), which that path treats as an unsupported version and returns immediately.

A real Cursor cliVersion is still published when only --version echoes the secret.

UI Changes

No UI changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

No screenshots or video: server inventory behavior, covered by tests.

Validation: cargo check -p bibcode-server --tests --offline finished successfully. cargo test -p bibcode-server --lib -- does_not_publish_a_version_that_holds_a_stored_secret could not run: rustc of the test binary was OOM-killed (about 13GB RSS). vp check and vp run typecheck were not run.

Profiler, crash, and trace coverage: none applies. The probe still launches through the existing inventory command runner and publishes no new event.

Testing runbooks were reviewed and remain accurate.

Open in Web View Automation 

Cursor's about probe and the quick OpenCode unsupported-version probe
returned before the shared secret check, so a CLI that echoes a stored
secret as its version published that secret to clients.

Co-authored-by: mauroubeda <mauroubeda@gmail.com>
@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Nov 23, 2026
@mubeda mubeda closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants