Skip to content

Protect and Rate Limit the Smart Contract Address Shortener API #10

@yusuftomilola

Description

@yusuftomilola

Secure the API by enforcing authentication and rate limiting to prevent abuse.


✅ Tasks

  • Add JWT authentication middleware to protect the POST /shorten endpoint
  • Implement rate limiting per user or IP address
  • Log API usage for analytics and monitoring
  • Write tests verifying auth enforcement and rate limiting

📌 Acceptance Criteria

  • ✅ Auth middleware restricts access to authorized users only
  • ✅ Rate limiting prevents excessive usage per user/IP
  • ✅ API logs capture relevant usage data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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