Refractoring Stage 5 DAV functions EDIT/DEL tied to creators account

This commit is contained in:
2026-10-16 17:15:20 +03:00
parent 0b52949f23
commit 88a8729f4f
6 changed files with 190 additions and 15 deletions
+5 -2
View File
@@ -87,7 +87,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.
- [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.
- [x] Bind DAV object updates/deletes to the selected account, server collection, server-returned resource, and current ETag (`desktop/dav/remote-reference.cjs`).
- [ ] Finish channel-specific validation for remaining nested fields and sensitive values.
- [ ] Register handlers by feature and keep `preload.cjs` as the narrow renderer API.
- [ ] Return deliberate DTOs rather than internal store objects.
@@ -127,5 +128,7 @@ 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.
- 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.
- Step 5 also binds DAV updates/deletes to the configured account, same-origin collection, a server-listed resource, and a current ETag; DAV IDs are constrained against line injection and path traversal.
- The current IPC/DAV validation changes pass the full suite: 106 tests.
- While work continued, `package.json` and `package-lock.json` reflected a version bump to `0.4.6`; those changes were preserved.