Repository navigation
fix(server): fence browser policy checks during identity enrollment - #4328
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
043306a to
8b7de16
Compare
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
8b7de16 to
5e75caf
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
Rebased onto |
5e75caf to
87a08a4
Compare
2b8b331 to
45569cb
Compare
39de761 to
2223273
Compare
2223273 to
ac459e2
Compare
|
@OmarMcAdam Please review browser URL allowlist enforcement across navigation paths and desktop policy synchronization. Current Linux/macOS unit checks fail; resolve those and verify the policy journey before merging. Holding for your review under the current merge instructions. |
Deploying openwork with
|
| Latest commit: |
9df70df
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7605a389.openwork.pages.dev |
| Branch Preview URL: | https://feature-browser-url-allowlis.openwork.pages.dev |
9df70df to
03820db
Compare
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (19907 ms), confidentiality-review (27079 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (03820db8a7519878206131f3e8d96d3f5b340d5a). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Current scope
This PR is reconstructed on current
devto finish browser-policy review findings. It no longer introducesallowedBrowserHosts: approved-site enforcement already landed through #4564 and later work asexecution.browserOrigins.The historical wildcard/subdomain expansion, union-of-host grants, renderer-pushed policy cache, and empty-means-unrestricted behavior are deliberately not restored. Current exact HTTP(S) origins, intersecting restrictions, empty-list denial, and server-owned enforcement remain authoritative.
Fix
An evaluation that began without a managed identity could await an empty persisted-policy read, then return unrestricted after a managed identity had arrived. Extend the existing generation fence across that read so stale evaluations reject with
policy_identity_changed.file://denial alongside approved HTTPS allowance.Genuinely unmanaged local browsing remains allowed. This does not redefine the enrollment boundary, restore retired engine hooks, replace already-open pages, or redesign the new-tab experience. #4836's merged shortcuts remain intact.
Review reconciliation
<all_urls>and does not exemptfile:; the canonical matcher only accepts approved HTTP(S) origins. The new matcher regression verifies denial, but is not native file-navigation proof.Verification
Verdict: Incomplete — native enrollment/file-request evidence and the CI-pinned runtime check remain outstanding.
Current head:
03820db8a7519878206131f3e8d96d3f5b340d5a, based ondev@23143497940c871bda4a9aaebb82bd86c3f95530.Passed from
apps/server:bun --conditions=development test src/managed-desktop-policy.test.ts— exit 0; 10 service tests passed, 52 assertions, plus the passing isolation-wrapper test. The same new regression failed before the production fix (9 pass / 1 fail inside the wrapper).bun test --conditions=development --preload ../../../browser-policy-test-deps.mjs ./src/managed-policy-rules.test.ts— exit 0; 1 passed, 2 assertions. The temporary preload aliases the real installed Zod 4.3.6 dependency without replacing its implementation. Omit the preload in a normally installed workspace.git diff --check origin/dev...HEAD— exit 0.No successful test was skipped. Local Bun was 1.3.4, not CI's pinned 1.3.14; that runtime check is deferred. Initial dependency setup for the matcher test failed to resolve Zod and was corrected before the passing run.
Not run: native Electron/Den journey, package builds, or whole-package typechecks. The runtime owner remains
evals/specs/desktop-policy-restricted-mode.e2e.test.ts; its first-enrollment and native file-request assertions are still missing. A page-contextfetch(file://...)would not distinguish policy denial from Chromium restrictions, so it is not used as substitute proof. Historical allowlist evidence on the old head is not evidence for this reconstruction.