From 445121f61ce264898c68f56859f07d5bc19518f9 Mon Sep 17 00:00:00 2001 From: Prajeeth H Date: Sun, 23 Aug 2026 03:27:52 +0530 Subject: [PATCH] docs: DEFAULT_RATE_LIMIT_PER_DAY unset is unlimited (#11031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merged with the ENVIRONMENT.md hunk dropped: the tip already documents unset=unlimited for DEFAULT_RATE_LIMIT_PER_DAY via #11022 (eba58cc8), so the docs conflict resolved to the tip text. What lands is the .env.example comment correction, verified against src/shared/utils/apiKeyPolicy.ts::buildDefaultRateLimits — unset/empty → [] (unlimited), malformed → legacy 1000/day windows, explicit 0 → unlimited. Conflict resolution validated on the combined board (env-doc-sync gate green). Thank you @Prajeeth-12! --- .env.example | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 1ec9d2a9cb..84bde3f025 100644 --- a/.env.example +++ b/.env.example @@ -376,9 +376,8 @@ ALLOW_API_KEY_REVEAL=false # NO_LOG_API_KEY_IDS=key_abc123,key_def456 # Fallback per-day request budget applied to API keys whose `rate_limits` -# column is null. Default (unset/empty/malformed) preserves the legacy -# 1000/day, 5000/week, 20000/month windows so existing deployments do not -# silently lose rate limiting on upgrade. +# column is null. Default (unset/empty) is unlimited (no implicit caps). +# Malformed values preserve the legacy 1000/day, 5000/week, 20000/month windows. # Set explicitly to "0" to opt out entirely (unlimited fallback). Any # positive integer N enables N/day, 5N/week, 20N/month. # Used by: src/shared/utils/apiKeyPolicy.ts — checkRateLimit() fallback.