Skip to content

Harden rate limiting and audit trails for sensitive mutations #551

Description

@grantfox-oss

Prevent abuse of admin, auth, and payment-sensitive mutations by combining request throttling, contextual audit logs, and explicit anomaly handling.

  • Affected files: app/backend/src/app.module.ts, app/backend/src/config/rate-limit.config.ts, app/backend/src/auth/guards/custom-throttler.guard.ts, app/backend/src/auth/decorators/, app/backend/src/audit/audit.service.ts, app/backend/src/audit/audit.module.ts, app/backend/src/payments/payments.controller.ts, app/backend/src/marketplace/marketplace.controller.ts, app/backend/test/rbac.e2e-spec.ts
  • Acceptance criteria:
    • Sensitive mutation endpoints apply stricter per-user and per-IP throttling policies.
    • Abuse events record actor identity, route context, and request metadata in immutable audit logs.
    • Configurable limits and operator guidance are documented for production deployment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignbugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions