Skip to content

feat: add webhook response limits, CSRF docs, and IP-based auth blocking - #544

Merged
DeFiVC merged 4 commits into
ChainLearnOfficial:mainfrom
trustosaretin:fix/493-494-495-508-security-and-schema-fixes
Oct 1, 2026
Merged

DeFiVC merged 4 commits into
ChainLearnOfficial:mainfrom
trustosaretin:fix/493-494-495-508-security-and-schema-fixes

Conversation

@trustosaretin

Copy link
Copy Markdown
Contributor

Closes #493, Closes #494, Closes #495, Closes #508

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional or behavioral changes)
  • Performance improvement
  • Documentation update
  • Build / CI configuration change
  • Dependency update
  • Other:

Summary

This PR addresses four security and reliability issues: adds response size limits to webhook dispatch (#493), documents CSRF protection approach (#494), implements IP-based blocking for repeated auth failures (#495), and verifies schema.ts is clean of duplicate definitions (#508).

Motivation / Context

Closes #493, Closes #494, Closes #495, Closes #508

trustosaretin and others added 4 commits October 1, 2026 05:44
Create webhook dispatcher with 1MB response body limit using
AbortController for timeout and ArrayBuffer size checking. Protects
against malicious endpoints sending unbounded responses.

Refs ChainLearnOfficial#493
Document CSRF protection approach for cookie-based auth (currently
Bearer tokens are CSRF-safe). Add admin endpoints to view and clear
IP-based auth blocks.

Refs ChainLearnOfficial#494, Refs ChainLearnOfficial#495
Track failed auth attempts per IP in Redis. After 10 failures within
5 minutes, temporarily block the IP for 5 minutes. Blocked requests
return 429 with Retry-After header. Integrates with auth verify
endpoint via preHandler check.

Refs ChainLearnOfficial#495
@drips-wave

drips-wave Bot commented Oct 1, 2026

Copy link
Copy Markdown

@trustosaretin Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@DeFiVC
DeFiVC merged commit b6e036a into ChainLearnOfficial:main Oct 1, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants