security: bound Zod inputs, add SSE per-user cap and tRPC body limit (#51, PR #59)
CI / Architecture Guardrails (push) Successful in 3m38s
CI / Assistant Split Regression (push) Successful in 4m40s
CI / Lint (push) Successful in 5m17s
CI / Typecheck (push) Successful in 5m46s
CI / Build (push) Successful in 7m1s
CI / Unit Tests (push) Failing after 9m41s
CI / Release Images (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / E2E Tests (push) Has started running
CI / Architecture Guardrails (push) Successful in 3m38s
CI / Assistant Split Regression (push) Successful in 4m40s
CI / Lint (push) Successful in 5m17s
CI / Typecheck (push) Successful in 5m46s
CI / Build (push) Successful in 7m1s
CI / Unit Tests (push) Failing after 9m41s
CI / Release Images (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / E2E Tests (push) Has started running
Closes #51 (ESLint rule + conventions doc remain as follow-up). Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com> Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
This commit was merged in pull request #59.
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const auditLogListInputSchema = z.object({
|
||||
entityType: z.string().optional(),
|
||||
entityId: z.string().optional(),
|
||||
userId: z.string().optional(),
|
||||
action: z.string().optional(),
|
||||
source: z.string().optional(),
|
||||
entityType: z.string().max(64).optional(),
|
||||
entityId: z.string().max(64).optional(),
|
||||
userId: z.string().max(64).optional(),
|
||||
action: z.string().max(32).optional(),
|
||||
source: z.string().max(32).optional(),
|
||||
startDate: z.date().optional(),
|
||||
endDate: z.date().optional(),
|
||||
search: z.string().optional(),
|
||||
search: z.string().max(200).optional(),
|
||||
limit: z.number().min(1).max(100).default(50),
|
||||
cursor: z.string().optional(),
|
||||
cursor: z.string().max(64).optional(),
|
||||
});
|
||||
|
||||
export const auditLogByEntityInputSchema = z.object({
|
||||
entityType: z.string(),
|
||||
entityId: z.string(),
|
||||
entityType: z.string().max(64),
|
||||
entityId: z.string().max(64),
|
||||
limit: z.number().min(1).max(200).default(50),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user