Skip to content

[Backend] Middleware: Implement Rate Limiting and Security Guards #819

Description

@ONEONUORA

Description

Protect the Axum server from DDoS, brute force, and abuse:

  • Implement rate limiting middleware (e.g. using tower-limit or Redis rate limiter).
  • Setup CORS parameters strictly.
  • Set secure HTTP headers (HSTS, CSP, X-Frame-Options) via tower-http.

Acceptance Criteria

  • Limit requests per IP address.
  • Reject requests exceeding limits with 429 Too Many Requests.
  • Tests to check that rate limits trigger under heavy mock traffic.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend componentenhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions