Skip to content

appraisal-api: rate limiting and request size limits on x402 endpoint #154

Description

@karagozemin

Summary

Add basic rate limiting and a request body size cap to services/appraisal-api to protect the x402-gated endpoint from abuse.

Motivation

The appraisal endpoint performs paid on-chain settlement. Unbounded request volume or oversized payloads are a denial-of-service and cost vector.

Acceptance criteria

  • Configurable per-IP / per-key rate limit with a 429 response.
  • Max request body size returning 413 when exceeded.
  • Tests covering allowed, throttled, and oversized requests.
  • Config documented in the service README.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Stellar WaveIssue proposed for the Drips Stellar Wave programarea: appraisalx402-gated appraisal API servicecomplexity: mediumExpected medium implementation complexityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions