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
Add a second shared secret to allow rotation if necessary. (#14378)
bgrozev2a1f4728737e
diff --git a/resources/prosody-plugins/mod_auth_jitsi-shared-secret.lua b/resources/prosody-plugins/mod_auth_jitsi-shared-secret.luaindex babaf02ced..65d0fc73b1 100644--- a/resources/prosody-plugins/mod_auth_jitsi-shared-secret.lua+++ b/resources/prosody-plugins/mod_auth_jitsi-shared-secret.lua@@ -6,6 +6,7 @@ local saslprep = require "util.encodings".stringprep.saslprep;local secure_equals = require "util.hashes".equals;local shared_secret = module:get_option_string('shared_secret');+local shared_secret_prev = module:get_option_string('shared_secret_prev');if shared_secret == nil thenmodule:log('error', 'No shared_secret specified. No secret to operate on!');return;@@ -24,6 +25,9 @@ function provider.test_password(username, password)if secure_equals(password, saslprep(shared_secret)) thenreturn true;+ elseif (shared_secret_prev ~= nil and secure_equals(password, saslprep(shared_secret_prev))) then+ module:log("info", "Accepting login using previous shared secret, username=%s", username);+ return true;elsereturn nil, "Auth failed. Invalid username or password.";end