Repository navigation
fix(v0.9.4): Session-1 bridge resilience, bounded virtual-drive timeouts, and Select/Unselect any folder - #103
Merged
Conversation
…uts, and Select/Unselect any folder
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 41099822 | Triggered | Generic High Entropy Secret | dd122c6 | crates/quorum-daemon/tests/session_fs_bridge_tests.rs | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
| true, | ||
| std::time::Duration::from_millis(800), | ||
| ) { | ||
| Ok(true) | Err(_) => push_unique_drive(&mut out, p), |
| true, | ||
| std::time::Duration::from_millis(800), | ||
| ) { | ||
| Ok(true) | Err(_) => push_unique_drive(&mut out, p), |
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.
Summary
Fixes live Windows
LocalSystem(Session 0 -> Session 1) Google Drive (G:\My Drive) bridging, stops virtual-drive Dokan timeout respawn storms, and adds full Select & Unselect ANY Folder support across every folder picker modal, inline explorer, and Cloud Drives card.Root Causes Addressed
session_bridge_server.rs):spawn_parent_watchdog(parent_pid)previously ran beforeREADY <port>and calledOpenProcess(PROCESS_SYNCHRONIZE)on the Session-0LocalSystemservice PID, returningERROR_ACCESS_DENIEDand terminating the Session-1 helper in <100 ms.session_fs_bridge.rs,session_bridge_server.rs,handlers/settings.rs,handlers/cloud_drives.rs):G:\) momentarily blocked on Dokan IRPs,call_bridge_with_retryblindly calledclear_bridge_endpoint()and respawned a new Session-1 bridge process on every timeout, compounding load onGoogleDriveFS.exeand turning slow virtual-drive probes into false404 Directory does not exist on disk: G:\orFailed to fetcherrors.std::fs::canonicalize(GetFinalPathNameByHandleW) could also fail on virtual drive roots (G:\) even whenmetadatasucceeded.app.js,styles.css,handlers/cloud_drives.rs):Select Foldermodal previously lacked checkboxes, selected-state indicators, selected-folder summary chips, and unselect controls, andPOST /api/cloud-drives/config(action: "remove_folder") only removedcustom_pathsrather than also allowing unselection of a drive'sroot_path.Changes
crates/quorum-daemon/src/session_bridge_server.rs,crates/quorum-daemon/src/win_native.rs,crates/quorum-daemon/src/main.rs,crates/quorum-daemon/src/desktop_main.rs):--keepalive-stdinpipe-EOF keepalive fromQuorumRAGDaemonplus unprivilegedCreateToolhelp32Snapshotfallback started strictly afterREADY <port>flush.crates/quorum-types/src/session_fs_bridge.rs,crates/quorum-daemon/src/session_bridge_server.rs,crates/quorum-ingest/src/cloud_drives.rs,crates/quorum-ingest/src/config.rs,crates/quorum-daemon/src/handlers/settings.rs,crates/quorum-daemon/src/handlers/cloud_drives.rs):/bridge/health(1 s) and never respawns a healthy bridge.DRIVE_TIMEOUT_BACKOFF) and bounded local virtual-drive probes (is_local_virtual_drive_path,local_is_dir_bounded,local_is_file_bounded,local_canonicalize_bounded) so neither Session-0 services nor interactive Session-1 daemon startups ever hang when Google Drive for Desktop (G:\) is busy or applying pending changes — returning HTTP504with actionable guidance instead of false404.resolve_safe_existing_path(canonicalizewith validatedmetadatafallback for Dokan roots) and bounded worker threads (3.5 sfor/bridge/stat,5.5 sfor/bridge/browse, capped atMAX_BLOCKED_FS_OPS = 12).G:\My Drive) in Quick Access directly from cached Session-1 drive discovery (0 ms) and eliminated redundant double-probing on bridged drives.crates/quorum-ui/assets/app.js,crates/quorum-ui/assets/styles.css,crates/quorum-ui/assets/index.html,crates/quorum-daemon/src/handlers/cloud_drives.rs):POST /api/cloud-drives/config(action: "remove_folder") to unselect bothcustom_pathsandroot_path(disabling the drive and purging/unwatching safely when no folders remain) while respecting unselected roots inmerged_entries_in_orderandreconcile_discovered_cloud_drives.Select Foldermodal (modal-pure-rust-folder-pickerin bothindex.htmlandapp.js) with accessible native checkboxes (.folder-checkbox-hit+:focus-visible), stateful✓ Selected — Unselecttoggle buttons (aria-pressed), a Selected Folders summary chip bar with one-click✕removal (#pure-rust-picker-selected-bar), stateful footer Select/Unselect +Donebutton, and Escape-key dismissal across all contexts (cloud-drives,mesh,mkt/general,newdoc/storage,dlp,artemis,reindex).0.9.3->0.9.4) & Regression Tests:bridge_survives_privileged_local_system_parent_pid_and_exits_on_stdin_eof,bridge_504_timeout_preserves_endpoint_and_trips_drive_circuit_breaker, andtest_folder_picker_select_and_unselect_any_folder_controls.0.9.4and WebUI asset cache-buster to?v=20261124f.Verification
node --check crates/quorum-ui/assets/app.js— PASSquorum-types(session_fs_bridgetests 3/3 including 504 non-respawn & circuit breaker) — PASSquorum-ui(cloud_drives_ui_tests9/9 including static modal#pure-rust-picker-selected-bar&Doneassertions) — PASSquorum-ingest(cloud_drivestests 7/7) — PASSquorum-daemon(packaging_invariants_tests4/4,session_fs_bridge_tests3/3 including PID 4 +--keepalive-stdin) — PASS/browserverification on rebuiltv0.9.4(http://127.0.0.1:3041/): verified 1.3 s startup even with wedgedG:\,Drives: C:\ D:\ G:\, HTTP504busy guidance onG:\, and full Select/Unselect via checkboxes,✓ Selected — Unselect,#pure-rust-picker-selected-bar✕chips, footer✕ Unselect Folder, andDoneacross Cloud Drives & Mesh — PASSQuorumRAG-0.9.4-x86_64.msi(82,448,384bytes, Authenticode sign parity, ICE63, Zero-Touch PATH, Defender CLEAN) — PASS