Repository navigation
fix(server): omit a probed provider version that holds a stored secret - #421
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
A provider version that contains a stored secret is left unpublished on the two probe paths that returned before the shared check:
aboutprobe, including the--versionfallback whenabouthas no versionWhy
Settings save publishes the quick probe before the full one. Cursor's
aboutcommand returns on both probes, so the new secret check never saw that version. A CLI that prints a stored secret ascliVersion, or as--versionwhenabouthas none, put the secret on the provider row sent to clients (versionandversionAdvisory.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
cliVersionis still published when only--versionechoes the secret.UI Changes
No UI changes.
Checklist
No screenshots or video: server inventory behavior, covered by tests.
Validation:
cargo check -p bibcode-server --tests --offlinefinished successfully.cargo test -p bibcode-server --lib -- does_not_publish_a_version_that_holds_a_stored_secretcould not run: rustc of the test binary was OOM-killed (about 13GB RSS).vp checkandvp run typecheckwere 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.