Skip to content

Add rate limiting to verifier endpoints #19

@OkeyAmy

Description

@OkeyAmy

Problem

drs-verify is an exposed service that does expensive verification work. Without admission control, an attacker can turn Ed25519 verification, DID resolution, and JSON parsing into a cheap CPU burn.

What to do

Add rate limiting to the verifier HTTP surface:

  • per-IP token bucket
  • global request ceiling
  • configurable limits through environment variables
  • 429 Too Many Requests with Retry-After

Acceptance criteria

  • /verify is rate-limited
  • limits are configurable through documented env vars
  • tests cover per-IP and global limiting
  • overloaded requests return 429 and Retry-After
  • docs describe sane defaults for pilot deployments

Out of scope

  • billing controls
  • semantic capability spend enforcement

Metadata

Metadata

Assignees

No one assigned

    Labels

    highHigh severityproductProduct wedge, adoption path, or demo worksecuritySecurity vulnerability or hardening

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions