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
feat(muc_auth_ban): add metrics and logs for error responses from access backend (#16853)
Aaron van Meerten471306220037
diff --git a/resources/prosody-plugins/mod_muc_auth_ban.lua b/resources/prosody-plugins/mod_muc_auth_ban.luaindex 4dac9d679e..9b5df8878b 100644--- a/resources/prosody-plugins/mod_muc_auth_ban.lua+++ b/resources/prosody-plugins/mod_muc_auth_ban.lua@@ -13,6 +13,7 @@ local inspect = require 'inspect';local ban_check_count = module:measure("muc_auth_ban_check", "rate")local ban_check_users_banned_count = module:measure("muc_auth_ban_users_banned", "rate")+local ban_check_error_count = module:measure("muc_auth_ban_check_error", "rate")-- we will cache banned tokens to avoid extra requests-- on destroying session, websocket retries 2 more times before giving up@@ -68,6 +69,10 @@ local function shouldAllow(session)cache:set(token, socket.gettime());end+ else+ ban_check_error_count();+ module:log("warn", "Error code:%s contacting url:%s response:%s request:%s content:%s",+ code, ACCESS_MANAGER_URL, response, request, content);endend