docs: sync new burst curve + gRPC endpoints#2662
Conversation
… new burst curve Pull the canonical bucket-to-threshold.csv (new rpm-v2 burst rps: 6x@100 -> 3x@15k -> 1.4x@80k) and bucket-to-endpoints.csv from cloud tools/ratelimit-csvs, and rebuild src/static/rate-limits.json. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the docs rate-limit reference data to match the latest deployed configuration by refreshing the burst (rps) curve derived from rpm and regenerating the endpoint/bucket mapping + exported JSON artifact.
Changes:
- Updated
bucket-to-threshold.csvrps values to reflect the new rpm-v2 burst curve. - Updated
bucket-to-endpoints.csvwith a new/csp-reportendpoint mapping. - Regenerated
src/static/rate-limits.jsonfrom the updated CSV inputs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/static/rate-limits.json | Regenerated static JSON export reflecting updated endpoints and thresholds. |
| src/lib/rate-limits/data/bucket-to-threshold.csv | Updated rps column across all tiers/envs per the new burst curve. |
| src/lib/rate-limits/data/bucket-to-endpoints.csv | Added /csp-report endpoint mapping for Kratos public high bucket. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📝 WalkthroughWalkthroughThis change updates the rate-limiting configuration file, revising ChangesRate limit configuration update
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
src/lib/rate-limits/data/bucket-to-threshold.csvwith the reworked rpm-v2 burst curve — an anchored ratio declining 6.0×@100 → 3.0×@15000 → 1.4×@80000 (10 rps floor ≤100 rpm; was flat ~2.4×). rps is snapped up (ceil) per rung so no rung dips below the target line, so a few low rungs sit just above 6× (e.g. 175rpm→18rps=6.17×); burst is monotonic non-decreasing.bucket-to-endpoints.csvfrom the canonical generator (tools/ratelimit-csvs): includes the Keto gRPC endpoints (ory.keto.relation_tuples.*Service/*) and the Talos REST admin endpoints (/v2alpha1/admin/...), plus/csp-report.src/static/rate-limits.json.Why
Keeps the docs rate-limit reference in sync with the deployed config; reflects the burst-curve change and enterprise-enforce rollout in ory-corp/cloud#12683. Supersedes #2627 (whose Talos/Keto endpoints are now produced canonically).