Commit Graph

85 Commits

Author SHA1 Message Date
Ingo Oppermann
92decc7111 Use global buffer pool where feasible 2024-10-14 10:51:35 +02:00
Ingo Oppermann
719449a4c8 Implement own byte buffer type 2024-10-10 16:35:39 +02:00
Ingo Oppermann
a581f1dbc2 User buffer pool where appropriate 2024-10-10 15:09:50 +02:00
Ingo Oppermann
91874e6caf Extend http status metrics by method and path 2024-10-10 12:18:22 +02:00
Ingo Oppermann
05e4118e0c Use buffer pool 2024-10-09 16:29:55 +02:00
Ingo Oppermann
f97943b275 Move content encoding in the beginning of the middleware chain, update dependencies 2024-10-09 14:25:42 +02:00
Ingo Oppermann
4a999cf11a Remove zstd from default compressions 2024-09-27 12:27:25 +02:00
Ingo Oppermann
54b1fe8e86 Dump casbin, replace with own policy enforcer 2024-07-23 15:54:09 +02:00
Ingo Oppermann
4dab7b8e6c Extend benchmark with different size 2024-04-29 12:34:07 +02:00
Ingo Oppermann
e935678b39 Enable only gzip and zstd by default 2024-04-25 13:21:15 +02:00
Ingo Oppermann
ac2a20094f Add brotli and zstd content-encoding 2024-04-25 12:50:17 +02:00
Ingo Oppermann
495f9b2d35 Disable zstd middleware 2024-04-25 10:06:20 +02:00
Ingo Oppermann
718bd3eb07 Add zstd middleware 2024-04-25 10:00:10 +02:00
Ingo Oppermann
03da97217b Use faster JSON and gzip packages 2024-04-24 15:42:11 +02:00
Ingo Oppermann
38fa6159e3 Make the HTTP logging middleware less chatty 2024-04-17 21:33:14 +02:00
Ingo Oppermann
5ba18569e9 Use referrer host for remote 2024-03-11 14:47:09 +01:00
Ingo Oppermann
910794d831 Ignore range request on m3u8 rewrite
If a m3u8 is requested with a range request and gets rewritten, e.g.
adding the sessionid, the announced content-range may not correspond
to the content-length. In this cases the range request is ignored
and the full m3u8 will be returned.
2023-12-06 14:30:42 +01:00
Ingo Oppermann
0457d16391 Fix return proper error message instead of empty m3u8 2023-11-16 11:39:00 +01:00
Ingo Oppermann
728e4c6ab4 Use unnamed return value 2023-11-16 11:37:03 +01:00
Ingo Oppermann
5b81e6e23f Add metrics collector for HTTP status codes 2023-09-29 17:18:59 +02:00
Ingo Oppermann
ad2a50df6f Separate resource type and resource for IAM policies 2023-09-18 17:11:09 +02:00
Ingo Oppermann
17ffa2b700 Upgrade github.com/golang-jwt/jwt to v5 2023-09-04 17:45:01 +02:00
Ingo Oppermann
eea1e2e517 Give reason why session validation failed 2023-07-23 16:14:09 +02:00
Ingo Oppermann
4b79576340 Fix proper check of allowed remote values in session token 2023-07-21 15:40:19 +02:00
Ingo Oppermann
a8fbdd288f Fix missing ? in path in session log 2023-07-21 15:39:41 +02:00
Ingo Oppermann
fff7f986a0 Merge HTTP and HLS middleware into session middleware 2023-06-28 10:41:29 +02:00
Ingo Oppermann
6c6fa33903 Add experimental unified session middleware 2023-06-27 22:17:58 +02:00
Ingo Oppermann
57c1e50d60 Don't collect sessions coming from other nodes in the cluster 2023-06-27 21:11:29 +02:00
Ingo Oppermann
4560b1a6ca Add referrer check with glob pattern and . (dot) as separator 2023-06-27 11:03:21 +02:00
Ingo Oppermann
20b3f2af5e Add test for encodec username in basic auth 2023-06-27 11:02:14 +02:00
Ingo Oppermann
ad53f3ab68 Fix missing unescape of basic auth username 2023-06-27 10:15:49 +02:00
Ingo Oppermann
b8a975b7c7 Add logging HTTP requests as single session 2023-06-21 16:46:35 +02:00
Ingo Oppermann
a9b92e7f9a Fix re-emitting Content-Length header if file doesn't exceed the minimum length 2023-06-21 12:04:36 +02:00
Ingo Oppermann
cfc5650e1a Improve error messages 2023-06-14 13:57:13 +02:00
Ingo Oppermann
50e943a075 WIP: add session token, missing: writing sessions to log 2023-06-14 12:30:50 +02:00
Ingo Oppermann
8829b8fff0 Respect domain in cluster DB, allow metadata in process config for cluster 2023-06-05 21:19:11 +02:00
Ingo Oppermann
1689f3f7db Fix logging of api.Err
When a handler returns an api.Err the logging middleware logged a
200 OK, however the correct code and response has been sent to the
client.
2023-06-05 14:52:27 +02:00
Ingo Oppermann
a79cfa0c77 Merge branch 'clusteriam' into vod 2023-06-01 15:16:54 +02:00
Ingo Oppermann
401156e4d2 Enforce policies 2023-05-31 16:39:43 +02:00
Ingo Oppermann
2364aa9d41 Fix deadlock in node, list processes per node 2023-05-31 09:36:53 +02:00
Ingo Oppermann
89cc42c4b9 Add cluster IAM, update dependencies 2023-05-30 21:24:12 +02:00
Ingo Oppermann
5e164d8268 Merge branch 'dev' into vod 2023-05-26 21:25:06 +02:00
Ingo Oppermann
496722c88a Fix 509 return code if non-existing stream is requested 2023-05-26 21:24:42 +02:00
Ingo Oppermann
e9034aa171 Create identity and access packages for IAM 2023-05-25 16:16:29 +02:00
Ingo Oppermann
710d5c595f Merge branch 'iam' into clusteriam 2023-05-25 11:05:26 +02:00
Ingo Oppermann
10df8d51b1 Simplify IAM user config, only create users and policies if not previously run 2023-05-24 22:28:24 +02:00
Ingo Oppermann
3c89cbb831 Create identities for basic auth access to mount points 2023-05-24 14:29:14 +02:00
Ingo Oppermann
6f831fd190 Reduce IAM API to only user and policies 2023-05-17 18:19:23 +02:00
Ingo Oppermann
ead6e64442 Merge branch 'dev' into iam 2023-05-15 21:17:23 +02:00
Ingo Oppermann
adf43eaf01 Merge branch 'dev' into cluster 2023-05-12 12:59:30 +02:00