You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`WAIT0_CONFIG`|`/wait0.yaml`| Default value for `-config`|
62
62
|`WAIT0_INVALIDATE_DISK_CACHE_ON_START`|`true`| If `true`, LevelDB cache directory is cleared on process start |
63
63
|`WAIT0_SEND_REVALIDATE_MARKERS`|`true`| Controls sending revalidation marker headers during background revalidation |
64
+
|`WAIT0_DASHBOARD_USERNAME`| unset | Basic Auth username for `GET /wait0/dashboard` and dashboard API routes |
65
+
|`WAIT0_DASHBOARD_PASSWORD`| unset | Basic Auth password for `GET /wait0/dashboard` and dashboard API routes |
66
+
|`WAIT0_DASHBOARD_RATE_LIMIT_RPM`|`120`| Per-IP fixed-window rate limit for `/wait0/dashboard*` routes |
67
+
|`WAIT0_DASHBOARD_TRUST_PROXY_HEADERS`|`false`| If `true`, dashboard rate limiter client IP extraction trusts `X-Forwarded-For` (first hop) |
68
+
|`WAIT0_DASHBOARD_TRUSTED_PROXY_CIDRS`| unset | Comma-separated CIDRs of trusted proxy source IPs allowed to supply `X-Forwarded-For`|
64
69
65
70
## Configuration Reference (`wait0.yaml`)
66
71
@@ -106,6 +111,15 @@ For invalidation API, at least one token must have scope `invalidation:write` wh
106
111
107
112
For stats API (`GET /wait0`), tokens need scope `stats:read`.
108
113
114
+
For dashboard:
115
+
116
+
-`stats:read` token is required to enable dashboard routes.
117
+
-`invalidation:write` token is optional; without it, dashboard is stats-only and invalidate action is disabled.
118
+
- Built-in dashboard rate limiting exists (`WAIT0_DASHBOARD_RATE_LIMIT_RPM`), but for internet-exposed deployments reverse-proxy/WAF rate limiting is still mandatory.
119
+
- Pre-auth rate-limit key is `client IP` only.
120
+
- Post-auth rate-limit key is `(client IP, verified auth principal)`.
121
+
- With trusted proxies enabled, `client IP` uses `X-Forwarded-For` first hop only when `RemoteAddr` belongs to `WAIT0_DASHBOARD_TRUSTED_PROXY_CIDRS`.
0 commit comments