Commit Graph

361 Commits

Author SHA1 Message Date
Ajay Ramachandran
e7f3753077 Merge pull request #602 from mini-bomba/request-validator
Create an engine for rule-based request validation
2025-04-25 17:37:25 -04:00
mini-bomba
4db4e9458e hook up extra functions to the request validator 2025-04-25 21:52:39 +02:00
mini-bomba
f7e5394a18 create a request validator engine 2025-04-25 21:11:30 +02:00
Ajay
161db6df0c Don't error if failing to parse vanced ua 2025-04-25 13:51:46 -04:00
Ajay
0d005c23bf Add another validity filter 2025-04-25 12:55:44 -04:00
Ajay
39f8dc6c22 Fix revanced ua 2025-04-21 20:14:43 -04:00
Ajay
08ba5c21b1 Fix validity check 2025-04-21 19:39:46 -04:00
Ajay
cfd61dc8dd Validity check 2025-04-21 19:26:42 -04:00
Ajay
707b36d161 Fix user agent parser lower casing 2025-04-21 11:10:47 -04:00
Ajay
b849328fae More logging 2025-04-21 10:53:49 -04:00
Ajay
ed5a397a30 Improve permission check 2025-04-15 02:01:41 -04:00
Ajay
300642fd4f Fix innertube failure handling 2025-04-12 00:44:10 -04:00
Ajay
46580322fc Fix dearrow old submitter check 2025-04-11 02:44:19 -04:00
Ajay
318152dac6 ua 2025-04-11 02:41:17 -04:00
Ajay
8111d34b30 Fix dearrow threshold not configurable 2025-04-10 16:51:46 -04:00
Ajay
ac78dee210 Fix undefined error 2025-04-10 14:38:08 -04:00
Ajay
d18a4a13f2 Check dearrow vote history for new submitters 2025-04-10 12:47:32 -04:00
Ajay
8d40d61efc Allow max users without a submitter threshold 2025-04-10 02:35:22 -04:00
Ajay
74f6224091 Add new user limit per 5 mins 2025-04-10 02:26:09 -04:00
Ajay
8cd2138989 Use config for old submitter check 2025-04-08 16:50:04 -04:00
Ajay
f67244663e Use alias for getting server config 2025-04-08 15:56:23 -04:00
Ajay
00064d5a7c Fix config fetching 2025-04-08 15:46:14 -04:00
Ajay
ac26aed21c Add endpoints for config setting 2025-04-08 15:18:32 -04:00
Ajay
82af8f200b Add better ua parsing 2025-04-08 14:21:24 -04:00
Ajay
3817d7fdba Better submission error message 2025-04-08 13:21:01 -04:00
Ajay
34a6a83e44 Change dearrow permission requirements 2025-04-07 19:28:52 -04:00
Ajay
0967373cb2 Rename func 2025-04-07 00:57:48 -04:00
Ajay
550339db41 Add permission check in more places 2025-04-07 00:36:01 -04:00
Ajay
b69f050b44 Old submitter only 2025-04-07 00:29:53 -04:00
Ajay
4fe7cebcb3 Add caching for 5 length skip skip segment query 2025-03-12 02:45:59 -04:00
Ajay
07435b9af1 Add casual mode endpoint 2025-02-05 03:38:55 -05:00
Ajay
a37a552b17 Fix video labels keys not clearing properly 2025-01-18 03:32:55 -05:00
Ajay
be9d97ae2b Add option to trim UUIDs in skip segments endpoint 2025-01-18 02:09:46 -05:00
Ajay
80b1019783 Allow video labels cashing with prefix of 4 2025-01-18 00:22:17 -05:00
Ajay
e2a9976cd0 Add hasStartSegment to video label 2025-01-17 23:30:32 -05:00
Ajay
01c306287a Fix axios error handling 2024-11-06 21:23:15 -05:00
Ajay
826d49ba1f Add support for floatie proxy 2024-11-04 15:04:43 -05:00
Ajay
8ba68e1b4c One less call when dealing with lru cache for ttl result and ensure reset keys cleared 2024-09-14 18:02:22 -04:00
Ajay
17059fdbe6 One less call when dealing with lru cache 2024-09-14 17:52:50 -04:00
Ajay
6e5f4f7610 Fix active requests list not getting deleted 2024-09-14 17:33:17 -04:00
Ajay
dc5158257e Fix errors when postgres returns undefined and trying to save to redis 2024-09-13 14:36:52 -04:00
Ajay
7678be1e24 Add max redis response time for reads 2024-09-13 04:06:50 -04:00
Ajay
090e185765 Add support for poToken and visitor data
Fixes api requests

https://github.com/iv-org/invidious/pull/4789
2024-08-12 00:33:11 -04:00
Ajay
214946897d Hardcode nn-block reputation 2024-08-11 13:49:46 -04:00
Ajay
d75b9ddcaa Show failure reason in webook 2024-07-24 13:42:40 -04:00
Ajay
2fb3d05055 private video? 2024-07-24 13:06:19 -04:00
Ajay
495b8031e3 Add better logging for failed reputation call 2024-06-30 09:40:25 -04:00
Ajay
f841d8173b Fix ttl cache key not properly cleared 2024-04-22 00:53:09 -04:00
Ajay
0f97ce4a49 Make redis readiness check recoverable 2024-04-19 21:20:40 -04:00
Ajay
af7d8428ab Improve ready check 2024-04-19 20:05:52 -04:00