veritas-kanban/server/src
Brad Groux e38685e918 feat(webhook): add /api/webhook/n8n endpoint for n8n email-directive + attachment ingest
- New route: POST /api/webhook/n8n (unauthenticated, before auth middleware)
- Accepts email-directive payloads from n8n Email Ingestion Engine
- Downloads base64-encoded attachments (docx/pdf/txt/csv/xlsx only)
- Saves to ~/clawd/inbox/attachments/ with timestamped names
- Writes sidecar .json metadata for each directive
- Validates against optional N8N_WEBHOOK_SECRET env var

Fixes: Post Directive Webhook was 404ing on every directive email
2026-03-15 01:17:24 -05:00
..
__tests__ fix: allow any localhost origin in dev mode (closes #190) (#194) 2026-03-09 07:42:20 -05:00
config revert: restore port 3001 across codebase, keep Express 5 path fix 2026-02-20 21:12:49 -06:00
lib fix(types): eliminate as-any casts and add type-safe query helpers 2026-03-05 22:52:14 -06:00
middleware fix(security): sanitize server error logging to prevent secret/token leakage 2026-03-05 22:34:23 -06:00
routes feat(webhook): add /api/webhook/n8n endpoint for n8n email-directive + attachment ingest 2026-03-15 01:17:24 -05:00
schemas fix(stability): Complete Zod 4 API migration (#162) 2026-03-01 13:52:49 -06:00
scripts fix(security): sanitize server error logging to prevent secret/token leakage 2026-03-05 22:34:23 -06:00
services fix(types): eliminate as-any casts and add type-safe query helpers 2026-03-05 22:52:14 -06:00
storage fix: guard updatedTask null check in task routes 2026-02-20 01:51:45 -06:00
types feat: merge tool policies + fresh sessions (#110, #111) 2026-02-09 19:29:48 -06:00
utils fix(security): Add SSRF protection for webhook URLs (#165) 2026-03-01 13:54:32 -06:00
index.ts feat(webhook): add /api/webhook/n8n endpoint for n8n email-directive + attachment ingest 2026-03-15 01:17:24 -05:00