Refractoring Stage 4 Completed IPC hardening
This commit is contained in:
+3
-1
@@ -86,7 +86,8 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
||||
|
||||
- [x] Verify the IPC sender is the expected top-level application document (`desktop/security/ipc-sender.cjs`).
|
||||
- [x] Restrict navigation to the exact app document URL; reject arbitrary `file:` navigation.
|
||||
- [ ] Validate argument shape, type, size, and authority-sensitive values at the IPC boundary.
|
||||
- [x] Validate channel names, argument counts/types, and nested payload complexity (`desktop/security/ipc-arguments.cjs`).
|
||||
- [ ] Validate channel-specific field limits and authority-sensitive values, including DAV remote object references.
|
||||
- [ ] Register handlers by feature and keep `preload.cjs` as the narrow renderer API.
|
||||
- [ ] Return deliberate DTOs rather than internal store objects.
|
||||
|
||||
@@ -126,4 +127,5 @@ This is a gradual destination, not a requirement to move everything at once. IPC
|
||||
- Step 4 completed with extracted IDLE and snooze services; the full suite passed 92 tests.
|
||||
- Step 5 added a trusted top-level sender check to all 54 registered IPC handlers; sender boundary tests pass.
|
||||
- Step 5 also aligned `will-navigate` with the same exact-document policy; `npm test` passes 96 tests.
|
||||
- Step 5 added request schemas for all 54 registered channels, plus depth/collection/string bounds. Base64 attachment payloads remain uncapped to preserve the existing no-total-size-cap behavior; `npm test` passes 100 tests.
|
||||
- While work continued, `package.json` and `package-lock.json` reflected a version bump to `0.4.6`; those changes were preserved.
|
||||
|
||||
Reference in New Issue
Block a user