Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(prosody): do not write JWT tokens to the logs
Emrah Eryilmaz1f779103cd13
diff --git a/resources/prosody-plugins/mod_muc_auth_ban.lua b/resources/prosody-plugins/mod_muc_auth_ban.luaindex f21beff98d..6132d37678 100644--- a/resources/prosody-plugins/mod_muc_auth_ban.lua+++ b/resources/prosody-plugins/mod_muc_auth_ban.lua@@ -54,7 +54,7 @@ local function shouldAllow(session)-- TODO: do this only for enabled customersban_check_count();- local function cb(content, code, response, request)+ local function cb(content, code)if code == 200 thenlocal r = json.decode(content)@@ -76,9 +76,8 @@ local function shouldAllow(session)endelseban_check_error_count();- module:log("warn", "Error code:%s contacting url:%s content:%s room:%s tenant:%s response:%s request:%s",- code, ACCESS_MANAGER_URL, session.jitsi_web_query_room, session.jitsi_web_query_prefix,- inspect(response), inspect(request), content);+ module:log("warn", "Error code:%s contacting url:%s content:%s room:%s tenant:%s",+ code, ACCESS_MANAGER_URL, content, session.jitsi_web_query_room, session.jitsi_web_query_prefix);endenddiff --git a/resources/prosody-plugins/mod_muc_size.lua b/resources/prosody-plugins/mod_muc_size.luaindex cc22954af8..1bbdcd4f6b 100644--- a/resources/prosody-plugins/mod_muc_size.lua+++ b/resources/prosody-plugins/mod_muc_size.lua@@ -126,8 +126,9 @@ function verify_token(token, room_address)endif not token_util:verify_room(session, room_address) then- log("warn", "Token %s not allowed to join: %s",- tostring(token), tostring(room_address));+ log("warn", "Token not allowed to join: %s token room: %s token sub: %s",+ tostring(room_address), tostring(session.jitsi_meet_room),+ tostring(session.jitsi_meet_domain));return false;enddiff --git a/resources/prosody-plugins/mod_token_verification.lua b/resources/prosody-plugins/mod_token_verification.luaindex bdf3a870f1..28908ed9d1 100644--- a/resources/prosody-plugins/mod_token_verification.lua+++ b/resources/prosody-plugins/mod_token_verification.lua@@ -97,8 +97,9 @@ local function verify_user(session, stanza)reason = 'Room and token mismatched';end- module:log('error', 'Token %s not allowed to join: %s err: %s reason: %s',- tostring(session.auth_token), tostring(stanza.attr.to), err, reason);+ module:log('error', 'User %s not allowed to join: %s token room: %s token sub: %s err: %s reason: %s',+ user_jid, tostring(stanza.attr.to), tostring(session.jitsi_meet_room),+ tostring(session.jitsi_meet_domain), err, reason);local response = st.error_reply(stanza, 'cancel', 'not-allowed', reason);if err then