Commit Graph

66 Commits

Author SHA1 Message Date
wukko
0ae0bbfa1f
api/core: use new tunnel rate limit env 2025-05-14 19:07:11 +06:00
wukko
c5acb45557
api/core: mark request as session when bearer token is used
and pass it to match() for future consumption
2025-05-06 16:16:29 +06:00
wukko
06bc51db54
merge: 10.9 from main
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-04-02 21:48:58 +06:00
wukko
f70f88bc4c
api/core: customizable session rate limit params
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-03-31 22:32:21 +06:00
jj
1f768df4ec
api: bind session tokens to ip hash 2025-03-30 17:08:34 +00:00
wukko
0b29121c53
merge: changes from main 2025-03-27 20:02:46 +06:00
lostdusty
0a7cf7580c
api/core: remove non-printable unicode character in boot message (#1182)
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2025-03-21 22:43:53 +06:00
wukko
b6cd0ad727
api: automatically pull youtube session tokens from a session server
if provided, cobalt will pull poToken & visitor_data from an instance of invidious' youtube-trusted-session-generator or its counterpart
2025-03-19 19:54:20 +06:00
lostdusty
fa267ae54b
api/core: return 429 http status for rate-limit (#1066)
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run service tests / test service functionality (push) Waiting to run
Run service tests / test service: ${{ matrix.service }} (push) Blocked by required conditions
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Co-authored-by: jj <log@riseup.net>
2025-02-11 14:42:31 +06:00
jj
c07940bfa4
api/itunnel: pass itunnel object by reference 2025-01-20 15:46:03 +00:00
jj
45e7b69937
api/tunnel: add Content-Disposition to exposed headers
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
2024-12-25 20:05:18 +00:00
jj
fec07d0e10
api: add cors headers for tunnels 2024-12-16 17:45:02 +00:00
jj
bc597c817f
api: move itunnel handlers to separate file 2024-12-16 10:38:31 +00:00
jj
f06aa65801
api: always create separate server for itunnels 2024-12-16 10:19:15 +00:00
jj
e7c2872e40
api/stream: rename getInternalStream to getInternalTunnel 2024-12-16 10:16:48 +00:00
jj
382873dc11
api/core: fix main cluster being unable to handle itunnels 2024-11-02 09:59:48 +00:00
jj
2317da5ba5
api: add support for redis to ratelimiter cache 2024-11-01 13:26:18 +00:00
jj
d466f8a4af
api: upgrade express-rate-limit to v7, reuse key generator 2024-11-01 12:54:16 +00:00
jj
66cb8d360d
api: move hmac secrets to single file 2024-11-01 12:16:53 +00:00
jj
40d6a02b61
api: cluster support
still missing synchronization for some structures
2024-10-31 22:59:06 +00:00
jj
132255b004
api/stream/manage: use cobalt Store for stream cache 2024-10-31 22:33:32 +00:00
wukko
cdfc91844d
api/schema: update youtubeDubLang to accept all valid language codes 2024-10-28 19:56:18 +06:00
jj
7dc0121031
api: defer file loads until api is running
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run service tests / test service functionality (push) Waiting to run
Run service tests / test service: ${{ matrix.service }} (push) Blocked by required conditions
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
2024-10-27 18:12:59 +00:00
jj
5a5a65b373
api/cookies: trigger cookie load from api entrypoint 2024-10-27 18:10:57 +00:00
jj
d55dddea2e
core/api: normalize bearer authorization 2024-10-20 10:05:34 +00:00
dumbmoron
9cc6fd13fa
api/core: skip turnstile verification if user authed with api key 2024-10-04 17:37:57 +00:00
dumbmoron
81818f8741
api/core: implement authentication with api keys 2024-10-04 16:50:55 +00:00
dumbmoron
dcd33803c1
api/core: generate JWT rate limiting key in auth handler 2024-10-04 17:03:57 +00:00
dumbmoron
418602ca87
api/core: add rate limiter for session 2024-10-04 17:02:00 +00:00
dumbmoron
38fcee4a50
api/core: rename tunnel limiter, move to endpoint 2024-10-04 17:00:58 +00:00
dumbmoron
f2248d4e9a
api/core: move api limiter after authentication 2024-10-04 16:59:53 +00:00
dumbmoron
034f7ebe4a
api/core: extract rate limit response to function 2024-10-04 16:58:15 +00:00
wukko
2a42ed38b6
repo: merge new commits from main into develop 2024-09-23 20:27:32 +06:00
wukko
0cc18b488c
api/core: return public turnstile sitekey in server info 2024-09-17 22:40:07 +06:00
dumbmoron
29f967a3ec
api: fix accept & content-type validation when not using authentication 2024-09-17 15:37:21 +00:00
dumbmoron
57c9836f56
api/core: move ratelimiters before authentication handler 2024-09-09 14:21:19 +00:00
wukko
3317726afe
api/core: rename req and next args to indicate that they're unused 2024-09-09 19:44:40 +06:00
wukko
0aae3fe7f0
api/core: rename err argument to indicate that it's unused 2024-09-09 19:41:44 +06:00
wukko
97866fb306
api/core: update the emoticon in startup message 2024-09-05 07:53:55 +06:00
wukko
fff1c6c7a6
web & api: rename stream to tunnel
- updated the endpoint to /tunnel
- updated status to tunnel
- fixed one incorrectly named error in web
2024-09-05 00:26:48 +06:00
wukko
8cee4e58c5
api/match: accept object as single argument
hi im what i do
2024-09-02 08:27:31 +06:00
wukko
d9925f2233
api/core: move friendly name map to server info 2024-09-01 16:02:06 +06:00
dumbmoron
2f63f6bab7
api/proxy: add support for proxying range requests 2024-08-31 07:15:20 +00:00
wukko
7f8204bc0c
api/core: handle all express errors, not just path parsing (wtf) 2024-08-30 14:25:46 +06:00
wukko
7041d61d80
api/core: fix link parsing error handling 2024-08-24 16:13:42 +06:00
wukko
70264f3691
api/core: update server info
- cache server info as string
- serve a list of services & duration limit in server info
2024-08-23 00:33:52 +06:00
wukko
7a557a97c3
api: move service disabling to DISABLED_SERVICES env 2024-08-23 00:16:26 +06:00
wukko
a21c9e7632
api/core/api: clean up imports 2024-08-22 23:04:11 +06:00
wukko
1f3509db07
api: update error codes in api core functions 2024-08-19 21:51:45 +06:00
wukko
974b98f0ac
api/core: fix & clean up auth middleware 2024-08-17 00:59:59 +06:00