Skip to content

test(api-conformance): give Tier 1 a known pageTokenSecret - #26634

Merged
antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
paultrudel:api-conformance-page-token-secret
Nov 20, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
paultrudel:api-conformance-page-token-secret

Conversation

@paultrudel

Copy link
Copy Markdown
Collaborator

What does this PR do?

Gives api-conformance's Tier 1 stack a known pageTokenSecret, set in its bbb-web.properties next to the salt. The bbb-web target marks it secret (BBB_PAGE_TOKEN_SECRET), so recordings mask it the way they mask the salt.

Motivation

From 4.0.3, bbb-web does not start with the package's placeholder pageTokenSecret. A packaged server's after-install.sh replaces the placeholder with a random value, but Tier 1 unpacks the deb without running it. On v4.0.x-release, run 44608067362 (push of 64f527c) failed at "Bring up Tier 1" with container bbb-conform-tier1-akka-apps-1 is unhealthy. bbb-web had exited at start with Refusing to start with unusable API or page-token secrets. akka-apps reports healthy only once bbb-web pings it, so akka-apps was the container that up --wait reported.

This targets v4.0.x-develop, so the fix reaches release with the next develop→release merge. On develop, the setting only replaces the package's default, and no case depends on it.

How to test

  • On this branch, with debs built from develop: every service is healthy. The suite with CI's flags passes: 896 cases, 894 passed, 2 expected failures, no SECRET.
  • With the five debs from run 44608067362 (4.0.3, DEBS_DIR=... make -C env up), bbb-web starts with this setting. Without it, bbb-web exits as above.

More

  • This commit cherry-picks cleanly onto v4.0.x-release.
  • Not included: the other two Tier 1 copies warnings on v4.0.x-release (bbb-web.service and the akka-apps start-template now set JAVA_TOOL_OPTIONS). Those changes are only on release, so mirroring them belongs with them. The warnings don't fail the job.
  • test(api-conformance): session-token calls #26583 also adds a vars: entry to targets/bbb-web.yaml at the same place. Whichever PR merges second needs both entries under one vars:.

From 4.0.3, bbb-web does not start with the package's placeholder
pageTokenSecret, which a packaged server's after-install.sh replaces with a
random value. Tier 1 sets a known one in its bbb-web.properties, next to the
salt, and the bbb-web target marks it secret, so recordings mask it as they
mask the salt.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Tier 1 environment now defines a page-token secret. The rendering script substitutes the value into the bbb-web properties template and exports it as BBB_PAGE_TOKEN_SECRET. The bbb-web conformance target reads that variable as a secret. The README now lists the exported variable.

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

Change: Other

Suggested reviewers: imdt-claudiop

Merge Risk: Minimal · up to e12a6

This change gives the Tier 1 conformance environment a known page-token secret so bbb-web can start in tests, and it masks the value in recordings. It affects only test tooling. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Tier 1 of the api-conformance suite gets a known pageTokenSecret. The changeset adds pageTokenSecret to the Tier 1 properties template, the render script, the env file…
Description check Passed The description states the purpose (a known pageTokenSecret for the Tier 1 stack), the secret marking in the bbb-web target, the motivation (bbb-web 4.0.3 refuses the package placeholder), and test st…
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.
Full details: Title check

Explanation

The title names the main change: Tier 1 of the api-conformance suite gets a known pageTokenSecret. The changeset adds pageTokenSecret to the Tier 1 properties template, the render script, the env file, and the bbb-web target, and the title matches that scope.

Full details: Description check

Explanation

The description states the purpose (a known pageTokenSecret for the Tier 1 stack), the secret marking in the bbb-web target, the motivation (bbb-web 4.0.3 refuses the package placeholder), and test steps. All of this relates directly to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • 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

Recent review info

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: 276dadca-40ba-4fa8-a340-68e8cba3d18d
Commits

Reviewing files that changed from the base of the PR and between aae4cd1 and e12a6ed.

Files selected for processing: 5

  • bigbluebutton-tests/api-conformance/README.md
  • bigbluebutton-tests/api-conformance/env/bbb-web/tier1.properties.in
  • bigbluebutton-tests/api-conformance/env/tier1/render.sh
  • bigbluebutton-tests/api-conformance/env/tier1/tier1.env
  • bigbluebutton-tests/api-conformance/targets/bbb-web.yaml

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

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary antobinary added this to the Release 4.0 milestone Nov 20, 2026

@antobinary antobinary left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving. I ran this (head e12a6ed) on the Tier 1 stack with the packages of the 4.0.3 merge, #26631, because the PR's own CI ran on v4.0.x-develop, where bbb-web starts with or without the setting.

It does what the description says, and #26631 needs it: its api-conformance job fails at "Bring up Tier 1" today (run 44714167464).

Check Result
Tier 1 from #26631's head (09d887a), without this commit up --wait fails with container bbb-conform-tier1-akka-apps-1 is unhealthy, and bbb-web logs "Refusing to start with unusable API or page-token secrets"
The same tree with this commit applied All ten services healthy after 76 s
The PR selection on that stack, with CI's flags 896 cases: 894 passed, 2 expected failures, exit 0. The same counts as this PR's CI run on v4.0.x-develop
Is the published secret the one in force? Yes. A page token that bbb-web put on the bus equals the HMAC-SHA256 under TIER1_PAGE_TOKEN_SECRET, and differs from the one under the salt
Masking A probe case that sends ${target.pageTokenSecret} as a query parameter passes, and the JSON report shows the parameter as [secret:pageTokenSecret]. The value itself is nowhere in the report
BBB_PAGE_TOKEN_SECRET unset The target loads and the same case passes with an empty value, as the comment in the target file says
Cherry-pick onto v4.0.x-release, merge with #26631, merge with v4.0.x-develop All three clean

Notes. None of them needs a change in this PR.

  1. Order. This goes in before #26631. After that, #26631's branch needs v4.0.x-develop merged in so that its job runs with it.
  2. copies.sha256 after #26631. Once the release merge is in, check-copies.sh warns on every run about three files: bbb-web/after-install.sh, bbb-web.service and akka-apps' start-template. The three warnings are on #26631's run already. This PR is what follows the first file, but its hash can't be recorded here, because v4.0.x-develop still has the old one. So it takes a follow-up after #26631: check-copies.sh --update, and a decision on the other two files, which now set JAVA_TOOL_OPTIONS. env/images/bbb-web/start and env/images/akka-apps/start say they start the services as the units do, and neither sets it. If they mirror it, bbb-web's script has to add to the variable, not replace it: compose passes JAVA_TOOL_OPTIONS through from the host for a coverage agent.
  3. #26583 conflicts with this in two files, not one. targets/bbb-web.yaml, as the description says, and the env row of the README's table of make targets, where it adds TURN_SECRET. Both resolve by keeping both.
  4. Two comments still name only the host and the salt as what the stack's bbb-web.properties sets: README.md line 261 and env/images/Dockerfile line 52.
  5. Without the setting bbb-web hangs. It does not exit, as the description has it. After "Application run failed" the Java process stays up and nothing listens on 8090. It was still there ten minutes later, kept alive by five non-daemon threads: the workers of ReceivedMessageHandler, CallbackUrlService, MeetingService and KeepAliveService, and bbb-web-common-scheduler-1. That is why compose never restarts bbb-web and names akka-apps, whose health check goes unhealthy first. It is bbb-web's behaviour, not Tier 1's, so there is nothing to change here.

@antobinary
antobinary merged commit db0f377 into bigbluebutton:v4.0.x-develop Nov 20, 2026
38 checks passed
paultrudel added a commit to paultrudel/bigbluebutton that referenced this pull request Nov 20, 2026
…on-tokens

Conflicts, after bigbluebutton#26548 and bigbluebutton#26634 merged:
- bigbluebutton-tests/api-conformance/targets/bbb-web.yaml: both sides
  added a vars map; it keeps turnSecret and pageTokenSecret, each under its
  own comment.
- bigbluebutton-tests/api-conformance/README.md: the env row lists both
  BBB_PAGE_TOKEN_SECRET and TURN_SECRET, and the masks paragraph keeps
  bigbluebutton#26548's onlyMatching sentences and T11's "learningDashboard's data".
antobinary pushed a commit that referenced this pull request Nov 20, 2026
…er 1 (#26642)

Since 4.0.3 was merged into v4.0.x-develop (#26631), check-copies.sh has
warned on every api-conformance run: three of the package files Tier 1
mirrors by hand had changed.

- bbb-web.service and bbb-apps-akka's unit set
  JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics (#26603). Both images'
  start scripts now set it too. bbb-web's keeps a JAVA_TOOL_OPTIONS that
  compose.yaml passes in, such as a coverage agent, after the flag.
- akka-apps' start script also sets MALLOC_ARENA_MAX=2, which its unit
  has set since 9d4dc4b. Tier 1 had followed that only for bbb-web.
- bbb-web's after-install.sh writes a random pageTokenSecret. Tier 1
  already sets a known one in tier1.properties.in (#26634); the
  Dockerfile's note on what after-install.sh does now names it.

copies.sha256 records the three sources as they are now.
germanocaumo added a commit to germanocaumo/bigbluebutton that referenced this pull request Nov 21, 2026
Brings v4.0.x-develop to 932c31d: the merged bigbluebutton#26631 and the fixes that
followed it on 4.0 (bigbluebutton#26642 and bigbluebutton#26634 for the API conformance Tier 1
stack, bigbluebutton#26641 for the presentation conversion tests, bigbluebutton#26636 and bigbluebutton#26617
for the middleware limits, bigbluebutton#26581 for failed uploads), plus bigbluebutton#26583,
bigbluebutton#26548 and bigbluebutton#26615.

Resolutions:
- api-conformance env/tier1/copies.sha256: each hash matches the merged
  file. preinst is 4.1's own (0413ab4), so 4.1's line; start-template
  has 4.0.3's change on both lines now, so 4.0's line.
- docs new-features.md: 4.1's file, unchanged.

# Conflicts:
#	bigbluebutton-tests/api-conformance/env/tier1/copies.sha256
#	docs/docs/new-features.md
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