Skip to content

[3.0 port] fix(rap): hide every camera of a locked user in recordings- #25889 - #25911

Merged
antobinary merged 2 commits into
bigbluebutton:v3.0.x-developfrom
antobinary:fix-rap-webcam-lock-all-cameras-30
Oct 1, 2026
Merged

antobinary merged 2 commits into
bigbluebutton:v3.0.x-developfrom
antobinary:fix-rap-webcam-lock-all-cameras-30

Conversation

@antobinary

Copy link
Copy Markdown
Member

Backport of #25889 to v3.0.x-develop

With "webcams only for moderator", create_webcam_edl moved only one
camera per user between the active and inactive lists, since
extract_filename_from_userId returns a single filename. A viewer's
other cameras still showed in the recording while the lock was on,
and the same happened when a user was demoted or promoted under the
lock.

Move all of the user's cameras instead, matching them by the same
get_id_from_filename used by the start and stop handlers.

(cherry picked from commit 0870d87)
Nothing reads the user_id set on the webcams of an EDL entry, which is
why the role change and lock entries could tag them with the wrong user
without anyone noticing. Remove it instead of fixing it.

(cherry picked from commit 92b91e0)
@antobinary antobinary added this to the Release 3.0 milestone Oct 1, 2026
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 09034cb1-5937-4a42-ab96-ac6e2a081115

📥 Commits

Reviewing files that changed from the base of the PR and between af4a54f and 368676f.

📒 Files selected for processing (2)
  • record-and-playback/core/lib/recordandplayback/generators/events.rb
  • record-and-playback/core/test/recordandplayback/generators/test_events.rb

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.


Walkthrough

Webcam lock and role-change processing now moves all matching videos for a user between active and inactive lists. Role changes add an EDL entry only when at least one video moves. Webcam EDL area entries no longer include user_id. A test checks camera visibility across lock and role changes.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 36867

The change updates visibility for all cameras during lock and role changes without breaking recording consumers. It is mergeable subject to normal checks.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 36867

The change improves camera privacy during lock and role changes. No introduced security flaw was established, but production identity conventions, event ordering, and archive integrity remain incompletely verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The direct affected assets are webcam selections in generated recordings for each processed meeting, including recordings produced by the video and screenshare pipelines. Filtering changes output visibility; it does not remove the underlying archived camera files. No new cross-service privilege or tenant-access path was identified in the inspected callers.

Security Findings and Attack Paths

  • inferred — A pre-existing ordering limitation remains: if a camera starts before its participant join and a lock occurs between them, lock processing cannot find that participant in its known-user list, and the later join does not reconcile camera visibility. Production reachability of this ordering is unproven. The base-to-head comparison does not show this limitation being introduced or worsened by the PR.

Trust Boundaries and Controls

  • observed — The inspected generator accepts archived roles, lock values, and camera filenames as inputs to visibility enforcement. Upstream authorization of those events, archive integrity, configuration write permissions, and production processor invocation controls were not established. The changed test is not a production entrypoint, and library visibility alone does not establish remote attacker reachability.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies this as a v3.0 backport that fixes recording behavior so all cameras of a locked user are hidden.
Description check ✅ Passed The description accurately states that the pull request backports the related change to the v3.0.x development branch.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary
antobinary merged commit adfd4f8 into bigbluebutton:v3.0.x-develop Oct 1, 2026
81 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants