Files
Дамян Минков ed4780e4c8 perf(prosody): faster JWT handling in luajwtjitsi, drop basexx (#18212)
* perf(prosody): use native base64 and reuse parsed keys in luajwtjitsi

When many clients connect at once, token verification was a visible part of
prosody's CPU. Decoding went through basexx, which is pure Lua, and every
verification parsed the public key PEM again, which takes milliseconds with
OpenSSL 3.

Decode and encode base64url with prosody's util.encodings, which is native
code, and keep the parsed keys. Decoding stays strict about the alphabet
and the length, and accepts padding. The base64url helpers are exported for
the plugins that read token segments themselves.

The specs get a pure Lua stand-in for util.encodings, as it is not there
outside prosody.

* chore(prosody): drop the basexx dependency

The token libraries now use prosody's util.encodings and the base64url
helpers of luajwtjitsi, so nothing needs basexx any more. Drop it from the
jitsi-meet-prosody dependencies, the plugin tests workflow and the
integration test image.

* fix(prosody): return an error for undecodable token segments

from_url64 returns nil and a message for input it cannot decode. Both values
went to cjson.safe.decode, which throws when it gets a second argument, so
parse_token threw instead of returning "Invalid header" or "Invalid body".
Only the decoded string is passed now.
2026-11-04 13:47:47 -06:00

59 lines
2.1 KiB
Plaintext

Source: jitsi-meet-web
Section: net
Priority: extra
Maintainer: Jitsi Team <[email protected]>
Uploaders: Emil Ivov <[email protected]>, Damian Minkov <[email protected]>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.6
Homepage: https://jitsi.org/meet
Package: jitsi-meet-web
Replaces: jitsi-meet (<= 1.0.1525-1)
Architecture: all
Depends: ${misc:Depends}
Description: WebRTC JavaScript video conferences
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
Videobridge to provide high quality, scalable video conferences.
.
It is a web interface to Jitsi Videobridge for audio and video
forwarding and relaying.
Package: jitsi-meet-web-config
Architecture: all
Pre-Depends: nginx | nginx-full | nginx-extras | openresty | apache2
Depends: openssl, curl
Description: Configuration for web serving of Jitsi Meet
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
Videobridge to provide high quality, scalable video conferences.
.
It is a web interface to Jitsi Videobridge for audio and video
forwarding and relaying, using a webserver Nginx or Apache2.
.
This package contains configuration for Nginx to be used with
Jitsi Meet.
Package: jitsi-meet-prosody
Architecture: all
Depends: openssl, prosody (>= 0.12.0) | prosody-trunk | prosody-0.12 | prosody-13.0, ca-certificates-java, lua-sec, lua-luaossl, lua-cjson
Replaces: jitsi-meet-tokens
Description: Prosody configuration for Jitsi Meet
Jitsi Meet is a WebRTC JavaScript application that uses Jitsi
Videobridge to provide high quality, scalable video conferences.
.
It is a web interface to Jitsi Videobridge for audio and video
forwarding and relaying.
.
This package contains configuration for Prosody to be used with
Jitsi Meet.
Package: jitsi-meet-tokens
Architecture: all
Depends: ${misc:Depends}, prosody-trunk | prosody-0.12 | prosody-13.0 | prosody (>= 0.12.0), jitsi-meet-prosody
Description: Prosody token authentication plugin for Jitsi Meet
Package: jitsi-meet-turnserver
Architecture: all
Pre-Depends: jitsi-meet-web-config
Depends: ${misc:Depends}, jitsi-meet-prosody, coturn, dnsutils
Description: Configures coturn to be used with Jitsi Meet