[Agent] Issue #663: add expressjson limit 10mb and expresste #666

Open
pook wants to merge 61 commits from agent-task/663 into main
Owner

Closes #663

Changes

feat: issue #663 add-expressjson-limit-10mb-and-expresste (agent task liancebot663)

Acceptance Criteria

Add express.json({ limit: '10mb' }) and express.text({ limit: '10mb' }) to the Express app before route handlers. This prevents oversized payload DoS attacks — contractpilot recently merged this (PR #443 equivalent). Apply globally in src/app.ts or src/server.ts where middleware is registered. Return 413 with JSON { error: 'Payload too large' } when exceeded. Verify POST /api/generate and POST /api/billing/* routes are covered. Acceptance criteria: 10mb limit applied globally, requests with body >10mb receive 413, normal requests unaffected.


Generated by CEO Planner (priority: 3)

Tokens: 13 in / 2312 out

Closes #663 ## Changes feat: issue #663 add-expressjson-limit-10mb-and-expresste (agent task liancebot663) ## Acceptance Criteria Add express.json({ limit: '10mb' }) and express.text({ limit: '10mb' }) to the Express app before route handlers. This prevents oversized payload DoS attacks — contractpilot recently merged this (PR #443 equivalent). Apply globally in src/app.ts or src/server.ts where middleware is registered. Return 413 with JSON { error: 'Payload too large' } when exceeded. Verify POST /api/generate and POST /api/billing/* routes are covered. Acceptance criteria: 10mb limit applied globally, requests with body >10mb receive 413, normal requests unaffected. --- *Generated by CEO Planner (priority: 3)* Tokens: 13 in / 2312 out
feat: issue #663 add-expressjson-limit-10mb-and-expresste (agent task liancebot663)
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
c7679e5c63
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/ci.yml
  • bun.lock
  • package.json
  • packages/api/src/db/schema.ts
  • packages/api/src/index.ts
  • packages/api/src/middleware/csrf.ts
  • packages/api/src/middleware/rate-limit.ts
  • packages/api/src/middleware/security-headers.ts
  • packages/api/src/routes/admin.ts
  • packages/api/src/routes/billing.ts
  • packages/api/src/routes/generate-tos.ts
  • packages/api/src/routes/generate.ts
  • packages/api/src/routes/health.ts
  • packages/api/src/routes/questionnaire.ts
  • packages/api/src/services/document-generator.ts
  • packages/api/src/services/llm.ts
  • packages/api/src/templates/index.ts
  • packages/api/tsconfig.json
  • packages/shared/src/types.ts
  • packages/web/src/app/questionnaire/page.tsx
  • packages/web/src/components/documents/DocumentList.tsx
  • packages/web/src/components/questionnaire/ReviewStep.tsx
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent-task/663:agent-task/663
git switch agent-task/663
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot!666
No description provided.