Skip to content

feat(recording): take the wiring and the shared secret from the environment - #26660

Merged
TiagoJacobs merged 2 commits into
bigbluebutton:v4.1.x-developfrom
tibroc:simplify/recording-env
Nov 24, 2026
Merged

TiagoJacobs merged 2 commits into
bigbluebutton:v4.1.x-developfrom
tibroc:simplify/recording-env

Conversation

@tibroc

@tibroc tibroc commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

The recording scripts can now take the Redis address, the shared-notes endpoint, the playback host and the API secret from environment variables.

Change

  • One place for the secret (first commit). The callbacks read the secret from bbb-web's properties in three places with two different rules. A helper now reads bbb-web's defaults and then /etc/bigbluebutton/bbb-web.properties, as bbb-web does. The analytics callback and the callback URL policy already read both files; the recording-ready callback read only the /etc file.
  • Env overrides (second commit). REDIS_HOST, REDIS_PORT, PLAYBACK_HOST, BN_NOTES_ENDPOINT and SHARED_SECRET, if set and not empty, win over bigbluebutton.yml, /etc/bigbluebutton/recording/recording.yml and bbb-web's properties.
  • The Redis and secret names are the ones bbb-apps-akka and bbb-webhooks already read. PLAYBACK_HOST and BN_NOTES_ENDPOINT are the yml keys in upper case, since no other component has these values.
  • Each variable is noted next to its key in bigbluebutton.yml.

Why

Containers can pass the addresses of the other services and the secret through the environment, so an admin's recording.yml holds only their own changes.

Package installs

  • With none of the variables set, the scripts read the same values as before.
  • One difference: if /etc/bigbluebutton/bbb-web.properties has no securitySalt, the recording-ready callback now uses the one from bbb-web's defaults file (written by after-install), as the analytics callback already did, instead of having no secret. On a normal install both files hold the same secret, because bbb-conf --setsecret writes it to the /etc file.

Checked

  • The four cases (nothing set, override file only, env only, both) in the recording image, with the old and the new library: same values with nothing set; env wins when set.
  • rake test: the same result before and after (59 runs, one failure that is already on v4.1.x-develop, edl/test_video.rb:26).
  • A recording through to playback with the values from the environment. The recording-ready callback signature was valid with the secret from the environment, and invalid with a different one.

The recording-ready and analytics callbacks each read securitySalt from
bbb-web's properties, and the callback URL policy reads the same files.
Read them with one helper, defaults first, then
/etc/bigbluebutton/bbb-web.properties, as bbb-web and bbb-conf do.

The recording-ready callback read only /etc/bigbluebutton/bbb-web.properties.
bbb-conf writes securitySalt there, so the secret it signs with is unchanged.
…onment

REDIS_HOST, REDIS_PORT, PLAYBACK_HOST and BN_NOTES_ENDPOINT win over
bigbluebutton.yml and /etc/bigbluebutton/recording/recording.yml, and
SHARED_SECRET wins over bbb-web's securitySalt for the callbacks. The
redis and secret names are the ones bbb-apps-akka and bbb-webhooks read.

With none of them set, the scripts read the same values as before. A
container deployment can pass the addresses of the other services and
the secret as environment, and an admin's recording.yml holds only
their own changes.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 4

  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5fcc0830-c720-4f1f-8edf-1668f6e9071d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@antobinary antobinary added this to the Release 4.1 milestone Nov 24, 2026
@TiagoJacobs
TiagoJacobs merged commit dd5d7d4 into bigbluebutton:v4.1.x-develop Nov 24, 2026
53 of 54 checks passed
@tibroc
tibroc deleted the simplify/recording-env branch November 26, 2026 10:25
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.

3 participants