fix: harden web runtime and follow-up auth/db security fixes #21

Merged
sirily merged 4 commits from fix/api-runtime-security-controls into master 2026-03-11 16:28:56 +03:00
Owner

Summary

  • harden the web runtime with JSON body limits, stricter generation input validation, rate limiting, and trusted Origin/Referer checks for cookie-authenticated mutations
  • redact password-reset tokens from debug email transport logs and fail closed for unsupported email providers
  • scope generation idempotency keys per user with a Prisma migration and regression coverage

Testing

  • docker build -f infra/docker/web.Dockerfile -t nroxy-web-check .
  • docker run --rm --entrypoint sh nroxy-web-check -lc "pnpm --filter @nproxy/providers test && pnpm --filter @nproxy/db test && pnpm --filter @nproxy/web test"

Closes #14
Closes #7
Closes #8

## Summary - harden the web runtime with JSON body limits, stricter generation input validation, rate limiting, and trusted Origin/Referer checks for cookie-authenticated mutations - redact password-reset tokens from debug email transport logs and fail closed for unsupported email providers - scope generation idempotency keys per user with a Prisma migration and regression coverage ## Testing - docker build -f infra/docker/web.Dockerfile -t nroxy-web-check . - docker run --rm --entrypoint sh nroxy-web-check -lc "pnpm --filter @nproxy/providers test && pnpm --filter @nproxy/db test && pnpm --filter @nproxy/web test" Closes #14 Closes #7 Closes #8
sirily added 1 commit 2026-03-11 12:51:07 +03:00
sirily added 1 commit 2026-03-11 13:23:21 +03:00
sirily added 2 commits 2026-03-11 14:03:40 +03:00
sirily changed title from fix: harden web API runtime controls to fix: harden web runtime and follow-up auth/db security fixes 2026-03-11 14:18:19 +03:00
sirily merged commit 1a7250467e into master 2026-03-11 16:28:56 +03:00
sirily deleted branch fix/api-runtime-security-controls 2026-03-11 16:28:57 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sirily/nroxy#21