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
Summary\nIntroduce rate limiting for GA4 integration endpoints to prevent API quota exhaustion and runaway refresh requests.\n\n## Scope\n- Define rate limits per organisation/user for GA4 endpoints (e.g. account refresh, property fetch, GA4 data fetch).\n- Decide policy: burst vs sustained, per-endpoint vs shared bucket.\n- Add middleware or handler-level guard to enforce limits.\n- Log rate-limit events with request_id/organisation_id; return 429 with retry guidance.\n\n## Acceptance criteria\n- Requests exceeding the configured limit return HTTP 429 with a clear message.\n- Limits can be tuned via config/env.\n- GA4 endpoints remain unaffected under normal usage.\n\n## Notes\n- Consider a shared limiter for all GA4 endpoints to avoid per-endpoint misconfiguration.\n- Prefer Supabase-compatible approaches if possible.
Summary\nIntroduce rate limiting for GA4 integration endpoints to prevent API quota exhaustion and runaway refresh requests.\n\n## Scope\n- Define rate limits per organisation/user for GA4 endpoints (e.g. account refresh, property fetch, GA4 data fetch).\n- Decide policy: burst vs sustained, per-endpoint vs shared bucket.\n- Add middleware or handler-level guard to enforce limits.\n- Log rate-limit events with request_id/organisation_id; return 429 with retry guidance.\n\n## Acceptance criteria\n- Requests exceeding the configured limit return HTTP 429 with a clear message.\n- Limits can be tuned via config/env.\n- GA4 endpoints remain unaffected under normal usage.\n\n## Notes\n- Consider a shared limiter for all GA4 endpoints to avoid per-endpoint misconfiguration.\n- Prefer Supabase-compatible approaches if possible.