Jibri fails when sessions are pasword protected in Kubernetes

Hello Everyone,

I am running Jitsi with kubernetes .

Jibri is not recording when session are locked with password. i am not sure how to change the prosody configuration in docker. I am sending you module file I found in /prosody-plugins as below.

mod_muc_max_occupants.lua

– MUC Max Occupants
– Configuring muc_max_occupants will set a limit of the maximum number
– of participants that will be able to join in a room.
– Participants in muc_access_whitelist will not be counted for the
– max occupants value (values are jids like recorder@jitsi.meeet.example.com).
– This module is configured under the muc component that is used for jitsi-meet
local split_jid = require “util.jid”.split;
local st = require “util.stanza”;
local it = require “util.iterators”;

local whitelist = module:get_option_set(“muc_access_whitelist”);
local MAX_OCCUPANTS = module:get_option_number(“muc_max_occupants”, -1);

local function count_keys(t)
return it.count(it.keys(t));
end

local function check_for_max_occupants(event)
local room, origin, stanza = event.room, event.origin, event.stanza;

    local actor = stanza.attr.from;

local user, domain, res = split_jid(stanza.attr.from);

–no user object means no way to check for max occupants
if user == nil then
return
end
– If we’re a whitelisted user joining the room, don’t bother checking the max
– occupants.
if whitelist and whitelist:contains(domain) or whitelist:contains(user…’@’…domain) then
return;
end

    if room and not room._jid_nick[stanza.attr.from] then
            local count = count_keys(room._occupants);
            local slots = MAX_OCCUPANTS;

            -- If there is no whitelist, just check the count.
            if not whitelist and count >= MAX_OCCUPANTS then
                    module:log("info", "Attempt to enter a maxed out MUC");
                    origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
                    return true;
            end

            -- TODO: Are Prosody hooks atomic, or is this a race condition?
            -- For each person in the room that's not on the whitelist, subtract one
            -- from the count.
            for _, occupant in room:each_occupant() do
                    user, domain, res = split_jid(occupant.bare_jid);
                    if not whitelist:contains(domain) and not whitelist:contains(user..'@'..domain) then
                            slots = slots - 1
                    end
            end

            -- If the room is full (<0 slots left), error out.
            if slots <= 0 then
                    module:log("info", "Attempt to enter a maxed out MUC");
                    origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
                    return true;
            end
    end

end

if MAX_OCCUPANTS > 0 then
module:hook(“muc-occupant-pre-join”, check_for_max_occupants, 10);
end


Can I know if this file needs to edited and what should be the entries to be added?

below are the modules I found inside the container under /prosody-pluggins,

any other file need modifications? below are the modules available in my container

-rw-r–r-- 1 prosody root 1065 Feb 26 2017 muc_owner_allow_kick.patch
-rw-r–r-- 1 prosody root 2305 Jun 26 2017 mod_token_verification.lua
-rw-r–r-- 1 prosody root 592 Jul 17 2017 mod_poltergeist_component.lua
-rw-r–r-- 1 prosody root 728 Mar 24 2018 mod_presence_identity.lua
-rw-r–r-- 1 prosody root 1075 Jun 15 2018 mod_filter_iq_jibri.lua
-rw-r–r-- 1 prosody root 13526 Jun 30 2018 poltergeist.lib.lua
-rw-r–r-- 1 prosody root 4067 Jul 16 2018 mod_muc_call.lua
-rw-r–r-- 1 prosody root 306 Dec 28 2018 mod_speakerstats.lua
-rw-r–r-- 1 prosody root 1885 Dec 28 2018 ext_events.lib.lua
-rw-r–r-- 1 prosody root 7104 Sep 30 2019 mod_filter_iq_rayo.lua
-rw-r–r-- 1 prosody root 6413 Dec 10 2019 mod_muc_domain_mapper.lua
-rw-r–r-- 1 prosody root 2965 Jan 9 2020 mod_turncredentials.lua
-rw-r–r-- 1 prosody root 234 Jan 14 17:50 mod_conference_duration.lua
-rw-r–r-- 1 prosody root 6169 Jan 24 01:21 mod_muc_size.lua
-rw-r–r-- 1 prosody root 11106 Jan 24 01:21 mod_muc_poltergeist.lua
-rw-r–r-- 1 prosody root 3585 Mar 11 19:30 mod_websocket_smacks.patch
-rw-r–r-- 1 prosody root 27643 Mar 11 19:30 mod_smacks.lua
-rw-r–r-- 1 prosody root 2324 Apr 1 04:14 mod_muc_max_occupants.lua
-rw-r–r-- 1 prosody root 3277 Apr 8 23:40 mod_auth_token.lua
-rw-r–r-- 1 prosody root 2140 Apr 23 20:55 mod_conference_duration_component.lua
-rw-r–r-- 1 prosody root 1283 Apr 28 19:45 mod_muc_transcription_filter.lua
drwxr-xr-x 1 prosody root 4096 May 11 16:20 token
-rw-r–r-- 1 prosody root 6871 May 13 04:55 util.lib.lua
-rw-r–r-- 1 prosody root 8036 May 13 04:55 mod_speakerstats_component.lua
-rw-r–r-- 1 prosody root 1241 May 13 04:55 mod_muc_meeting_id.lua
-rw-r–r-- 1 prosody root 8674 May 13 04:55 mod_muc_lobby_rooms.lua
-rw-r–r-- 1 prosody root 555 May 13 04:55 mod_muc_allowners.lua

Regards
Swathi Ambujakshan