Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(prosody): block clients from setting recordingParams metadata (#17907)

bgrozevadafbdd682b1
diff --git a/resources/prosody-plugins/mod_room_metadata_component.lua b/resources/prosody-plugins/mod_room_metadata_component.lua
index 14049c8c43..2cfe9cd834 100644
--- a/resources/prosody-plugins/mod_room_metadata_component.lua
+++ b/resources/prosody-plugins/mod_room_metadata_component.lua
@@ -114,6 +114,7 @@ local blocked_metadata_keys = module:get_option_set('room_metadata_blocked_keys'
'moderators',
'participants',
'participantsSoftLimit',
+ 'recordingParams',
'services',
'transcriberType',
'transcription',
diff --git a/tests/prosody/mod_room_metadata_component_spec.js b/tests/prosody/mod_room_metadata_component_spec.js
index ce0444d05a..848313047a 100644
--- a/tests/prosody/mod_room_metadata_component_spec.js
+++ b/tests/prosody/mod_room_metadata_component_spec.js
@@ -199,7 +199,8 @@ describe('mod_room_metadata_component', () => {
for (const key of [
'allownersEnabled', 'asyncTranscription', 'conferencePresetsServiceEnabled',
'dialinEnabled', 'moderators', 'participants', 'participantsSoftLimit',
- 'services', 'transcriberType', 'transcription', 'visitorsEnabled'
+ 'recordingParams', 'services', 'transcriberType', 'transcription',
+ 'visitorsEnabled'
]) {
it(`moderator cannot set blocked key "${key}"`, () => assertKeyBlocked(key));
}