finding: Front/Api rate limiting overlaps with core/php-api #4
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-framework#4
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overlap
src/Core/Front/Api/Boot.phpregisters a general-purpose rate limiter for theapimiddleware group:core/php-api(host-uk/core-api) adds its ownRateLimitApimiddleware that applies API-key-specific rate limiting (src/Api/Middleware/RateLimitApi.php).What Differs
RateLimitApi: Per-API-key limit, configurable per key tierRisk
Both rate limiters apply to the same
apimiddleware group. A request may be rate-limited twice, or thecore/php-apimiddleware may silently replace the framework default without documentation.Recommendation
Keep separate but document the interaction. The framework’s limiter acts as a final backstop for unauthenticated/guest traffic.
core/php-api’s limiter handles authenticated API key traffic. Consider making the framework limiter configurable (or a no-op whencore/php-apiis installed) to avoid confusion.Closes #3