Repository navigation
build: use yq-go (mikefarah) for YAML editing instead of Noble's yq; intro of bbb-yq-go package - #25398
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThe pull request replaces the legacy Estimated code review effort: 3 (Moderate) | ~30 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Note, at time of writing this, |
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/docs/administration/customize.md (1)
492-528: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winPreserve initialization for empty override files. These standalone
yq-go e -isnippets assume/etc/bigbluebutton/bbb-html5.ymlalready contains valid YAML; if it’s empty, there’s nothing to update. Add a{}bootstrap step or state that the file must exist with valid content first.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/docs/administration/customize.md` around lines 492 - 528, Update the documented yq-go override commands to handle an empty `/etc/bigbluebutton/bbb-html5.yml` by adding a `{}` initialization step before the first update, or explicitly state that the file must already contain valid YAML; ensure this applies to the standalone commands in the disable settings and camera profile sections.
🧹 Nitpick comments (1)
bigbluebutton-config/bin/bbb-record (1)
60-60: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
--prettyPrintis unnecessary for scalar value extraction.
get_yml_valueextracts a single property value.--prettyPrintonly affects formatting of complex types (maps/sequences) and is a no-op for scalars. If any caller ever extracts a complex value, the output would differ from the oldyq -rraw format. Consider dropping the flag unless you specifically need pretty-printed YAML output for nested values.♻️ Proposed cleanup
get_yml_value(){ - yq-go e ".\"$1\"" "$BBB_YML" --prettyPrint + yq-go e ".\"$1\"" "$BBB_YML" }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@bigbluebutton-config/bin/bbb-record` at line 60, Remove the unnecessary --prettyPrint option from the yq invocation in get_yml_value, preserving raw scalar extraction behavior and avoiding altered formatting if a complex value is requested.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/actions/install-bbb/action.yml:
- Line 158: Revert the temporary installer branch in the wget command to the
stable v4.0.x-release reference, ensuring the install action fetches
bbb-install.sh from the intended release branch rather than
v4.0.x-release-yq-go.
In `@bigbluebutton-config/bin/bbb-conf`:
- Around line 150-173: WEBRTC_SFU_CONFIG is loaded unconditionally, leaving it
empty when the override file is absent. Update the WEBRTC_SFU_CONFIG block to
check WEBRTC_SFU_ETC_CONFIG with an if [ -f ... ] guard, merge both files with
yq-go eval-all when present, and otherwise load WEBRTC_SFU_DEFAULT_CONFIG with
yq-go e, matching the existing WEBRTC_RECORDER_CONFIG, HTML5_CONFIG, and
LIVEKIT_SERVER_CONFIG patterns.
In `@build/packages-template/bbb-livekit/after-install.sh`:
- Around line 24-25: Correct the yq path assignment in the API_SECRET
initialization by changing the expression from `.keys.["$API_KEY"]` to
`.keys["$API_KEY"]`, preserving the existing API_KEY lookup and fallback
behavior.
In `@docs/docs/administration/customize.md`:
- Line 1535: Remove the leading “$” shell prompt marker from the command-only
code block in the documentation, leaving the yq-go command itself unchanged.
In `@docs/docs/development/dev-guide.md`:
- Line 292: Initialize /etc/bigbluebutton/bbb-html5.yml before the yq-go
in-place update, creating the file when absent or empty, then run the existing
yq-go command to set public.kurento.wsUrl.
---
Outside diff comments:
In `@docs/docs/administration/customize.md`:
- Around line 492-528: Update the documented yq-go override commands to handle
an empty `/etc/bigbluebutton/bbb-html5.yml` by adding a `{}` initialization step
before the first update, or explicitly state that the file must already contain
valid YAML; ensure this applies to the standalone commands in the disable
settings and camera profile sections.
---
Nitpick comments:
In `@bigbluebutton-config/bin/bbb-record`:
- Line 60: Remove the unnecessary --prettyPrint option from the yq invocation in
get_yml_value, preserving raw scalar extraction behavior and avoiding altered
formatting if a complex value is requested.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: b868f1d0-24da-4454-8acd-8e136cc8b4b1
📒 Files selected for processing (27)
.github/actions/install-bbb/action.ymlbigbluebutton-config/bin/apply-lib.shbigbluebutton-config/bin/bbb-confbigbluebutton-config/bin/bbb-recordbuild/packages-template/bbb-config/after-install.shbuild/packages-template/bbb-config/opts-noble.shbuild/packages-template/bbb-html5/after-install.shbuild/packages-template/bbb-html5/opts-noble.shbuild/packages-template/bbb-livekit/after-install.shbuild/packages-template/bbb-livekit/livekit-server.servicebuild/packages-template/bbb-livekit/livekit-sip.servicebuild/packages-template/bbb-livekit/opts-noble.shbuild/packages-template/bbb-playback-podcast/after-install.shbuild/packages-template/bbb-playback-podcast/opts-noble.shbuild/packages-template/bbb-playback-presentation/opts-noble.shbuild/packages-template/bbb-playback-video/opts-noble.shbuild/packages-template/bbb-record-core/after-install.shbuild/packages-template/bbb-record-core/opts-noble.shbuild/packages-template/bbb-webhooks/after-install.shbuild/packages-template/bbb-webhooks/opts-noble.shbuild/packages-template/bbb-webrtc-recorder/after-install.shbuild/packages-template/bbb-webrtc-recorder/opts-noble.shbuild/packages-template/bbb-webrtc-sfu/after-install.shbuild/packages-template/bbb-webrtc-sfu/opts-noble.shdocs/docs/administration/customize.mddocs/docs/development/dev-guide.mddocs/docs/support/troubleshooting.md
| WEBRTC_RECORDER_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_RECORDER_DEFAULT_CONFIG $WEBRTC_RECORDER_ETC_CONFIG 2> /dev/null) | ||
| else | ||
| WEBRTC_RECORDER_CONFIG=$(yq -y '.' $WEBRTC_RECORDER_DEFAULT_CONFIG 2> /dev/null) | ||
| WEBRTC_RECORDER_CONFIG=$(yq-go e $WEBRTC_RECORDER_DEFAULT_CONFIG 2> /dev/null) | ||
| fi | ||
|
|
||
| HTML5_DEFAULT_CONFIG=/usr/share/bigbluebutton/html5-client/private/config/settings.yml | ||
| HTML5_ETC_CONFIG=/etc/bigbluebutton/bbb-html5.yml | ||
| if [ -f $HTML5_ETC_CONFIG ]; then | ||
| HTML5_CONFIG=$(yq -y -s 'reduce .[] as $item ({}; . * $item)' $HTML5_DEFAULT_CONFIG $HTML5_ETC_CONFIG 2> /dev/null) | ||
| HTML5_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $HTML5_DEFAULT_CONFIG $HTML5_ETC_CONFIG 2> /dev/null) | ||
| else | ||
| HTML5_CONFIG=$(yq -y '.' $HTML5_DEFAULT_CONFIG 2> /dev/null) | ||
| HTML5_CONFIG=$(yq-go e $HTML5_DEFAULT_CONFIG 2> /dev/null) | ||
| fi | ||
|
|
||
| mkdir -p /etc/bigbluebutton/bbb-webrtc-sfu | ||
| WEBRTC_SFU_DEFAULT_CONFIG=/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml | ||
| WEBRTC_SFU_ETC_CONFIG=/etc/bigbluebutton/bbb-webrtc-sfu/production.yml | ||
| WEBRTC_SFU_CONFIG=$(yq -y -s 'reduce .[] as $item ({}; . * $item)' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null) | ||
| WEBRTC_SFU_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null) | ||
|
|
||
| LIVEKIT_SERVER_DEFAULT_CONFIG=/usr/share/livekit-server/livekit.yaml | ||
| LIVEKIT_SERVER_ETC_CONFIG=/etc/bigbluebutton/livekit.yaml | ||
| if [ -f $LIVEKIT_SERVER_ETC_CONFIG ]; then | ||
| LIVEKIT_SERVER_CONFIG=$(yq -y -s 'reduce .[] as $item ({}; . * $item)' $LIVEKIT_SERVER_DEFAULT_CONFIG $LIVEKIT_SERVER_ETC_CONFIG 2> /dev/null) | ||
| LIVEKIT_SERVER_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $LIVEKIT_SERVER_DEFAULT_CONFIG $LIVEKIT_SERVER_ETC_CONFIG 2> /dev/null) | ||
| else | ||
| LIVEKIT_SERVER_CONFIG=$(yq -y '.' $LIVEKIT_SERVER_DEFAULT_CONFIG 2> /dev/null) | ||
| LIVEKIT_SERVER_CONFIG=$(yq-go e $LIVEKIT_SERVER_DEFAULT_CONFIG 2> /dev/null) |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Add file-existence guard for WEBRTC_SFU_CONFIG loading.
Line 166 unconditionally runs yq-go eval-all with both $WEBRTC_SFU_DEFAULT_CONFIG and $WEBRTC_SFU_ETC_CONFIG, but the other three configs (WEBRTC_RECORDER at lines 148-153, HTML5 at lines 157-161, LIVEKIT_SERVER at lines 170-173) all guard with if [ -f $ETC_CONFIG ] and fall back to yq-go e $DEFAULT_CONFIG when the override file is absent. If /etc/bigbluebutton/bbb-webrtc-sfu/production.yml doesn't exist (e.g., fresh install before bbb-conf --setip), eval-all will fail, 2>/dev/null suppresses the error, and WEBRTC_SFU_CONFIG is left empty — causing blank SFU values in --check/--status output and a spurious SIP IP mismatch warning at lines 1100-1113.
🔧 Proposed fix: add the same guard used by the other configs
mkdir -p /etc/bigbluebutton/bbb-webrtc-sfu
WEBRTC_SFU_DEFAULT_CONFIG=/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml
WEBRTC_SFU_ETC_CONFIG=/etc/bigbluebutton/bbb-webrtc-sfu/production.yml
-WEBRTC_SFU_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null)
+if [ -f $WEBRTC_SFU_ETC_CONFIG ]; then
+ WEBRTC_SFU_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null)
+else
+ WEBRTC_SFU_CONFIG=$(yq-go e $WEBRTC_SFU_DEFAULT_CONFIG 2> /dev/null)
+fi📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| WEBRTC_RECORDER_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_RECORDER_DEFAULT_CONFIG $WEBRTC_RECORDER_ETC_CONFIG 2> /dev/null) | |
| else | |
| WEBRTC_RECORDER_CONFIG=$(yq -y '.' $WEBRTC_RECORDER_DEFAULT_CONFIG 2> /dev/null) | |
| WEBRTC_RECORDER_CONFIG=$(yq-go e $WEBRTC_RECORDER_DEFAULT_CONFIG 2> /dev/null) | |
| fi | |
| HTML5_DEFAULT_CONFIG=/usr/share/bigbluebutton/html5-client/private/config/settings.yml | |
| HTML5_ETC_CONFIG=/etc/bigbluebutton/bbb-html5.yml | |
| if [ -f $HTML5_ETC_CONFIG ]; then | |
| HTML5_CONFIG=$(yq -y -s 'reduce .[] as $item ({}; . * $item)' $HTML5_DEFAULT_CONFIG $HTML5_ETC_CONFIG 2> /dev/null) | |
| HTML5_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $HTML5_DEFAULT_CONFIG $HTML5_ETC_CONFIG 2> /dev/null) | |
| else | |
| HTML5_CONFIG=$(yq -y '.' $HTML5_DEFAULT_CONFIG 2> /dev/null) | |
| HTML5_CONFIG=$(yq-go e $HTML5_DEFAULT_CONFIG 2> /dev/null) | |
| fi | |
| mkdir -p /etc/bigbluebutton/bbb-webrtc-sfu | |
| WEBRTC_SFU_DEFAULT_CONFIG=/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml | |
| WEBRTC_SFU_ETC_CONFIG=/etc/bigbluebutton/bbb-webrtc-sfu/production.yml | |
| WEBRTC_SFU_CONFIG=$(yq -y -s 'reduce .[] as $item ({}; . * $item)' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null) | |
| WEBRTC_SFU_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null) | |
| LIVEKIT_SERVER_DEFAULT_CONFIG=/usr/share/livekit-server/livekit.yaml | |
| LIVEKIT_SERVER_ETC_CONFIG=/etc/bigbluebutton/livekit.yaml | |
| if [ -f $LIVEKIT_SERVER_ETC_CONFIG ]; then | |
| LIVEKIT_SERVER_CONFIG=$(yq -y -s 'reduce .[] as $item ({}; . * $item)' $LIVEKIT_SERVER_DEFAULT_CONFIG $LIVEKIT_SERVER_ETC_CONFIG 2> /dev/null) | |
| LIVEKIT_SERVER_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $LIVEKIT_SERVER_DEFAULT_CONFIG $LIVEKIT_SERVER_ETC_CONFIG 2> /dev/null) | |
| else | |
| LIVEKIT_SERVER_CONFIG=$(yq -y '.' $LIVEKIT_SERVER_DEFAULT_CONFIG 2> /dev/null) | |
| LIVEKIT_SERVER_CONFIG=$(yq-go e $LIVEKIT_SERVER_DEFAULT_CONFIG 2> /dev/null) | |
| WEBRTC_RECORDER_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_RECORDER_DEFAULT_CONFIG $WEBRTC_RECORDER_ETC_CONFIG 2> /dev/null) | |
| else | |
| WEBRTC_RECORDER_CONFIG=$(yq-go e $WEBRTC_RECORDER_DEFAULT_CONFIG 2> /dev/null) | |
| fi | |
| HTML5_DEFAULT_CONFIG=/usr/share/bigbluebutton/html5-client/private/config/settings.yml | |
| HTML5_ETC_CONFIG=/etc/bigbluebutton/bbb-html5.yml | |
| if [ -f $HTML5_ETC_CONFIG ]; then | |
| HTML5_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $HTML5_DEFAULT_CONFIG $HTML5_ETC_CONFIG 2> /dev/null) | |
| else | |
| HTML5_CONFIG=$(yq-go e $HTML5_DEFAULT_CONFIG 2> /dev/null) | |
| fi | |
| mkdir -p /etc/bigbluebutton/bbb-webrtc-sfu | |
| WEBRTC_SFU_DEFAULT_CONFIG=/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml | |
| WEBRTC_SFU_ETC_CONFIG=/etc/bigbluebutton/bbb-webrtc-sfu/production.yml | |
| if [ -f $WEBRTC_SFU_ETC_CONFIG ]; then | |
| WEBRTC_SFU_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $WEBRTC_SFU_DEFAULT_CONFIG $WEBRTC_SFU_ETC_CONFIG 2> /dev/null) | |
| else | |
| WEBRTC_SFU_CONFIG=$(yq-go e $WEBRTC_SFU_DEFAULT_CONFIG 2> /dev/null) | |
| fi | |
| LIVEKIT_SERVER_DEFAULT_CONFIG=/usr/share/livekit-server/livekit.yaml | |
| LIVEKIT_SERVER_ETC_CONFIG=/etc/bigbluebutton/livekit.yaml | |
| if [ -f $LIVEKIT_SERVER_ETC_CONFIG ]; then | |
| LIVEKIT_SERVER_CONFIG=$(yq-go eval-all '. as $item ireduce ({}; . * $item )' $LIVEKIT_SERVER_DEFAULT_CONFIG $LIVEKIT_SERVER_ETC_CONFIG 2> /dev/null) | |
| else | |
| LIVEKIT_SERVER_CONFIG=$(yq-go e $LIVEKIT_SERVER_DEFAULT_CONFIG 2> /dev/null) |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@bigbluebutton-config/bin/bbb-conf` around lines 150 - 173, WEBRTC_SFU_CONFIG
is loaded unconditionally, leaving it empty when the override file is absent.
Update the WEBRTC_SFU_CONFIG block to check WEBRTC_SFU_ETC_CONFIG with an if [
-f ... ] guard, merge both files with yq-go eval-all when present, and otherwise
load WEBRTC_SFU_DEFAULT_CONFIG with yq-go e, matching the existing
WEBRTC_RECORDER_CONFIG, HTML5_CONFIG, and LIVEKIT_SERVER_CONFIG patterns.
| API_KEY=${API_KEY:-$(yq-go e '.webhook.api_key' /etc/bigbluebutton/livekit.yaml)} | ||
| API_SECRET=${API_SECRET:-$(yq-go e ".keys.[\"$API_KEY\"]" /etc/bigbluebutton/livekit.yaml)} |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify whether mikefarah yq-go accepts .keys.["key"] dot-before-bracket syntax.
# Requires yq-go to be installed. If not available, check yq-go version and docs.
# Check if yq-go is available
if command -v yq-go &>/dev/null; then
yq-go --version
# Create a test YAML file
cat > /tmp/test_keys.yaml << 'EOF'
keys:
abc123: def456
webhook:
api_key: abc123
EOF
echo "Testing .keys[\"abc123\"] (no dot before bracket):"
yq-go e '.keys["abc123"]' /tmp/test_keys.yaml 2>&1 || echo "FAILED with exit code $?"
echo ""
echo "Testing .keys.[\"abc123\"] (dot before bracket):"
yq-go e '.keys.["abc123"]' /tmp/test_keys.yaml 2>&1 || echo "FAILED with exit code $?"
rm -f /tmp/test_keys.yaml
else
echo "yq-go not installed in sandbox. Please verify on a Noble system with yq-go installed."
echo "Check yq-go version: yq-go --version"
echo "Test both syntaxes:"
echo ' yq-go e '\''.keys["abc123"]'\'' test.yaml'
echo ' yq-go e '\''.keys.["abc123"]'\'' test.yaml'
fiRepository: bigbluebutton/bigbluebutton
Length of output: 1972
🌐 Web query:
mikefarah yq v4 bracket syntax .keys["key"] .keys.["key"] documentation
💡 Result:
In mikefarah/yq v4, the correct and standard syntax for accessing keys is.["key"] [1][2]. The syntax.keys.["key"] is generally incorrect because the dot operator must be followed by a key name or specific expression, and placing a dot before the bracketed index operator is not the standard way to traverse map or object keys [1][2][3]. Key points regarding bracket syntax: 1. Standard Access: To access a key—especially one containing special characters (like dots or spaces)—use the bracket syntax immediately after the parent object, such as.parent.["key.name"] or.["key with spaces"] [1][2][3]. 2. Purpose of Brackets: Brackets are used to handle keys that cannot be addressed via simple dot notation (e.g.,.key), specifically those with special characters [1][2][3]. 3. Avoiding the Extra Dot: Using.["key"] is valid when following an object, but do not insert a dot between the object reference and the opening bracket (i.e., avoid.["key"] if you are trying to chain it to a previous path component unless that component is a terminal object that supports indexing) [1][2]. If you are experiencing issues with paths, ensure you are not using a leading dot before the bracket if it is intended to act as the primary accessor for that level, or ensure that if you are traversing, the path is fully qualified [1][2]. For example, use.myMap["my.key"] rather than.myMap.["my.key"] [1][3].
Citations:
- 1: https://mikefarah.gitbook.io/yq/operators/traverse-read
- 2: https://mikefarah.gitbook.io/yq/operators/traverse-read.md
- 3: https://stackoverflow.com/questions/64983036/how-to-read-values-with-yq-when-the-key-has-a-dot
Drop the extra dot before the bracket. build/packages-template/bbb-livekit/after-install.sh:25 should use .keys["$API_KEY"]; .keys.["$API_KEY"] is not valid mikefarah/yq v4 syntax and can leave API_SECRET empty.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@build/packages-template/bbb-livekit/after-install.sh` around lines 24 - 25,
Correct the yq path assignment in the API_SECRET initialization by changing the
expression from `.keys.["$API_KEY"]` to `.keys["$API_KEY"]`, preserving the
existing API_KEY lookup and fallback behavior.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/docs/administration/customize.md (1)
1629-1638: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick winConfigure the BBB 3.0+ API key in the controller
.envfile.This section first writes
x_gladia_keytoconfig/default.yml, then replacesstartMessagewith a keyless payload for BBB 3.0+. For BBB 3.0+ with controller versions greater than 0.3.x, instruct users to set the key in the transcription controller’s.envfile and keep only audio parameters instartMessage; reserve the current YAML payload for older versions.Based on learnings, BBB 3.0+ requires the Gladia API key in the controller
.envfile and must not include it ingladia.startMessage.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/docs/administration/customize.md` around lines 1629 - 1638, Update the Gladia configuration section to distinguish controller versions: for BBB 3.0+ with bbb-transcription-controller versions greater than 0.3.x, instruct users to configure the Gladia API key in the controller’s .env file and keep gladia.startMessage limited to audio parameters; reserve the YAML payload containing x_gladia_key for older versions.Source: Learnings
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@docs/docs/administration/customize.md`:
- Around line 1629-1638: Update the Gladia configuration section to distinguish
controller versions: for BBB 3.0+ with bbb-transcription-controller versions
greater than 0.3.x, instruct users to configure the Gladia API key in the
controller’s .env file and keep gladia.startMessage limited to audio parameters;
reserve the YAML payload containing x_gladia_key for older versions.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 97cde2de-5e30-4280-982e-8af97225c8f0
📒 Files selected for processing (2)
docs/docs/administration/customize.mddocs/docs/development/dev-guide.md
✅ Files skipped from review due to trivial changes (1)
- docs/docs/development/dev-guide.md
BBB 4.0 edits its YAML config with mikefarah's Go yq. On Ubuntu 24.04 the archive `yq` is the kislyuk Python tool, so BBB invokes the mikefarah binary under the distinct name `yq-go`. Packaging it here builds and ships it from BBB's own apt repo instead of relying on a third-party PPA. Adds build/packages-template/bbb-yq-go/ (following the bbb-mkclean pattern): - build.sh downloads the pinned upstream release binary (YQ_VERSION=4.53.2, amd64), verifies it against bbb-yq-go.sha256sum, installs it as /usr/bin/yq-go, and fpm-packages it. - The .deb declares Provides/Conflicts/Replaces yq-go, making it a drop-in for the martin-uni-mainz PPA's yq-go and satisfying any `yq-go` dependency. - opts-noble.sh sources the global fpm opts (vendor/maintainer/url). - Registered in package-names.inc.sh as do_not_copy_anything so CI builds it.
|
✅ Automated tests have passed! |



What this does
BigBlueButton edits its YAML configuration (
bbb-conf, packageafter-install.shhooks, systemd units,
bbb-install.sh) with mikefarah/yq.On Ubuntu 24.04 (Noble) the archive
yqis instead the kislyuk Python/jq wrapper,whose YAML writing is not equivalent to mikefarah's. This PR moves everything back onto
mikefarah — invoked as
yq-go— and has BigBlueButton ship that tool itself ratherthan rely on a third-party PPA.
yq -y -i/yq -r/-y -s 'reduce …'to
yq e -i/yq e … -/eval-all '… ireduce …', and drop the empty-file guardskislyuk required. mikefarah writes empty files fine; a guard is kept only in docs where
the target file may not exist, since mikefarah errors on a missing file.
yq→yq-goacross config scripts,after-install.sh, systemd units,package dependencies and docs. The
apt … -yqflags are left untouched (that's-y -q).bbb-yq-gopackage —build/packages-template/bbb-yq-gorepackages mikefarah'spinned release binary (checksum-verified) as
/usr/bin/yq-go, declaringProvides/Conflicts/Replaces yq-go. Built by CI (GitHub + GitLab) and served fromBigBlueButton's own apt repo.
bbb-yq-go— the packages that use yq now depend on it, so apt installsBigBlueButton's own package; it coexists with the archive
yq(separate binaries).Notes
bbb-yq-go).bigbluebutton/bbb-buildimage and ships/usr/bin/yq-gowith the expected control fields.Useful links
https://github.com/mikefarah/yq/releases
Many thanks to @christmart who ported yq-go from Debian into a launchpad ppa. Initially I adopted that ppa but decided it's best for the project to be in control of which
yqversion we're using.