fix(identity): validate persistent character pairs

This commit is contained in:
nyan404 committed 2026-08-25 04:07:51 +03:00
1 parent 0aec421ad2
commit 6af34d4706
8 files changed
+44 -1

No files matched your search

+1
View File
@@ -35,6 +35,7 @@
- 2026-08-25: public goal calculations reject non-finite scores and bound session length to 1–1440 minutes and kitten count to 1–50, consistently across domain, API, and VK input.
- 2026-08-25: screenshot uploads are public by product design but are bounded before JSON parsing (20 MiB) and after base64 decoding (15 MiB); only verified PNG/JPEG/WebP bytes and basename-only filenames reach image hosting.
- 2026-08-25: public web identity completion is deliberately ephemeral; it no longer writes the identity directory used by VK, and unused global web-profile endpoints were removed.
- 2026-08-25: `Identity` is the shared invariant boundary for persistent profile/directory pairs: names are normalized and bounded to 100 characters, and character/actor IDs must be positive integers.
- 2026-08-25: public JSON cannot choose arbitrary attachment URLs. Web attachments are accepted only after the running process issued their image-host URL through `/api/web/upload`; the bounded in-memory registry expires entries after 30 minutes.
- 2026-08-25: VK attachment mirroring has a strict 15 MiB transfer cap, including a Content-Length precheck and bounded read.
- 2026-08-25: after the byte cap, VK attachment mirroring accepts only PNG/JPEG/WebP signatures and does not trust the external response Content-Type.