amirim
f9e15a6b9b
feat(sub): opt-in per-client rate limit for the subscription server ( #6966 )
...
A loop probing subscription ids, or one misbehaving app, could turn the subscription server into a database load generator, and there was nothing to cap it.
Add a setting, off by default, that limits how many subscription fetches one client address may make per minute (60 by default, 1 to 1000); requests over it get 429 with Retry-After. Static assets stay outside the guard. The client address comes from the same resolution the panel's login limiter uses, now shared in internal/util/clientip, so trustedProxyCIDRs decides it in one place for the panel and the subscription server.
2026-11-24 20:51:32 +03:30
..
2026-09-27 03:04:50 +02:00
2026-11-06 18:53:43 +01:00
2026-09-14 12:10:25 +02:00
2026-06-24 15:25:41 +02:00
2026-11-02 15:10:24 +01:00
2026-10-24 07:10:30 +02:00
2026-10-24 07:10:30 +02:00
2026-10-24 04:21:04 +02:00
2026-11-02 15:10:24 +01:00
2026-10-24 04:21:04 +02:00
2026-10-24 04:21:04 +02:00
2026-11-23 23:34:11 +03:30
2026-11-24 03:30:02 +03:30
2026-10-31 08:56:24 +00:00
2026-10-31 08:56:24 +00:00
2026-11-24 14:40:23 +03:30
2026-11-24 20:51:32 +03:30
2026-09-26 21:13:39 +02:00
2026-09-26 21:13:39 +02:00
2026-07-21 15:52:33 +02:00
2026-11-01 10:26:54 +01:00
2026-11-13 00:24:13 +01:00
2026-09-12 11:12:13 +02:00
2026-10-31 08:53:27 +00:00
2026-11-01 00:57:32 +01:00
2026-10-31 08:53:27 +00:00
2026-10-24 04:21:04 +02:00
2026-09-26 22:00:09 +02:00
2026-11-01 10:30:26 +01:00
2026-11-01 10:30:26 +01:00
2026-09-26 21:13:46 +02:00
2026-11-24 20:51:32 +03:30
2026-09-26 22:03:20 +02:00
2026-09-26 22:03:20 +02:00
2026-11-24 03:30:02 +03:30
2026-10-24 05:13:44 +02:00
2026-10-24 05:13:44 +02:00
2026-10-24 20:07:55 +02:00
2026-11-24 03:30:02 +03:30
2026-11-01 14:00:29 +01:00
2026-11-24 03:30:02 +03:30
2026-11-01 00:54:59 +01:00
2026-10-14 14:42:00 +02:00
2026-11-13 00:24:13 +01:00
2026-11-01 00:57:32 +01:00
2026-09-27 01:06:17 +02:00
2026-09-27 01:06:17 +02:00
2026-11-24 15:06:56 +03:30
2026-09-13 11:51:56 +02:00
2026-09-13 11:51:56 +02:00
2026-09-13 11:51:56 +02:00
2026-10-24 04:21:04 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-10-31 09:00:06 +00:00
2026-10-31 09:00:06 +00:00
2026-11-23 23:37:19 +03:30
2026-11-24 03:48:41 +03:30
2026-10-24 06:36:49 +02:00
2026-09-12 11:12:13 +02:00
2026-11-24 03:30:02 +03:30
2026-10-11 18:02:12 +02:00
2026-09-27 03:04:50 +02:00
2026-07-23 23:57:29 +02:00
2026-09-15 21:13:29 +02:00
2026-09-15 21:13:29 +02:00
2026-09-15 21:13:29 +02:00
2026-11-24 20:51:32 +03:30
2026-11-24 20:51:32 +03:30
2026-10-31 14:28:18 +01:00
2026-10-31 14:28:18 +01:00
2026-10-31 09:00:06 +00:00
2026-10-31 09:00:06 +00:00
2026-11-01 01:15:28 +01:00
2026-11-01 01:15:28 +01:00
2026-11-01 00:45:21 +01:00
2026-10-24 06:36:49 +02:00
2026-09-27 03:04:50 +02:00
2026-10-24 04:21:04 +02:00
2026-10-22 17:10:11 +02:00
2026-09-27 03:04:50 +02:00
2026-09-08 15:36:57 +02:00
2026-09-27 03:04:50 +02:00
2026-06-15 19:31:57 +02:00
2026-10-03 00:31:52 +02:00
2026-09-27 03:04:50 +02:00
2026-10-25 15:54:42 +01:00
2026-10-03 02:56:02 +02:00
2026-09-30 15:03:16 +02:00
2026-09-27 03:04:50 +02:00
2026-11-23 23:37:19 +03:30
2026-11-24 15:06:56 +03:30
2026-11-02 15:27:49 +01:00
2026-10-24 22:45:46 +02:00
2026-11-24 03:51:32 +03:30
2026-09-13 19:58:27 +02:00
2026-11-24 03:48:41 +03:30
2026-09-10 17:05:54 +02:00
2026-11-01 13:20:27 +01:00
2026-08-15 15:22:11 +02:00
2026-09-10 17:05:54 +02:00
2026-10-24 04:21:04 +02:00
2026-09-27 03:04:50 +02:00
2026-11-24 20:51:32 +03:30
2026-10-24 04:21:04 +02:00
2026-06-29 14:32:23 +02:00
2026-06-29 14:32:23 +02:00
2026-09-13 19:58:10 +02:00
2026-10-11 08:21:08 +02:00