Skip to content

feat: rate-limit secrets endpoints and complete OpenAPI docs - #1335

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Nimatstar:feat/api-docs-and-secrets-throttle
Aug 26, 2026
Merged

feat: rate-limit secrets endpoints and complete OpenAPI docs#1335
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Nimatstar:feat/api-docs-and-secrets-throttle

Conversation

@Nimatstar

Copy link
Copy Markdown
Contributor

Summary

This PR hardens and documents several controller surfaces.

  • Secrets — applies the shared CustomThrottleGuard to every handler in secrets.controller.ts (strictest preset on secret rotation) and wires ThrottlerModule in SecretsModule. Exceeding a limit now returns 429 with a structured message. Limits are taken from the documented, configurable THROTTLE presets rather than hardcoded magic numbers, and normal usage is unaffected.
  • Dashboard — adds typed response DTOs (dashboard/dto/dashboard-response.dto.ts) and per-endpoint @ApiResponse (success + relevant 4xx, plus class-level 401/403) so the generated Swagger models render accurately.
  • A/B testing — adds @ApiOperation, @ApiResponse and @ApiParam to every handler that was previously undocumented, keeping the existing schema examples.
  • Permissions — fills in the missing 400/401/409 response annotations.

Testing

  • pnpm run typecheck
  • pnpm run lint:ci
  • pnpm run build

Issues

Closes #1325
Closes #1319
Closes #1318
Closes #1314

- secrets: apply CustomThrottleGuard with THROTTLE presets (strict on
  rotation) and wire ThrottlerModule in SecretsModule; document 429
- dashboard: add typed response DTOs and per-endpoint @ApiResponse/4xx
- ab-testing: add @ApiOperation/@ApiResponse/@ApiParam to all handlers
- permissions: fill in missing 400/401/409 response docs
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@Nimatstar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit f44a0a9 into rinafcode:main Aug 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants