sam
5f827b6e19
fix(messaging): refuse an inbound attachment whose type contradicts its content
...
A declared MIME type decides what the Gateway does with a file: a voice note is
transcribed, an image goes to a model. Both acceptance points took that claim
from the caller unchecked -- the dashboard's voice upload and every Telegram
attachment -- so a file could be used as something it is not.
ValidateInbound refuses a type outside the shared vocabulary, content over the
size ceiling, and a MIME type that contradicts the attachment type, with an
error the caller sees: a dashboard upload is a 400, a Telegram file gets a
chat reply instead of a silent drop.
2026-10-25 18:05:34 +11:00
..
2026-10-19 10:17:05 +11:00
2026-10-19 10:17:05 +11:00
2026-10-17 17:16:20 +11:00
2026-10-16 23:55:58 +11:00
2026-10-05 22:08:01 +11:00
2026-10-25 16:21:01 +11:00
2026-10-12 03:30:46 +11:00
2026-10-09 09:57:56 +11:00
2026-10-16 23:55:58 +11:00
2026-10-12 03:24:04 +11:00
2026-10-03 21:54:14 +10:00
2026-10-03 21:54:14 +10:00
2026-10-19 03:30:47 +11:00
2026-10-16 02:41:24 +11:00
2026-10-16 02:41:24 +11:00
2026-10-25 18:05:34 +11:00
2026-10-17 17:00:55 +11:00
2026-10-16 23:55:58 +11:00
2026-10-03 21:54:14 +10:00
2026-10-12 03:24:04 +11:00
2026-10-11 04:10:53 +11:00
2026-10-09 13:07:29 +11:00
2026-10-03 21:54:14 +10:00
2026-10-17 10:07:45 +11:00
2026-10-10 11:14:36 +11:00
2026-10-12 03:24:04 +11:00
2026-10-11 03:54:49 +11:00
2026-10-25 16:21:01 +11:00
2026-10-09 09:57:57 +11:00
2026-10-17 09:32:39 +11:00
2026-10-13 16:41:35 +11:00
2026-10-13 16:41:35 +11:00
2026-10-06 00:48:45 +11:00
2026-10-17 09:01:41 +11:00
2026-10-03 21:54:14 +10:00
2026-10-13 16:00:37 +11:00
2026-10-03 21:54:14 +10:00
2026-10-19 02:05:45 +11:00
2026-10-24 23:45:20 +11:00
2026-10-25 16:45:34 +11:00
2026-10-03 21:54:14 +10:00
2026-10-05 21:03:08 +11:00
2026-10-14 02:57:32 +11:00
2026-10-14 02:57:32 +11:00
2026-10-12 03:20:00 +11:00
2026-10-25 17:31:16 +11:00
2026-10-24 02:25:25 +11:00
2026-10-24 02:17:53 +11:00
2026-10-10 11:05:58 +11:00
2026-10-17 08:42:08 +11:00
2026-10-18 00:24:42 +11:00
2026-10-11 03:46:40 +11:00
2026-10-10 22:09:05 +11:00
2026-10-19 10:17:05 +11:00
2026-10-19 10:17:05 +11:00
2026-10-16 02:41:24 +11:00
2026-10-17 09:32:39 +11:00
2026-10-16 03:57:08 +11:00
2026-10-19 10:17:05 +11:00
2026-10-03 21:47:46 +10:00
2026-10-10 20:20:07 +11:00
2026-10-11 04:01:46 +11:00
2026-10-10 11:14:36 +11:00
2026-10-19 10:17:05 +11:00
2026-10-25 16:21:01 +11:00
2026-10-10 20:20:07 +11:00
2026-10-24 17:06:25 +11:00
2026-07-29 03:23:57 +10:00