…to app UIs
Raise the SDK crates to 1.5.0 and offer protocol 1.2.0 in the core and the
release requirements. Apps negotiate the lower bound of each requires range,
so apps that require >=1.0.0 or >=1.1.0 keep exactly that version.
The UI bridge context now carries permissionKeys for apps whose negotiated
uiBridge is 1.2.0 or newer, and never for older bridges, whose strict
validators reject unknown members:
- The app UI summary reports the bridge version of its generation, read from
the same generation row as the user's keys (NULL counts as 1.0.0), and its
permission keys unqualified, unique and in ASCII order.
- The frame session compares versions numerically and always includes the
keys for 1.2.0 bridges, an empty array when the user holds none.
- An open frame sends the context again when the inventory poll returns other
keys. bridgeVersion in runtime:bootstrap stays 1.0.0, native UIs are
unchanged and x-rentnerproxy-access stays authoritative.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
The platform half of App SDK 1.5.0 (RentnerProxy/app-sdk#12): protocol 1.2.0, in which the UI bridge
contextmessage carriespermissionKeys, the app's permission keys that the current user holds. An app UI in its sandboxed iframe can then show a read-only view instead of a form whose save fails with403.Offer 1.2.0
rentnerproxy-app-catalog,-app-contracts,-app-pipelineand-artifactsmove to 1.5.0 (lockfile throughcargo update -p). The platform does not use the npm package.PROTOCOL_VERSIONincore/src/app_install.rsandAPP_RUNTIME_ENVIRONMENTinweb/src/config/app-requirements.config.tsoffer 1.2.0.app_ipctakes the version from the contracts crate.requiresrange, at most the offer. Apps that require>=1.0.0or>=1.1.0keep exactly 1.0.0 or 1.1.0, including the app template and the appliance fixture, which stay as they are.Send the keys
AppUiSummarygainsuiBridgeVersion.listAuthorizedAppUisreads it throughreadAppUiPrincipalInTransaction, from the generation row of exactly the summary'sinstallationIdandgeneration, in the same transaction that resolves the user's keys. A row without a stored version counts as 1.0.0 (effectiveUiBridgeVersion).installId,installationGeneration) and its route and dialog checks from this summary object, so the binding, the keys and the bridge version always describe one generation.AppUiFrameremounts with a new open and a new binding whenever the summary's generation changes, and the open call refuses any other generation (staleGeneration). A generation's bridge version never changes, because a registration replay must match it.bindAppUiFramecompares the version numerically (major.minor.patch; an invalid version never qualifies).contextmessage always includespermissionKeys, an empty array when the user holds none.bridgeVersioninruntime:bootstrapstays the literal1.0.0.toSorted(), notlocaleCompare). The session deduplicates and sorts once more when it builds the message.x-rentnerproxy-accessenforcement stays authoritative, and native mode (x-rentnerproxy-native-ui) is not affected.No schema change:
ui_bridge_versionexists since #619.Related issue
N/A: platform adoption of RentnerProxy/app-sdk#12 (App SDK 1.5.0).
Type of change
Testing
Web
web/src/tests/lib/AppUi/bridge.test.ts:a-b,a0,read,write) and an empty array. 1.10.0 is there because a string comparison would put it before 1.2.0.bridgeVersion: '1.0.0'.web/src/tests/features/AppUi/app-ui-frame.test.tsx: an inventory update with other keys re-sends the context into the same frame, the same keys in a new array send nothing, and an empty list is sent as[].web/src/tests/server/AppRuntime/ui-summaries.test.ts(new): the summary reports each generation's bridge version and only the held keys, unqualified, deduplicated and in ASCII order.web/src/tests/server/AppRuntime/authority.db.test.ts: the UI principal reports 1.0.0 for a registration without versions and for a NULL row, and 1.2.0 when stored.Core
install_advertises_protocol_1_2_0_to_apps_that_require_itandapps_negotiate_the_lower_bound_of_each_manifest_range:>=1.2.0gets 1.2.0,>=1.1.0stays 1.1.0,>=1.3.0is refused.ui_apps_negotiate_the_lower_bound_of_their_bridge_range(new): the same forrequires.uiBridge.app_ipclaunch range, admission, readiness and provider tests use 1.2.0 as the offer. The values that stood for "above the offer" (1.2.0in readiness,>=1.2.0in the privileged launch test) are now 1.3.0.Commands
bun --no-env-file run typecheck: passes.bun --no-env-file run lint: passes, including type-aware rules.bun --no-env-file run test:tson Windows: every suite for the changed areas passes (AppUi, AppRuntime, AppCatalog, application shell, release requirements). Two kinds of failures are unrelated to this change, and CI runs these suites on Linux:tarcannot handleC:paths, and POSIX file modes differ. The suites arevalidate-backup.coverage,beta2-orchestration,dependency-image-scope,release-compatibility-probesandbackup/app-state, and none of them imports changed code.oidc-connections-uifailed once on timing and passes on reruns.bun run db:migrate: pass.host-operations.db.test.tswas skipped locally because it requires the CI database name.rust:1.99.1-bookwormcontainer on Kiri, as a non-root user:cargo clippy --locked --manifest-path core/Cargo.toml --all-targets --all-features -- -D warnings: clean.cargo test --locked --manifest-path core/Cargo.toml --all-features: 1152 passed.cargo test --doc: passes.app_ipc::tests::privileged_tests (2 passed) and the root UI and provider tests (12 passed).Checklist
Breaking changes
None. Apps on UI bridge 1.0.0 or 1.1.0 see exactly the previous context. The core and the web must ship together, as before.
Screenshots
None.
🤖 Generated with Claude Code
Summary by CodeRabbit