703 Commits
Author SHA1 Message Date
Chocobozzz 0108fcb93f Store audit logs in database
Allow to centralize audit logs, even if horizontal scalability is
enabled
2026-10-27 11:16:03 +01:00
Chocobozzz ad17731e3f More robust SSRF protection 2026-10-27 11:15:49 +01:00
Chocobozzz 9772f16a55 Bumped to version v8.3.2 2026-10-26 16:53:27 +01:00
Chocobozzz 750ecd5ce2 Upgrade vulnerable dep 2026-10-26 16:53:19 +01:00
Chocobozzz 4d049a4897 Bump sharp and block not supported formats 2026-10-26 16:53:07 +01:00
Chocobozzz f780e64289 Introduce postgresql secondaries support
Only for a few routes, that consumes postgresql CPU

Re-implement sequelize connection routing mechanism, to support:
 * Replica lag monitoring (to not select replicas that are too far
   behind the primary)
 * Be opt-in instead of opt-out (primary is used by default, a context
   must be marked to use replicas)
 * Handle "read-you-writes" mechanism (ensure that reads after writes
   see the latest data, using the user ID to track recent writes)
2026-10-16 13:47:57 +02:00
Chocobozzz 42cb7718bf Improve performance
Try to bypass Redis when we can to lower performance penalty of
horizontal scalability added recently
2026-10-05 13:43:08 +02:00
Chocobozzz 46cbbd487c Best effort for keeping order in AP
Lock objects when receiving activities, and use a global concurrency of
1 when sending them
2026-10-05 13:43:08 +02:00
Chocobozzz 41effc40ce Stage heavy uploads in object storage
Required step so secondary can handle file upload endpoints and handle
controllers that manage files
2026-10-05 13:41:13 +02:00
Chocobozzz aeace7e4ca Add more supported files to object storage
actor images, thumbnails, storyboards, torrents and uploads
2026-10-05 13:41:12 +02:00
Chocobozzz 55bf92772c Share runtime state between PeerTube processes
* OAuth tokens LRU cache broadcasts its invalidations in Redis
 * socket.io uses the Redis adapter, so a notification is delivered to a
   user connected to any process
 * rate limit counters are stored in Redis instead of in memory
   Security sensitive limiters fail the request when Redis is unavailable

This commit is part of bigger work to add horizontal scaling support to
PeerTube.
2026-10-05 13:39:49 +02:00
Chocobozzz 3324876a0b Bumped to version v8.3.1 2026-09-28 13:35:25 +02:00
Chocobozzz 6a1588e3c3 Prevent SSRF 2026-09-22 13:55:40 +02:00
Chocobozzz 81bf3179bb Bumped to version v8.3.0 2026-09-15 10:37:12 +02:00
Chocobozzz dd52dacaa1 Keep pnpm 10 for now 2026-09-14 16:14:21 +02:00
Chocobozzz 10af6733b3 Fix vuln dependencies 2026-09-14 16:07:39 +02:00
Chocobozzz a722406ed6 Bumped to version v8.3.0-rc.1 2026-08-25 15:58:08 +02:00
Chocobozzz 80a1c0b7ff Move away chokidar for files watching
We don't use chokidar because it re-lists the *entire* watched directory and
stats every one of its entries on each filesystem event: a live directory with a
long DVR window holds thousands of segments, so watching it costs a lot of CPU
for every segment the transcoding process generates
2026-08-24 16:22:54 +02:00
Chocobozzz cb63bdea58 Use upstream p2p media loader package 2026-08-19 16:28:37 +02:00
Chocobozzz f917ca20df Fix upload error 2026-08-18 13:57:05 +02:00
Chocobozzz 5abe1b45fc Fix @types/markdown-it dependency 2026-08-11 09:49:09 +02:00
Chocobozzz 9ae519495a Update dependencies 2026-08-11 09:07:41 +02:00
Chocobozzz 5cef0b48ca Add logger suport to uploadx 2026-08-10 13:41:25 +02:00
Chocobozzz 4e8ca8401c Migrate to typescript 7 for server 2026-08-10 13:11:29 +02:00
Chocobozzz 0e5fffad55 Upgrade server dependencies 2026-08-10 09:35:56 +02:00
Chocobozzz f593914ba3 Remove unused dependency 2026-08-06 15:34:44 +02:00
Sourav SarkarandChocobozzz 417ba51fa8 Add opt-in email notification for successful logins with new-device and location detection (#7737)
* Add opt-in email notification for successful logins with new-device and location detection

* default email notif on + correction

* ci tests fix update

* Prune user login devices table

* Don't send a notification for the first login

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-08-05 14:00:29 +02:00
Chocobozzz 7b6fd7e8bd Migrate to last p2p-media-loader version 2026-08-05 11:55:31 +02:00
Chocobozzz 6f2541a543 Merge branch 'release/v8.2.x' into develop 2026-08-04 09:30:36 +02:00
Chocobozzz 30eb3cc4f8 Bumped to version v8.2.4 2026-08-04 09:22:14 +02:00
Chocobozzz ef731fa478 Merge branch 'release/v8.2.x' into develop 2026-07-20 15:29:45 +02:00
Chocobozzz 7fd40b9609 Bumped to version v8.2.3 2026-07-20 14:03:21 +02:00
Chocobozzz 8228008d82 Update feed package 2026-07-17 15:35:28 +02:00
Chocobozzz 0688ee7ee4 Merge branch 'release/v8.2.x' into develop 2026-07-13 16:35:33 +02:00
Chocobozzz e2c90e29b9 Fix licence field for package.json 2026-07-13 14:01:17 +02:00
Chocobozzz 3aa7ce442d Merge branch 'release/v8.2.x' into develop 2026-07-02 09:39:09 +02:00
Chocobozzz 296e638114 Bumped to version v8.2.2 2026-07-02 09:08:15 +02:00
Chocobozzz 755ec60566 Update server dependencies 2026-06-22 11:28:35 +02:00
cinereal 1cc0418a5f generate json schema
Uses the .yaml files to generate a JSON-Schema
describing the possible configuration options,
and add CI checks to keep this from going stale
and validate the YAML files against the schema.

Assisted-by: claude-code: claude-opus-4-7 (planning) + claude-sonnet-4-7 (execution)

Signed-off-by: cinereal <[email protected]>
2026-06-22 11:00:40 +02:00
Chocobozzz 081009835d Fix deprecation 2026-06-17 14:35:55 +02:00
Chocobozzz 23f7ab4b23 Bumped to version v8.2.1 2026-06-12 15:59:49 +02:00
Chocobozzz 449f01e463 Bumped to version v8.2.0 2026-05-27 09:48:29 +02:00
Chocobozzz feb244ffd8 Update dependencies 2026-05-27 08:56:12 +02:00
Chocobozzz d92f43143b Try to install wasm version of sharp
If CPU is not supported by prebuilt binaries
2026-05-26 16:37:21 +02:00
Chocobozzz d331c12c76 Bumped to version v8.2.0-rc.3 2026-05-23 20:23:15 +02:00
Chocobozzz 371d8d8063 Bumped to version v8.2.0-rc.2 2026-05-20 16:03:32 +02:00
Chocobozzz 969b978d33 Merge branch 'release/v8.1.x' into develop 2026-05-20 15:44:14 +02:00
Chocobozzz 7b7951c6e2 Bumped to version v8.1.6 2026-05-20 15:30:33 +02:00
Chocobozzz 750994f33e Update sanitize-html dependency 2026-05-20 15:28:50 +02:00
Chocobozzz ec8f87a072 Bumped to version v8.2.0-rc.1 2026-05-12 10:15:51 +02:00