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-plugins): redact transcription HTTP header values from metadata log (#17258)
bgrozev8ff122720d83
diff --git a/resources/prosody-plugins/mod_room_metadata_component.lua b/resources/prosody-plugins/mod_room_metadata_component.luaindex 9e031cfd67..8cfb42ba12 100644--- a/resources/prosody-plugins/mod_room_metadata_component.lua+++ b/resources/prosody-plugins/mod_room_metadata_component.lua@@ -222,7 +222,20 @@ function process_main_muc_loaded(main_muc, host_module)local room = event.room;local json_msg = getMetadataJSON(room);- module:log('info', 'Metadata changed internally in room:%s,meeting_id:%s - broadcasting data:%s', room.jid, room._data.meetingId, json_msg);+ local log_json = json_msg;+ if room.jitsiMetadata and room.jitsiMetadata.transcription+ and room.jitsiMetadata.transcription.httpHeaders then+ local metadata_copy = table_shallow_copy(room.jitsiMetadata);+ local transcription_copy = table_shallow_copy(metadata_copy.transcription);+ local headers_redacted = {};+ for k, _ in pairs(transcription_copy.httpHeaders) do+ headers_redacted[k] = '***';+ end+ transcription_copy.httpHeaders = headers_redacted;+ metadata_copy.transcription = transcription_copy;+ log_json = getMetadataJSON(room, metadata_copy) or log_json;+ end+ module:log('info', 'Metadata changed internally in room:%s,meeting_id:%s - broadcasting data:%s', room.jid, room._data.meetingId, log_json);broadcastMetadata(room, json_msg);end);