Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: luvs01/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
The docker-smoke job exited 1 about 7s into 'docker compose build hub' (long before any branch content runs; healthy builds take ~33s) while the job's deterministic steps - manifest generation, frozen installs, GUI build, runtime verification - all reproduce cleanly on the merged tree. Most plausible cause is a transient image-pull/apt failure on the runner; the harness suppresses child output by design, so this empty commit retriggers the suite. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The shared-staging-directory guard used a raw startsWith prefix check, so a predecessor path containing '..' (e.g. <stageDir>\..\elsewhere\expected.xml) passed while resolving outside the pinned directory. Reject '..' segments on either separator for both payloads before comparing prefixes. Co-Authored-By: Epinephrine <luvs01@hanmail.net>
|
Fixed in 42911c0. The shared-staging-directory guard now rejects |
Motivation
Description
byteLengthfield toStagedWindowsTaskXmland compute it instageElevatedSchedulerRegistrationso the elevated side receives a bounded length alongside the SHA-256 digest.runWindowsElevatedScheduledTaskRegistration.CreateFile(via a small injectedAdd-Typehelper) with flags that deny write/delete sharing and by checkingGetFileInformationByHandleExto detect reparse targets; keep those handles until the elevated child exits.ReadAllByteswith a bounded open/read into a preallocated buffer (File.Open+ length check + looped read), then compute the SHA-256 over those same bytes before decoding and registering; dispose the stream in afinallyblock.wxcreation, pre-elevation lstat checks, digest verification, staged cleanup, the replacement precondition (re-query-before-Force), and bounded command-line length behavior.Testing
bun test tests/windows/windows-elevation-spawn.test.tsand all 58 tests passed.bun test tests/service/service.test.ts --test-name-pattern 'elevated staging|fresh registration elevates only|fresh registration UAC denial'and the focused cases passed (2 tests).bun x tsc --noEmit,bun run structure:check, andbun run privacy:scan, all of which passed; also rangit diff --checkwith no reported issues.bun run testexposed unrelated, environment-sensitive failures across the full parallel suite; the focused tests and typecheck for the changed subsystem are green.Codex Task