Skip to content

feat(plugins)!: support pre-release plugin SDK versions and bump SDK to 1.0.0-beta.2 - #25864

Merged
antobinary merged 4 commits into
bigbluebutton:v4.0.x-developfrom
Arthurk12:plugin-sdk-pre-release
Sep 25, 2026
Merged

antobinary merged 4 commits into
bigbluebutton:v4.0.x-developfrom
Arthurk12:plugin-sdk-pre-release

Conversation

@Arthurk12

Copy link
Copy Markdown
Member

What does this PR do?

Moves the html5 client to plugin SDK 1.0.0-beta.2 and makes akka-apps accept pre-release SDK versions when it checks plugin manifests.

  • Parse pre-release ranges (a398e63463): java-semver's expression parser can't read pre-release identifiers, so requiredSdkVersion: "^1.0.0-beta.2" throws during meeting creation and the plugin never loads. The new SemverRange follows npm's range grammar and uses java-semver only to parse and order versions. For the range forms plugins use today (caret, tilde, x-ranges, exact versions), it returns the same results as before.
  • npm pre-release rule (416cebe564): comparing by order alone lets 1.0.0-beta.2 satisfy 0.x, >=0.1.5 and *. That would load 0.x plugins that never declared support for 1.0. With this change, a pre-release SDK only satisfies ranges that name a pre-release of the same major.minor.patch. Stable versions behave exactly as before.
  • Bump SDK (8942409b66): bigbluebutton-html-plugin-sdk goes to 1.0.0-beta.2, and html5PluginSdkVersion is updated to match.
  • Docs (8aea9d9c1c): the pre-release rule is described in plugins.md, and the release notes are updated.

! Breaking change

Plugins whose requiredSdkVersion only covers 0.x (^0.1.26, ~0.0.77) stop loading on this core, and each meeting logs a load failure in bbb-apps-akka. Manifests must declare a pre-release range: ^1.0.0-beta.2, or ^0.1.5 || ^1.0.0-beta.1 to keep supporting 3.x.

Before or together with this deploy:

  • republish the manifests of the official plugins with the dual range; This is already being done, see referenced PRs in feat(plugin-sdk): useTimer hook #25803
  • remove or update any html5PluginSdkVersion override in /etc/bigbluebutton/bbb-web.properties, otherwise manifests are checked against an SDK version the client doesn't run.

How to test

  1. Load a plugin with requiredSdkVersion: "^0.1.5 || ^1.0.0-beta.1" and check that it loads.
  2. Load a plugin with "^0.1.26" and check that it doesn't load and that a load failure is logged in akka-apps.

akka-apps checks whether the html5 plugin SDK version satisfies each
plugin manifest's requiredSdkVersion using java-semver's
Version.satisfies(). Its expression parser does not accept pre-release
identifiers, so a requirement such as "^1.0.0-beta.2" throws during
meeting creation:

  Unexpected error while parsing SDK versions: Illegal character near 'beta.2'

and the plugin is not loaded. The plugin SDK has recently started
publishing pre-release versions (1.0.0-beta.x), so the core needs to
handle them both as its own SDK version and in plugin requirements.

Add SemverRange, which parses the requirement itself and uses
java-semver only to parse and order versions. Both requiredSdkVersion
and html5PluginSdkVersion are versions of the
bigbluebutton-html-plugin-sdk npm package, and plugin authors write
that range as they would in a package.json, so the parser follows
npm's range grammar: comparators, caret, tilde, x-ranges, partial
versions, hyphen ranges and sets joined by whitespace or ||, plus
java-semver's &. With it, "^1.0.0-beta.2" accepts 1.0.0-beta.3 and
rejects 1.0.0-beta.1.

For the forms plugin manifests use (caret, tilde, x-ranges and full
versions), results are the same as java-semver's. Less common ranges
follow npm: space-separated comparators (">=0.1.5 <0.2.0"), which
java-semver fails to parse, are accepted, and a partial version after
> or <=, or as a hyphen range's upper bound, covers the whole missing
part, so "<=1.2" includes 1.2.5 and ">1" excludes 1.5.0.

Stripping the pre-release tag before calling java-semver was discarded
because it treats 1.0.0-beta.1 and 1.0.0-beta.2 as the same version.
Replacing java-semver with another library was discarded as a larger
dependency change for the same result.
SemverRange matches pre-releases by ordering alone, as java-semver
does: 1.0.0-beta.2 sorts below 1.0.0, so it satisfies "0.x" (<1.0.0),
">=0.1.5" or "*". A core running a 1.0 pre-release of the SDK
therefore loads plugins written for the 0.x API that never declared
support for it.

Apply npm's pre-release rule, completing its range semantics: a
pre-release version only satisfies a comparator set in which some
comparator names a pre-release of the same major.minor.patch.
"^1.0.0-beta.2" accepts 1.0.0-beta.3 and 1.0.0 but rejects
1.1.0-alpha.1, and "0.x" rejects 1.0.0-beta.2. Plugins opt into beta
cores deliberately, e.g. "^0.1.5 || ^1.0.0-beta.1". See
https://github.com/npm/node-semver#prerelease-tags.

Versions without a pre-release tag are unaffected, so this only
changes results while the core runs a pre-release SDK.
The html5 client depends on plugin SDK 0.1.26. Update it to the
1.0.0-beta.2 pre-release and set html5PluginSdkVersion in
bigbluebutton.properties to match, since akka-apps validates plugin
manifests' requiredSdkVersion against that value.

BREAKING CHANGE: plugins whose requiredSdkVersion only covers the 0.x
SDK, such as "^0.1.26" or "~0.0.77", are no longer loaded. To load on
this core, a plugin must declare a range that names a 1.0.0
pre-release, e.g. "^1.0.0-beta.2", or "^0.1.5 || ^1.0.0-beta.1" to keep
supporting both lines.
The plugin docs explain requiredSdkVersion ranges without mentioning
how they treat pre-release SDK versions, and state that "^1.0.0"
accepts 1.x releases. With the core on 1.0.0-beta.2, "^1.0.0" rejects
the SDK, so an author following the docs publishes a manifest that
does not load. The 4.0 release notes still list html5PluginSdkVersion
as bumped to 0.1.26 and do not warn that 0.x plugins stop loading.

Describe the pre-release rule in the SDK compatibility section, with
"^0.1.5 || ^1.0.0-beta.1" as the range that supports both lines.
Update the release notes to the 1.0.0-beta.2 bump and add a section
covering the breaking change: manifests must be republished before or
with the upgrade, and an html5PluginSdkVersion override in
bbb-web.properties must be removed or updated, since it makes akka-apps
validate manifests against an SDK version the client does not run.
@coderabbitai

coderabbitai Bot commented Sep 25, 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: 006f1ec6-046a-47c2-b75f-b30ed15388b5

📥 Commits

Reviewing files that changed from the base of the PR and between b7d529c and 8aea9d9.

⛔ Files ignored due to path filters (1)
  • bigbluebutton-html5/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Plugins.scala
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/util/SemverRange.scala
  • bigbluebutton-html5/package.json
  • bigbluebutton-web/grails-app/conf/bigbluebutton.properties
  • docs/docs/new-features.md
  • docs/docs/plugins.md

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


Walkthrough

The change adds npm-style semantic version range matching for plugin SDK compatibility checks. Plugin validation now uses this utility, and the HTML5 plugin SDK dependency and configured SDK version change to 1.0.0-beta.2. Documentation describes how prerelease versions match ranges and how to update SDK version overrides.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: guileme

Merge Risk: ⚪ Minimal · up to 8aea9

The version update appears ready for normal checks. Plugins restricted to the 0.x SDK still need the documented manifest update before deployment.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to 8aea9

The new SDK version intentionally stops loading plugins whose manifests declare only older SDK ranges. The server’s configured version, deployed client, and plugin manifests must remain aligned during rollout and rollback. No new security bypass was confirmed.

Retained concerns

  • Medium · architecture · inferred: A rollout or rollback with older manifests or a stale server SDK-version override can disable intended plugins or cause compatibility to be checked against a version other than the deployed client’s. The defaults align in this PR, but manifest publication and local overrides require separate coordination.
Security review details

Security Blast Radius

  • inferred — A manifest newly eligible under an explicit prerelease range follows the existing meeting-plugin path to a browser-loaded script. The inspected evidence does not establish that arbitrary meeting participants can select manifests or that eligibility crosses a tenant boundary.

Trust Boundaries and Controls

  • observed — The prerelease rule rejects otherwise broad ranges for a prerelease SDK, and failed plugin records are filtered before script loading. URL-fetch validation and optional integrity checks address different boundaries; authorization over manifest selection was not established.

Hardening Proposals

  • proposed — For rollout and rollback, verify the effective server SDK-version property against the deployed client dependency and inventory manifests that still declare only older ranges. Where manifest authenticity matters, verify who may register manifest URLs and whether integrity requirements are enforced by deployment policy.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: support for pre-release plugin SDK versions and the SDK version bump to 1.0.0-beta.2.
Description check ✅ Passed The description directly explains the SDK upgrade, pre-release compatibility behavior, breaking change, migration requirements, and testing steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
✨ Finishing Touches 💡 1
🧪 Generate unit tests (beta)
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

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.

@prlanzarin prlanzarin added this to the Release 4.0 milestone Sep 25, 2026
@GuiLeme
GuiLeme self-requested a review September 25, 2026 18:07
@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@GuiLeme GuiLeme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Tested locally and code looks solid.

@antobinary
antobinary merged commit 56853f5 into bigbluebutton:v4.0.x-develop Sep 25, 2026
36 of 37 checks passed
Arthurk12 added a commit to mconf/bigbluebutton-plugin-word-cloud that referenced this pull request Oct 14, 2026
BBB 4.0 core moves its html5 plugin SDK to 1.0.0-beta.2, and the
manifest requires ~0.1.2, which excludes it: the core refuses to load
the plugin.

Require ^1.0.0-beta.1. The core validates this range with SemverRange
(bigbluebutton/bigbluebutton#25864), which follows npm's range
semantics, so a pre-release core SDK only satisfies a range naming a
pre-release of the same major.minor.patch.

Bump the bigbluebutton-html-plugin-sdk dependency to 1.0.0-beta.1 so
the plugin builds against the same SDK major the manifest requires.

Keeping 0.1.x cores through "~0.1.2 || ^1.0.0-beta.1" was discarded:
cores without SemverRange validate with java-semver, whose parser throws
on any pre-release in the range, so the plugin fails to load there
either way. Pre-release-free ranges such as "*" or ">0.2 & <2" load on
those cores but are rejected by SemverRange on a beta SDK. No single
range covers both, so this drops support for cores on SDK 0.1.x.

BREAKING CHANGE: the plugin no longer loads on BBB cores running plugin
SDK 0.1.x or lacking SemverRange.
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.

4 participants