Refractoring Stage 5 Completed channel-specific IPC validation

This commit is contained in:
2026-10-16 17:26:51 +03:00
parent 88a8729f4f
commit 928e6dd62a
6 changed files with 205 additions and 6 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ This is a gradual destination, not a requirement to move everything at once. IPC
- [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`).
- [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.
- [x] Validate channel-specific fields and limits; reject renderer-supplied raw SMTP payload fields.
- [ ] Register handlers by feature and keep `preload.cjs` as the narrow renderer API.
- [ ] Return deliberate DTOs rather than internal store objects.
@@ -130,5 +130,5 @@ This is a gradual destination, not a requirement to move everything at once. IPC
- 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.
- 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.
- The current IPC/DAV validation changes pass the full suite: 108 tests.
- While work continued, `package.json` and `package-lock.json` reflected a version bump to `0.4.6`; those changes were preserved.