Skip to main content
Version: 3.1

Operator guide

Beta: switch on App Studio, check how apps are served behind your proxy, grant app roles, pair wall displays, tune fair use and back up apps.

Enable
Licence feature app_studio (module on by default)
Pair displays
Identity & Access › Devices
Rate limit
50 rps, burst 100 per app
Live subscriptions
200 per app socket
Beta

App Studio is in release 3.0 as Beta: by early access and not sold during Beta; no licence includes it by default. A licence or a trial licence that includes the app_studio feature switches it on. The module is on by default, so the licence decides. Names and steps may change while it is in Beta.

This page is for the person who runs the MaestroHub instance. Every path, knob and permission below is taken from the code as of this release; where a source file is named, that is where to look when something does not match.

Enabling App Studio​

App Studio is on when the licence includes it:

  1. Licence feature app_studio. When the feature is absent, App Studio is not in the rail, an old link or a paired display's URL opens an "App Studio is not enabled" page that says how to get it, and the backend refuses every /api/v1/appstudio/* call with 403 APP_STUDIO_DISABLED. In a dev build the feature is turned on by listing it under modules.license.dev.features in apps/backend/context-engine/config.yaml.
  2. modules.appstudio.enabled, true by default (the single binary, the single-node chart's modules.appstudio.enabled and the high-availability chart's appstudio.enabled). Set it to false to not run the module at all: its routes then answer 404 instead of 403, and the UI behaves the same way: no rail entry, and the same "App Studio is not enabled" page.

The modules.appstudio block, with every knob and its default (modules/appstudio/config/config.go, ApplyDefaults):

modules:
appstudio:
enabled: true
# AES key (16/24/32 bytes, raw or base64) that encrypts stored Git remote
# tokens. Lite generates a random one on first boot and persists it as the
# secret file "appstudio_encryption_key" (context-engine/config/secrets.go);
# set it explicitly on Enterprise. Empty = Git remotes can be configured
# only without a token, and the configure call says so.
encryptionKey: ""
# The platform's public address, used only for the builder link in MCP
# answers (builder_url). Apps are served without it (see "How apps are
# served"). Empty = MCP answers carry no builder link; the module says so
# once at Start.
platformOrigin: https://maestrohub.example.com
storage:
type: sqlite # or postgres
sqlite:
path: ./data/appstudio.db
postgres:
connectionString: ""
maxOpenConns: 10
maxIdleConns: 5
git:
path: ./data/appstudio-git # one repo per (workspace, app)
retention:
enabled: false # opt-in app-storage sweeper
interval: 1h
batchSize: 500
rateLimit:
enabled: true
requestsPerSecond: 50
burst: 100
note

A person's own app data (documents in user-scope collections, their favourite apps and their first-open acknowledgements) is erased in every app and workspace when they are deleted permanently. A delete that can be undone keeps it, so a restored person finds it. Shared documents stay: they are workspace state, and the audit trail records who wrote them.

The retention sweeper is opt-in. If a builder publishes a manifest that declares retention on a storage collection while storage.retention.enabled is false, the publish succeeds and the module logs a WARN saying documents will not be purged (application/versions.go). Nothing is purged until you turn the sweeper on.

The module also announces every on-but-inert switch at Start and in GET /health (module appstudio, components serving, rate-limit, storage-retention, token-minting, license-gate, lifecycle-events, metrics). The full table is in docs/appstudio-runbook.md §3. With platformOrigin empty, Start logs once:

appstudio: no platform address is configured — MCP answers carry no builder_url link (Lite: set modules.appstudio.platformOrigin; Enterprise: the chart sets none until the platform's public address exists).

How apps are served​

There is nothing to set up. Apps are served from the same address people already use for MaestroHub, under /_apps/: by host name or by IP address, over HTTP or HTTPS, at the root or under http.basePath (for example /maestrohub/_apps/ on a Siemens Industrial Edge device). There is no second host name, DNS record or certificate, and no setting for it.

What a browser loads for one app (<P> is http.basePath, empty at the root):

AddressWhat it is
<P>/_apps/<workspaceID>/<slug>/the app's page (the published version); the builder's preview is under …/draft/<nonce>/
<P>/_apps/<workspaceID>/<slug>/boot.mjs, bundle.mjsMaestroHub's start-up code, then the app's own compiled code
<P>/appstudio-runtime/<rt>/runtime-v1/…the shared libraries every app uses (React, the SDK, the UI kit, three.js); <rt> changes whenever their content changes, so browsers may cache them for a year
<P>/_apps/_checka self-test page the shell reads once per page load (see the runbook, "Blank app frame")

How an app is kept apart from MaestroHub and from other apps:

  • Every app runs as an anonymous origin. The frame that holds the app carries sandbox="allow-scripts allow-modals" (no allow-same-origin), and every response under /_apps/ carries Content-Security-Policy: sandbox allow-scripts allow-modals; …. Either one alone makes the browser treat the app as an anonymous ("opaque") origin: it cannot read the MaestroHub sign-in, cannot reach into the MaestroHub page, and has no browser storage of its own, so it cannot read another app's data either.
  • The start-up code checks before any app code runs. It refuses to start the app when the page is opened directly in a tab ("This app runs inside MaestroHub. Open MaestroHub and choose it under Apps.") or when the page is not anonymous ("MaestroHub stopped this app because it is not running in its isolated frame."). Every failure means the app does not start; it never runs with MaestroHub's rights.
  • The app's sign-in token (manifest scopes ∩ the viewer's permissions, 5 minutes) travels over a private channel between the MaestroHub page and that one page load. A page the app links to cannot pick it up.
  • Apps may talk only to MaestroHub. The page's policy allows scripts, API calls, the live-data socket and images only from the address the browser used to reach MaestroHub. MaestroHub reads that address from the browser's own Referer header (proxies rewrite Host but not Referer), never from configuration.
  • The API and the live-data socket answer app frames only with an app token. A request from an app frame arrives with Origin: null. Only the routes the SDK uses answer it, and only when it carries the app's own token; a person's sign-in or an access token sent from an app frame is refused with 403 OPAQUE_ORIGIN_REQUIRES_APP_TOKEN. Browser credentials (cookies) are never allowed for these requests.

What the browser does differently inside an app frame: localStorage and sessionStorage keep values in memory only (gone on reload), indexedDB, cookies and service workers are not available, and prompt() returns nothing. The builder refuses new code that uses them; an older app that does reports it once per load on its Ops page.

App links and displays look after themselves. An app that reloads or navigates its own page loses its session; MaestroHub restarts it at once, then after 60 seconds, doubling up to 30 minutes, and resets the pause once the app has stayed up 10 minutes. The Ops page shows the app's owner and administrators a highlighted finding once an app has left its page three times. An app that stops answering for about 30 seconds (outside an open alert, confirm or print dialog) is restarted the same way. A paired display reloads itself, at most once every 10 minutes, when MaestroHub is updated or rolled back. After the upgrade to this release, reload every app link and paired display once by hand (see Changes in 3.0).

With modules.appstudio.enabled: false, /_apps/ answers "App Studio is turned off on this server. An administrator can turn it on with modules.appstudio.enabled."; when the module could not start, "App Studio could not start on this server; see its log." Neither ever falls through to the MaestroHub page.

Behind a reverse proxy​

A proxy that forwards MaestroHub as a whole (nginx, Apache, Traefik, Caddy, IIS ARR, a Kubernetes Ingress) needs no App Studio rule of its own. Check these points:

  • Keep the Host header, or list the proxy in http.trustedProxies. MaestroHub reads X-Forwarded-Host only from a listed proxy. A proxy that replaces Host with an internal name and is not listed (IIS ARR without preserveHostHeader, for example) loads pages, but live values do not move, a SAML sign-in that returns to the public name is refused and app addresses cannot be confirmed. MaestroHub then logs, once per proxy address, "X-Forwarded-Host arrived from a peer that is not a trusted proxy and was ignored" with the address to list: http: { trustedProxies: ["10.20.30.5"] }. The Helm charts, the Docker Compose files and the Siemens Industrial Edge package keep Host and need nothing.
  • Pass /_apps/ and /appstudio-runtime/ to MaestroHub like every other path, and pass the WebSocket upgrade on /api/v1/ws/connect (apps use it for live values).
  • Do not remove, replace or add Content-Security-Policy on /_apps/. Removing it leaves framed apps isolated (the frame attribute still applies) but lets another website frame an app page, and the check reports isolation_header_missing. A proxy that adds its own policy is reported as isolation_header_altered: apps still run isolated, but may fail to load if that policy is stricter. An added X-Frame-Options is harmless.
  • Do not strip Referer. Safari and iPad need it to start apps (Chrome, Edge and Firefox do not); without it the check reports referer_missing.
  • Single sign-on proxies (oauth2-proxy, Identity-Aware Proxy and the like): exempt /_apps/, /appstudio-runtime/ and the API routes apps call (the app requests carry no cookie and arrive with Origin: null; they authenticate with the app token). Never configure the proxy to allow credentials for Origin: null.
  • http.corsOrigins: leave App Studio out of it; app frames need no entry. Listing * there admits every origin on every route, app frames included, as it does for every website today.

To see what the browser gets, run the curl steps in docs/appstudio-runbook.md, "Blank app frame". The platform shell also runs /_apps/_check once per page load and reports what it finds to the App Studio Ops view and to GET /health (module appstudio, component serving).

Address limits for Safari and iPad​

Safari and iPad start an app only when the page's security policy can name the address the browser used. A policy cannot name:

  • an IPv6 literal address (http://[fd00::5]:8080),
  • a host name with an underscore (plant_hmi01, common in Windows networks),
  • a host name with a trailing dot (maestrohub.plant.local.).

On such an address Chrome, Edge and Firefox run apps normally; Safari and iPad show the "did not answer" strip and the check reports origin_inexpressible. Use an IPv4 address or a host name without _. The same happens when the Referer header is missing (referer_missing).

Removed settings​

The sandbox host settings are gone. Apps need no configuration, so nothing replaces them.

Single binary. modules.appstudio.sandboxDomain and modules.appstudio.sandboxOrigin (and the variables MAESTROHUB_MODULES_APPSTUDIO_SANDBOXDOMAIN and MAESTROHUB_MODULES_APPSTUDIO_SANDBOXORIGIN) are no longer read. A config.yaml that still sets one starts normally and logs one line per key at start:

config: `modules.appstudio.sandboxDomain` is no longer read: apps are served from this server's own address under /_apps/, each in an isolated frame; delete it (docs/docs/app-studio/operator-guide.md)
config: `modules.appstudio.sandboxOrigin` is no longer read: apps are served from this server's own address under /_apps/, each in an isolated frame; delete it (docs/docs/app-studio/operator-guide.md)

When the key comes from the environment, the line names the variable instead (for example `MAESTROHUB_MODULES_APPSTUDIO_SANDBOXDOMAIN`). The fix: delete the key from config.yaml (or unset the variable) and remove the DNS record and certificate of the old sandbox host.

App Studio pod (high-availability chart). The pod's own keys sandboxDomain and sandboxOrigin (variables APPSTUDIO_SANDBOXDOMAIN, APPSTUDIO_SANDBOXORIGIN) are announced the same way, once at start, with the same text naming the pod's key. The chart never renders them; only a hand-set variable or a hand-edited configmap reaches the pod.

Helm, high-availability chart. global.appstudio.sandboxDomain, global.appstudio.sandboxOrigin, global.appstudio.platformOrigin and ingress.sandboxTLS are deleted from the chart, together with the second Ingress. An install that never set them upgrades with no extra step, also with --reuse-values (the 3.0.0 chart's own defaults apps.maestrohub.local and http://maestrohub.local are let through, and nothing reads them). A values file that set one of them is refused before anything is deployed. The refusal, where %s is the list of keys it found:

values: App Studio no longer uses a sandbox host: apps are served under /_apps/ on ingress.host. Delete these keys from your values file: %s. --reuse-values keeps them from the previous release: run this upgrade with --reset-then-reuse-values and --set <key>=null for each key above. Nothing was deployed. See UPGRADING.md, "App Studio sandbox host removed".

For example, Helm stops with:

values: App Studio no longer uses a sandbox host: apps are served under /_apps/ on ingress.host. Delete these keys from your values file: global.appstudio.sandboxDomain, ingress.sandboxTLS. --reuse-values keeps them from the previous release: run this upgrade with --reset-then-reuse-values and --set <key>=null for each key above. Nothing was deployed. See UPGRADING.md, "App Studio sandbox host removed".

The fix: delete the keys from your values file, then run that one upgrade as

helm upgrade <release> <chart> --reset-then-reuse-values \
--set global.appstudio.sandboxDomain=null \
--set ingress.sandboxTLS=null

with one --set <key>=null for each key the message names (--reset-then-reuse-values alone is not enough: Helm keeps the values you set in the previous release; --reuse-values --set <key>=null is refused too). helm upgrade --reset-values -f <your values without the keys> also works. Afterwards, remove the DNS record and certificate of the old sandbox host. A hand-set global.appstudio.platformOrigin is named the same way: on the high-availability chart, MCP answers carry no builder link until the platform has one public address.

Helm, single-node chart. modules.appstudio.sandboxDomain, modules.appstudio.sandboxOrigin and ingress.sandboxHost are deleted, with the sandbox Ingress rule. A values file that still sets one to anything but "" is refused with the same text naming those keys, and the same fix applies. modules.appstudio.platformOrigin stays (it is only the builder link in MCP answers): an explicit value wins; otherwise, with ingress.enabled and ingress.host set, the chart uses https://<ingress.host> when ingress.tls is set and http://<ingress.host> when it is not; otherwise it is empty.

What isolation does not cover​

These are accepted for this release. None of them lets an app act with more than its viewer's permissions.

  • An app can send data out by navigating its own frame. Any app can navigate its frame to an outside address with data in the URL, as it always could; the browser has no rule that stops a frame navigating itself. The navigation ends the app's session. On an unattended display the automatic restart starts a new one, so a hostile app can repeat it. One that leaves at once is restarted with a growing pause: about 7 times in the first half hour, then once every 30 minutes, about 55 times a day per display. A mount that stays up 10 minutes resets that pause (a well-behaved app that reloads itself rarely must recover at once), so an app that times its departures around that reset can leave about 340 times a day per display. Every departure that unloads the page is counted, the app's own errors cannot push one out of the record, and from the third the Ops page flags the app to its owner and administrators. Read the source of any app it flags. An app that only stopped answering (it hangs, or starts slowly) gets its own finding without that warning. A navigation the outside server answers with "no content" sends its request without leaving the page, so it is not counted at all: treat any app that builds outside addresses as able to send data out.
  • An app can hold a WebRTC connection. Browsers apply no Content-Security-Policy to WebRTC, and an isolated frame may open a peer connection, so an app can keep a quiet channel to an outside STUN or TURN server while it runs. This is not new with serving on the platform's address. If your network allows outbound UDP from operator screens, review apps that use RTCPeerConnection.
  • Avatar pictures and refusal texts are readable by any website. App frames are anonymous origins, and every sandboxed page on the internet has the same anonymous origin. So the one public route apps use, a person's profile picture (GET /api/v1/users/:id/picture), can be read by any website through an employee's browser if it knows the person's id, and so can the body of a 401 refusal from an app route (which can tell a website that a MaestroHub is reachable on that network). Nothing else answers it without an app token.
  • A cache that ignores no-store. App pages are sent Cache-Control: no-store. A proxy cache that stores them anyway could serve one app a policy naming another address, widening where that app may connect. It needs a non-compliant cache and a malicious app author.
  • Safari on an address a policy cannot name, or with the Referer stripped: apps do not start (see Address limits for Safari and iPad). MaestroHub never sends a wider policy instead.
  • alert and confirm dialogs are labelled by the browser with MaestroHub's own address. That is why prompt() is turned off: a prompt for a password would look like MaestroHub's.

Permissions​

The app entity has these catalog actions (grep "app: in authz/domain/builtin_roles): app:create, app:read, app:update, app:delete, app:run, app:publish, app:clone, app:share, app:transfer, app:backup.

Built-in roles that hold them:

RoleVerbsNotes
Apps.Viewerapp:read, app:runOpens and runs published apps. What an app then shows is bounded by the viewer's own resource permissions.
Apps.Editorapp:create, app:read, app:update, app:run, app:publish, app:cloneBuilds and iterates. No delete, no share.
Apps.AdminEditor's verbs plus app:delete, app:share, app:backup, and role:create/read/update/delete/assign/revokeFull lifecycle except ownership transfer.
Workspace.Adminevery app:* verb including app:transfer and app:backupOwnership handoff lives here, like every other resource type.
Persona.DataEngineerthe Apps.Editor setComposed persona.
Licence tier

Apps.Viewer/Editor/Admin are feature-tier roles (Tier: TierFeature). The roles catalog serves them only when the advanced_access_control licence feature is on (authz/roles_catalog_tier_http_test.go). Without Advanced Access Control, Workspace.Admin still carries the full app:* set, Persona.DataEngineer can build and run apps, Persona.PlantOperator and Persona.Analyst can open and run them (app:read, app:run), and a paired display opens apps through Workspace.Display. Workspace.Member holds no app:* verb. Sharing one app with someone (see Sharing) needs advanced_access_control; without it, give the person a role that opens apps. See Users & Roles for the tier model.

Which verb gates which surface (modules/appstudio/infrastructure/http/handler.go):

SurfaceVerb
List, open, read draft files, checkpoints, validateapp:read
Write draft files, checkpoint, preview, Operations page, switch an app off (with a reason), Git remote config, edit seatapp:update
Create versionapp:update; make a version live (approve a release, activate, roll back), switch an app back on, provision a showcase app, each by a person signed in to MaestroHub, never a token or an agent; Git push, fleet compatibility scan
Transfer an app's ownership (Operations → Owner → Transfer ownership)app:transfer (workspace administrators)
Token exchange (run an app), first-open noticeapp:run
Cloneapp:clone
Share, share-time access previewapp:share
Deleteapp:delete
Workspace-wide backup / restoreapp:backup

GET /appstudio/apps/by-slug/:slug carries no type-level guard on purpose: the handler answers from the caller's per-app allowed_actions and returns 404 for an app they cannot read, so a display that only holds a share on one app can still open it.

Every published app has its own link, which opens only the app: /:workspaceSlug/apps/:slug/kiosk (apps/frontend/context-engine/src/pages/apps/AppLinkPage.tsx; the segment also accepts the app id; the screens call it the app's link, and only the address keeps the word kiosk). The page renders in a layout with no MaestroHub around it (no rail, sidebar, top bar, search or banners) and keeps one strip that is always visible: the app's name, "built by X, not part of MaestroHub", who is signed in, Sign out, full screen (the Fullscreen API needs a user gesture) and Open MaestroHub (the app's Run page). A second line appears only while the workspace is in maintenance mode or in the last three days of the licence. The link needs the same access as the Run page; a signed-out visit goes to sign-in and comes back to the app. It re-reads the app every 30 s, so a switched-off or unpublished app comes back by itself once fixed, and a revoked or deleted one stops; a moment without an answer from MaestroHub keeps the app running and says "Can't reach MaestroHub. Retrying." Every state where the app does not run is a room-readable message: no access, switched off, not published, MaestroHub not answering; a paired display is told it comes back by itself, a person what to do. The app link reloads itself when MaestroHub is updated or rolled back, and restarts an app that left its page or stopped answering (see How apps are served).

The Run page header, the app's menu on the Apps page and the builder's message after publishing offer Copy app link and Open as app. The copied link is built from MaestroHub's public address when one is set (System Management → Email → Public address); without it, from the browser's address, and on localhost MaestroHub says the link works only on that computer. The Run page's viewer sees the same first-open notice the app link does.

MaestroHub's own pages answer with Content-Security-Policy: frame-ancestors 'self' (the single binary and the UI pod's nginx alike), so no other website can show them inside a frame; apps under /_apps/ keep their own policy.

Device pairing​

An unattended screen should not hold a person's session. Pairing gives it its own identity (an AgentAccount with a fixed read-only scope set and the viewer roles you choose) through a device-code flow in the spirit of RFC 8628 (modules/auth/domain/device.go, modules/auth/application/device_pairing_service.go).

On the screen: open /pair (no session needed). The page requests a code, shows an 8-character user code (alphabet omits 0/O/1/I/L), and polls until an administrator decides. It tells the screen when a code expired, was declined, or was already used, and offers "Get a new code".

In the admin UI: Identity & Access → Devices (/:workspaceSlug/identity-access/devices; the route needs agent:read and the access_control feature). Click Pair a display, type the code, and the dialog shows what is asking to pair (browser, IP, code expiry). Choose:

  • Display name (defaults to Display <code>).
  • App to show: a published, enabled app; the landing path becomes /apps/<slug>/kiosk. With no app chosen the screen lands on /apps.
  • Roles the display holds: checkboxes limited to the closed allowed set.

A paired display is read-only: it shows apps and dashboards but never presses an app's buttons: its fixed scopes hold no write, and every app action on it reads "This screen is read-only: a person must be signed in to press this. Open this app's link on a station where a person is signed in." The pairing dialog says the same before Approve. A station where an operator presses buttons shows the app's link (above) opened by a person signed in to MaestroHub, not a paired display.

A display whose pairing ended (revoked, or its token expired) goes back to /pair, which names it: "This screen (name) is no longer paired (its pairing ended or was removed). An administrator pairs it again under Identity & Access → Devices."

Approve creates the agent, grants the fixed scopes, binds the roles, issues the token and parks it for the screen's next poll. Deny rejects the code (the screen learns on its next poll and shows the refusal); a code nobody acts on expires on its own. The Devices table lists status, landing path, roles, paired/last-seen times and token expiry; the trash icon revokes (ends the token, the agent and its role bindings; the screen returns to /pair on its next request). Deny is exposed on the API (POST /auth/devices/deny); the dialog offers Approve and Cancel.

Pairing facts from the service:

ItemValueSource
Fixed scopesapps:read, apps:run, uns:read, dashboards:read, workspaces:read, monitoring:read; not configurable; a screen never gets a write scopeDeviceScopes
Allowed rolesWorkspace.Display, Apps.Viewer, Data.Viewer, Data.StreamViewer, Connect.Viewer, Automate.Viewer, Fleet.Viewer, Workspace.Member; a role the licence does not offer is refusedDeviceAllowedRoles
Default rolesThe narrowest roles the licence offers for app:read, app:run, topic:read, topic:subscribe and dashboard:read (without topic:subscribe a wall has no live values): Workspace.Display on every licence. The dialog shows them before you approve.DisplayNeeds, role resolver
Permissions to pair / list / revokeagent:create (lookup, approve, deny), agent:read (list), agent:update (revoke)device_handler.go
Public routesPOST /auth/devices/code, POST /auth/devices/token, rate-limited per source IP (20/min) and paced by the poll intervaldevice_handler.go
Auditdevice.paired, device.denied, device.claimed, device.revokedemit

Configuration under modules.auth.devices (modules/auth/config.go, defaults from defaultDevicesConfig):

modules:
auth:
devices:
codeTTL: 10m # how long a pairing code stays approvable
pollIntervalSeconds: 5 # minimum spacing between the screen's polls
tokenTTL: 8760h # agent token lifetime; capped at 365 days
note

Workspace.Display is the path on every licence: it holds app:read and app:run, so a display bound to it opens every published app in the workspace, and it is what an approval binds when you pick no roles. The feature-tier viewer roles (Apps.Viewer and the others) need advanced_access_control. So does sharing a single app with a display's agent subject: without that feature the server refuses every new share, and the Devices dialog says so instead of suggesting one. Workspace.Member holds no app:* verb, so a Member display cannot open apps. The Devices dialog only offers roles the instance's licence actually serves.

App addresses​

An app address is a web name of its own, such as andon.plant.example, that opens one app or one workspace with nothing else of MaestroHub around it. The list is platform-wide and lives in the auth module; platform administrators manage it under System Management → App addresses. What people see on an address, and the list itself, is described in App addresses. This section is what the operator does around it.

The five steps​

Do these for every address, then press ⋯ → Check on its row. MaestroHub's own server opens the address and confirms it when the answer comes from this MaestroHub under that name, so every step below must work from MaestroHub's server as well as from the stations:

  1. DNS: point the name at the server or the Ingress controller. A plant without DNS puts a hosts-file entry on every station that opens the address and on MaestroHub's own server (it checks the name itself). On Windows, open C:\Windows\System32\drivers\etc\hosts in an editor started as administrator and add a line with the IP address of the machine people connect to (the IIS or nginx server when one is in front, otherwise MaestroHub's) and the name, such as 10.20.30.40 andon.plant.example, then run ipconfig /flushdns. With SAML, add MaestroHub's own name too, because the station must reach it to sign in.
  2. Proxy or Ingress: route the name to MaestroHub and keep the Host header, or send X-Forwarded-Host and list the proxy in http.trustedProxies: MaestroHub reads X-Forwarded-Host only from a listed proxy, for app addresses, links it builds and the live-data socket alike. On Helm, add the name to ingress.extraHosts (below).
  3. Certificate: one that lists the name, from a certificate authority MaestroHub's server trusts too (Windows: the computer's Trusted Root store; Linux: the system bundle or SSL_CERT_FILE). Lite serves the one certificate in http.tls.certFile for every name, with no per-name choice, so that certificate must list it as well; otherwise end TLS in a proxy in front.
  4. Identity provider: register the address's OIDC callback and sign-out address (the row's Copy sign-in addresses) with every OIDC provider. SAML needs nothing per address, but the station must reach MaestroHub's own address, where the identity provider posts its answer.
  5. MaestroHub: set the public address first (System Management → Email → Public address), then add the address.

Until an address is confirmed, SAML sign-in to it is refused: its SAML button is disabled, with the reason under it, and sign-in does not start on its own with SAML. Password, LDAP and OIDC work at once.

How Check works, and what it stops. Check makes a fresh random challenge, records it in the auth store for 30 seconds, and sends one request from MaestroHub's server to <address><http.basePath>/api/v1/auth/app-address/answer. The answer route answers only a challenge this installation issued, once: anything else gets a bare 404, so the route tells a stranger nothing about this MaestroHub, its proxy or its trust settings. The answer is an HMAC under a key derived from the auth encryption key, over the challenge and the names the request arrived under, so any auth replica answers a check another started and a middlebox cannot change what it reports. The request follows no redirect, uses no proxy from the environment and no credentials, verifies the certificate, never connects to the server's own loopback, link-local, multicast or cloud metadata addresses (so a hosts-file entry must point at a network address, not 127.0.0.1), and is bounded to 5 seconds and 4 KiB. A refusal names the reason and, for an HTTP answer, only its class (such as 4xx); the transport's own text goes to the server log. Check refuses, with its own sentence, a proxy that rewrites the name or one that is not in http.trustedProxies. Nothing is handed to the address being checked, so a mistyped name's holder has nothing to capture, and forging Host or X-Forwarded-Host against MaestroHub confirms nothing. A holder of the name who forwards every request to MaestroHub in real time does pass, as any proxy does: the exact name shown back before Save is the control there.

A confirmation is a lease. It admits SAML sign-in for 7 days. Every day MaestroHub's server checks each confirmed address again, from one auth replica (each address is claimed in the auth store, so replicas never ask it twice), and never before MaestroHub itself is serving: the first check after a start waits 15 minutes, so a proxy that answers 502 while MaestroHub restarts is not taken for anything. A check that reaches this MaestroHub renews the 7 days. Only an answer that shows the name now reaches something else counts against it: a redirect away, the request arriving under another name, or an answer in MaestroHub's format that this installation did not make. Even then the confirmation stays, the row says so, and the address is asked again an hour later; only if the same kind of answer comes back is the confirmation turned off, with an app_address.unconfirmed audit row and a warning in the log. Anything else (an HTTP error such as 502, 503, 504, 408 or 429, a maintenance or parked page, another MaestroHub version during an upgrade, DNS, network, certificate) keeps the confirmation until the 7 days run out. The row shows the last failed check's reason, and two days before the end it shows the confirmation as ending soon; health counts both (recheckFailing, proofExpiring). What no check can catch: whoever holds the name relaying every request to this MaestroHub, as a reverse proxy does, keeps it confirmed. Delete an address as soon as its name is given up.

Proxy settings that keep the Host header​

nginx, ending HTTPS with a certificate that lists the name:

server {
listen 443 ssl;
server_name andon.plant.example;
ssl_certificate /etc/nginx/tls/plant.crt; # lists andon.plant.example
ssl_certificate_key /etc/nginx/tls/plant.key;
location / {
proxy_pass http://maestrohub:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}

maestrohub:8080 is the Docker image's port; the single binary listens on 6163 unless http.port says otherwise.

Caddy keeps the Host header and passes WebSocket upgrades by default:

andon.plant.example {
reverse_proxy maestrohub:8080
}

IIS needs URL Rewrite and Application Request Routing (ARR). ARR rewrites Host to the server it forwards to, so the rule below sends the name people opened as X-Forwarded-Host, which MaestroHub reads only from a proxy listed in http.trustedProxies (step 7 is required, not optional). On the IIS server:

  1. Install URL Rewrite and ARR (both from iis.net), then restart IIS Manager.

  2. Turn the proxy on: IIS Manager → the server node → Application Request Routing Cache → Server Proxy Settings → Enable proxy, or:

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -enabled:true /commit:apphost
  3. Create a site for these names (IIS Manager → Sites → Add Website, any empty folder) and put the web.config below in its folder.

  4. Allow the two server variables the rule sets: the site → URL Rewrite → View Server Variables → Add HTTP_X_FORWARDED_HOST, then Add HTTP_X_FORWARDED_PROTO.

    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="MaestroHub" stopProcessing="true">
    <match url="(.*)" />
    <serverVariables>
    <set name="HTTP_X_FORWARDED_HOST" value="{HTTP_HOST}" />
    <set name="HTTP_X_FORWARDED_PROTO" value="https" />
    </serverVariables>
    <action type="Rewrite" url="http://maestrohub-server:6163/{R:1}" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    6163 is the single binary's port (http.port); use 8080 for the Docker image. The rule touches only this site, so the other sites this IIS proxies are unchanged.

    The alternative is to keep the Host header for every site IIS proxies, server-wide:

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true /commit:apphost

    This setting applies to every site this IIS proxies, not only to MaestroHub's names: check the other proxied sites still work. With it, the HTTP_X_FORWARDED_HOST line is not needed.

  5. An HTTPS binding per name: the site → Bindings → Add: type https, the host name (andon.plant.example), port 443, Require Server Name Indication ticked, and a certificate that lists the name. Repeat for each app address.

  6. Install the WebSocket Protocol feature: Server Manager → Add Roles and Features → Web Server (IIS) → Web Server → Application Development → WebSocket Protocol. Without it the app loads but live values do not move.

  7. List the IIS server's IP address in http.trustedProxies in MaestroHub's config.yaml (for example trustedProxies: ["10.20.30.5"] under http), then restart MaestroHub. MaestroHub believes X-Forwarded-Host and X-Forwarded-For only from a listed proxy. Without this step the address is not recognised (Check says "the proxy at IP is not listed in http.trustedProxies"), live values do not move, and every station looks like the IIS server. With preserveHostHeader (step 4) the address and live values work without it, but station addresses still need it.

Do not let the proxy add Referrer-Policy: no-referrer on these names: apps then do not start, and the Ops view says referer_missing.

Helm: ingress.extraHosts​

Both charts take ingress.extraHosts, a list of names. The context-platform chart adds each name to the main and the WebSocket Ingress, with the same paths as ingress.host; the webhooks Ingress stays on ingress.host, which is where webhook senders are pointed. The single-node chart adds each name to its one Ingress.

ingress:
host: hub.plant.example
extraHosts:
- andon.plant.example
- hall-b.plant.example
tls:
- secretName: maestrohub-tls
hosts: [hub.plant.example, andon.plant.example, hall-b.plant.example]

The chart refuses to render, naming what to change, when:

  • ingress.tls is set and a name is in no tls[].hosts list (an entry *.plant.example covers andon.plant.example, one label below it);
  • ingress.extraHosts is set while ingress.enabled is false;
  • on the context-platform chart, context-platform-ui.apiURL is an absolute address: the UI opened on an app address would call the API on another origin. Keep it relative (/api/v1, the default).

The chart also tells MaestroHub which names its Ingress answers: ingress.host and every ingress.extraHosts entry. So on Helm, System Management → App addresses shows only the Helm setup steps, and marks a row Not routed when its name is in neither: the chart's Ingress will not send that name to MaestroHub. The mark is information: Check still asks the name (another Ingress, an OpenShift Route or a load balancer may route it), and a failed Check adds that the name is not in ingress.extraHosts. If the chart's Ingress should answer it, add the name to ingress.extraHosts and upgrade the release. With ingress.enabled false, your own Ingress routes the names, which MaestroHub cannot see, so no row is marked. On the single binary (Lite), DNS and your proxy decide, so no row is marked either. MaestroHub says at start which of these it believes, in one log line beginning "App addresses:".

App addresses cannot work on Siemens Industrial Edge, where the device's proxy owns the names.

Single sign-on​

  • Entra ID, Okta and Google refuse http redirect addresses; ADFS and Entra refuse an http assertion address. Use HTTPS for an address people sign in to with single sign-on, or let them sign in with a password or LDAP.

  • Register the callback and the sign-out address of each address with every OIDC provider. Without the sign-out address, Sign out on that address lands on MaestroHub's main address, or the provider says the redirect is invalid. Copy sign-in addresses on the row copies both, labelled: the Callback (…/auth/oidc/callback) and the Sign-out address (…/auth). Paste each address without its label:

    • Entra ID: App registrations → your app → Authentication → Web platform → Redirect URIs: add both addresses. Leave Front-channel logout URL alone.
    • ADFS: add both addresses under the Application group → Server application → Redirect URI. Registering the sign-out address too does no harm.
    • Okta: Applications → your app → General → Sign-in redirect URIs for the callback, Sign-out redirect URIs for the sign-out address.
    • Keycloak: Clients → your client → Settings → Valid redirect URIs for the callback, Valid post logout redirect URIs for the sign-out address.
    • Google: Google Cloud console → APIs & Services → Credentials → your OAuth client → Authorized redirect URIs for the callback. Google has no sign-out address to register.
  • Google signs people back in without asking unless the account chooser is used, and MaestroHub's Sign out does not end the Google session itself: the person who signed out stays signed in to Google (Gmail, Drive) in that browser. On a shared station, use a kiosk browser that resets its session, or a station profile with no Google accounts, and set the provider's Next sign-in after Sign out to Show the account chooser.

  • People who start from the identity provider's portal land on the MaestroHub home page, not on the app address; they open the app address afterwards.

  • SAML with more than one auth replica (known limitation, #8116). A SAML sign-in request is kept in the memory of the auth replica that sent it. With auth at two or more replicas, a sign-in answer that lands on another replica is accepted without being tied to the request its browser started (signature, issuer, audience, time window and recipient are still checked), so replay protection for SAML sign-in holds only with one auth replica. Run auth at one replica if that matters for your plant until #8116 lands, or use OIDC, whose sign-in state travels in a sealed browser cookie and completes on any replica.

allowedRedirectOrigins or App addresses. modules.auth.saml.allowedRedirectOrigins is for frontends outside MaestroHub, where the operator vouches for every path of that origin. For an address that opens a MaestroHub app, use App addresses: an address there receives SAML sign-ins only on its callback path and only once it is confirmed through its own name.

Shared stations​

  • Sign out at shift change. A station signed out asks the identity provider who is signing in next.
  • Screens nobody touches should be paired displays, not a person's session; an idle sign-out never signs a paired display out.
  • If you use idle sign-out (5 to 480 minutes, per address), give floor stations an address of their own (andon-floor.plant.example), so phones and personal computers opening the everyday address are not signed out.
  • A kiosk browser's own idle reset (Edge kiosk mode, Chrome's kiosk policy) should start on the app address.
  • On an address where sign-in starts on its own (exactly one single sign-on provider), the sign-in page first shows "Signing in with provider…" for three seconds with Sign in another way, so a person who signs in with a password or LDAP stays on MaestroHub's page; a kiosk needs no Back button.
  • Idle sign-out is enforced by the server: the session refuses to renew after the minutes pass without input, whatever happens to the browser. The minutes are fixed at sign-in; a change applies to the next sign-in. See Idle sign-out.
  • To pair a new wall screen on an app address, open <address>/pair directly, such as https://andon.plant.example/pair.

The way back​

A wrong entry never locks administrators out, because MaestroHub's own addresses can never be app addresses:

  • Lite: open the public address, any IP address of the server, or localhost.
  • Kubernetes, context-platform chart: kubectl -n <app namespace> port-forward svc/<release>-context-platform-ui 8080:80, then open http://localhost:8080. The UI pod's nginx passes the API on.
  • Kubernetes, single-node chart: kubectl -n <namespace> port-forward svc/<ce.fullname> 8080:<service.port>, then open http://localhost:8080. ce.fullname is <release>-context-platform-single-node, or the release name alone when it already contains the chart's name. With tls.enabled and plain HTTP off, the only port is tls.httpsPort: port-forward svc/<ce.fullname> 8443:<tls.httpsPort>, then https://localhost:8443.

Sign in there with a password account, such as the first administrator's: OIDC callbacks and SAML do not accept localhost.

Troubleshooting​

SymptomCauseFix
Full MaestroHub instead of the appName not on the list, or a typoCheck the entry; "Never opened" shows it
Full MaestroHub instead of the app, on another portOpened on Lite's other listener: plain HTTP (6163 for the single binary, 8080 in Docker) versus HTTPS (8443)Use the listed address, or expose only the HTTPS port
"This screen opened name over HTTPS, but it is set up for plain HTTP"Opened over the other schemePress the page's Open http://name; fix old bookmarks
"Your browser insists on HTTPS for this name"Chrome's HTTPS upgrade, or HSTS on the domainSwitch the entry to HTTPS
Certificate warningName missing from the certificateAdd it to tls[].hosts, or to the Lite certificate
Identity provider error page about the redirect addressCallback not registeredRegister the address from the row's Copy sign-in addresses
SAML: "The app address you came from is not confirmed for SAML sign-in yet", or the SAML button on the address is disabledEntry not confirmedPress ⋯ → Check on its row
Check: "MaestroHub's own address is no longer set…"Public address cleared: app addresses are paused (each still opens its app, but SAML sign-in and Check are off)Set it under System Management → Email → Public address.
Check: "MaestroHub's server could not look up address"The name resolves on the stations but not on MaestroHub's server (split DNS, a hosts-file entry only on stations)Add the name to the DNS server MaestroHub's server uses, or to its hosts file pointing at your proxy
Check: "MaestroHub's server could not connect to address", or "did not answer in time"A firewall, or a network that does not route back to itself (hairpin NAT), between MaestroHub's server and the nameLet the server reach the name, or point the name at the proxy's inside address in the server's hosts file
Check: "MaestroHub's server does not trust the certificate address presents"The certificate's authority is trusted by the stations but not by the server, or the name is missing from itInstall the authority on the server (Windows: Trusted Root store; Linux: system bundle or SSL_CERT_FILE), or fix the certificate
Check: "…the proxy at IP is not listed in http.trustedProxies…"IIS ARR (or another proxy) sends the name in X-Forwarded-Host, but MaestroHub does not trust that proxy, so it ignores the header. The startup log also says once per peer that it ignored one.List that IP in http.trustedProxies in config.yaml (step 7 of the IIS steps) and restart MaestroHub
Check: "…your proxy changes the name on the way…"Proxy rewrites Host and sends no X-Forwarded-HostSend X-Forwarded-Host from a trusted proxy (IIS: the rule's HTTP_X_FORWARDED_HOST line above) or keep the Host header (nginx: proxy_set_header Host $host; IIS server-wide: preserveHostHeader), then press Check again
Check: "A server answered at address, but it is not this MaestroHub"The name points at another server, or (several auth services) a service with another auth encryption keyPoint the name at this MaestroHub; give every auth service the same encryption key
A station shows "MaestroHub can't tell that this page came through name"Same as the two rows above: the proxy rewrites the name, or sends it from a peer not in http.trustedProxiesPress Check on the row: it names which, and the fix
A station shows "This address opens a workspace that was deleted"The workspace the address opens was deleted (it can still be restored)Restore the workspace, or change or delete the address
Row marked Not routed (Helm)The name is not ingress.host and not in ingress.extraHosts, so the chart's Ingress does not answer itAdd it to ingress.extraHosts (and to a tls[].hosts entry when ingress.tls is set), then upgrade the release
"Can't reach MaestroHub at this address" on a stationThe name is not routed to MaestroHub, or MaestroHub is downRoute the name to MaestroHub (DNS, proxy or Ingress); check MaestroHub is running
After Sign out, lands on MaestroHub's main address, or the identity provider says "invalid redirect"Sign-out address not registered for this nameRegister it from the row's Copy sign-in addresses
After Sign out, the next sign-in is the last personThe identity provider ignored the forced promptChoose "Use another account"; for Google, set "Show the account chooser"
App loads, values don't moveProxy rewrites Host, so the live-data socket is refusedKeep Host, or send X-Forwarded-Host from a proxy listed in http.trustedProxies (the startup log names an ignored one)
App loads, values don't move, and Host is preserved (IIS)The IIS WebSocket Protocol feature is not installedInstall it: Server Manager → Web Server → Application Development → WebSocket Protocol
App never starts, Ops says referer_missingProxy sends Referrer-Policy: no-referrerRemove that header for this name
SAML sign-in fails on the stationThe station can't reach MaestroHub's own addressMake it reachable, or use OIDC
A saved app link (.../kiosk) now opens another appThe app was deleted and a new one took its nameUpdate the bookmark; app addresses are bound to the app itself and don't have this problem

Provider configuration for the builder​

note

The builder's chat seat checks Maestro: if the maestro licence feature is off, the module is disabled, its assistant did not start, or no provider or model is configured, the builder opens on its Build with your AI client panel and the rest of the builder works the same. The panel says which of these it is, worded for the reader: a person who can fix it is shown where, everyone else is told to ask their administrator (see When Maestro cannot answer). GET /api/v1/maestro/status answers the same verdict for any caller with maestro_chat:use: {ready, reason} with reason license_off, maestro_off, agent_off, no_provider or no_models; with the module switched off the server still answers it (maestro_off). Viewing and running apps never depends on Maestro. Maestro is in release 3.0 as Beta: a licence that carries the maestro feature is available on request as early access.

App Studio adds no parallel LLM configuration. The builder page embeds the regular Maestro chat panel on an app-bound session with the seeded App Studio Builder playbook pinned (modules/maestro/seed/playbooks/14-app-studio-builder.yaml; app-kind sessions refuse to run without it). Everything about providers and spend is Maestro's:

  • Providers and model catalog: Second Brain → Providers (/:workspaceSlug/maestro/settings, needs maestro_settings:read).
  • Spend controls and usage: Second Brain → Usage (/:workspaceSlug/maestro/usage): the per-workspace enable toggle, monthly token budget and fallback account live there. Each app's own builder spend (last 30 days) is shown on the app's Ops page, read from Maestro usage under the app: source prefix.
  • Prerequisites: modules.maestro.enabled: true, a provider configured with an enabled model, and the maestro licence feature. Until all three hold, GET /api/v1/maestro/status names the missing one and every Maestro surface hides or says why; enabled with a provider but no licence feature, the other Maestro routes answer 403 MAESTRO_DISABLED.
  • The other way to build: an outside AI client over MCP needs the MCP server on (mcp.enabled, on by default; on Kubernetes the mcpgateway pod, mcpgateway.enabled). It does not need Maestro.

Maestro on Kubernetes (Helm)​

The chart runs Maestro as its own pod (maestro.enabled, rendered by the umbrella under templates/maestro). Nothing about providers changes: accounts are still created at runtime under Second Brain → Providers and stored in maestro_db, encrypted with secrets.maestroEncryptionKey, so back that key up with the database. The builder's tool surface is assembled across pods: every module pod serves its MCP tools on the message bus (global.mcp.modules, filtered by each module's enabled), Maestro fans out over them, and /api/v1/mcp (the URL external MCP clients use) is served as the same aggregate by its own small pod, mcpgateway (mcpgateway.enabled), so it does not depend on Maestro. maestro.replicas may be raised: sessions live in Postgres, per-user rate-limit buckets in the coordinator's KV, and the session-retention sweeper (maestro.retention.schedule) is leader-elected. With maestro.enabled: false the builder opens on its "Build with your AI client" panel: apps are built from an outside MCP client through /api/v1/mcp, and viewing and running apps is unaffected.

note

The Apps → Builder route is gated on app_studio only, not on maestro. With App Studio licensed and Maestro not (or with no AI provider set up), the builder opens on its Build with your AI client panel: apps are built from an outside MCP client through /api/v1/mcp, which on Kubernetes is the mcpgateway pod and does not depend on Maestro. The draft, preview, versions and release review all work. Viewing, sharing, cloning and running published apps never needed Maestro.

Fair use​

Three primitives bound an app's footprint; each announces itself when it bites (docs/architecture/app-studio/LOAD-TESTS.md §1):

SurfaceKnobRefusal
Every API call made with an app tokenmodules.appstudio.rateLimit.{enabled, requestsPerSecond, burst}, one token bucket per (workspace, app), shared by all viewers of that app; defaults 50 rps / burst 100429 APP_RATE_LIMITED with Retry-After
Live UNS subscriptions per app-token socketwebsocket.appMaxSubscriptionsPerConnection (default 200; user sessions are uncapped)uns:error code subscribe_limit
History reads (versions, checkpoints)fixed LIMIT of 200 newest rows in SQLsilently bounded
A connector function's result handed to an app (connectors.execute / run / useFunction on an app token)fixed 4 MiB (AppResultMaxBytes, connectors' execute route); people and pipelines are not capped here413 RESULT_TOO_LARGE: the call ran; the refusal says to add a limit or filter to the function's query, or to page

The bucket is keyed on the app, not the viewer: fifty displays of one app share one budget, so a polling loop in the app is charged to the app, not to the workspace. Sizing evidence and the load harness (tools/appstudio-load) are in LOAD-TESTS.md.

Published-app limit​

A licence can cap how many apps the instance has published (limits.max_published_apps), every workspace together, like its caps on pipelines and connections. An app counts once its first version is live; a new version of a published app, a rollback or a re-approval takes no new slot, and a switched-off app still counts. Making one more app live past the cap answers 403 RESOURCE_LIMIT_REACHED (resource: "published app") and the version stays a draft; the count is read under the platform's create lock, so two approvals at once cannot both take the last slot. GET /api/v1/appstudio/published-count (app:publish) answers the count; the Admin Overview meters it against the cap and warns at 80%. A licence without the field sets no cap.

Operations​

  • Overview: App Studio's front door (/:workspaceSlug/studio, where the rail's App Studio icon lands): one sentence on the state of things; a needs-attention queue holding only what the reader can fix: for app:publish holders one row while App Studio refuses, rate-limits or fails calls (or the monitoring store does not answer), pointing at the Health panel below it; for anyone who can update an app, each switched-off app, linking to its Operations page; then Your apps (starred first, then drafts you can finish, then the latest changed, each with Run and, for an editor, Builder) and, for people who can create, four starters to begin from.
  • Health panel: on the Overview, for app:publish holders (there is no separate page; the old /:workspaceSlug/studio/health address lands on the Overview): calls, denied, rate-limited and errors per minute, mean platform latency, and live/draft/disabled app counts for the last minute, read from the monitoring store. When the store does not answer the panel says so instead of showing zeros.
  • Per-app Ops page: /:workspaceSlug/apps/:id/ops (app:update): per route family (UNS data, connector functions, pipelines, dashboards, app storage) calls, denials, errors, p95 with the platform-vs-connector split, the notable-call ring, and the app's builder spend. Numbers cover the calls served by every pod (each pod reports its app calls to the App Studio service) since the App Studio service started; a restart of it empties them.
  • Kill switch: the Operations page's first card. Switch off (POST /appstudio/apps/:id/disable with a reason, app:update; a person, an agent or a token may stop an app; audited as app.disabled) switches the app off for everyone at once: viewers see who switched it off, when and why, no new app token is issued, every pod refuses the app's tokens on their next request (Kubernetes included: the lifecycle event reaches every data pod's front door), and everyone who can switch it back on is notified. Switch on (POST /appstudio/apps/:id/enable) is a go-live decision: app:publish, a person signed in, the same reach check as a release, audited as app.published with via: enable; the button is shown disabled, with that reason, to people who cannot. PUT /appstudio/apps/:id refuses a disabled field (400 USE_DISABLE_ROUTE), and the AI tools can switch an app off but never on. A switched-off app a socket opened with the app's token is refused, and the subscriptions of sockets already open end at the next revocation sweep (uns.wsRevocationSLA, 60 s by default) with the app_disabled reason. Every app socket also ends when its app token expires (5 minutes); a running app reconnects at once with the fresh token the shell holds, so only an app nobody is running, or a viewer who lost access, stops receiving. Nothing is unpublished; Switch on brings the same version back. The builder keeps working on a disabled app, publish included.
  • Metrics: all under maestrohub_appstudio_* (modules/appstudio/infrastructure/metrics/metrics.go): app_calls_total{workspace,family,outcome}, app_call_platform_ms and app_call_upstream_ms histograms {family}, app_denials_total{workspace,code}, rate_limited_total{workspace}, token_exchanges_total{workspace,outcome}, apps{state}, and serving_responses_total{kind,class} (every response under /_apps/ and, on the single binary, /appstudio-runtime/, by kind document, page, boot, bundle, draft_bundle, vendor, check and status class; these never reach the access log). The workspace label (the workspace) is bounded to the first 100 workspaces seen per process; overflow folds into other.
  • Alerts and runbook: docs/appstudio-alerts.yaml ships five Prometheus rules (AppStudioRateLimiting, AppStudioDenialsSpike, AppStudioErrorRate, AppStudioPlatformLatency, AppStudioTokenExchangeFailing, plus the informational AppStudioAppsDisabled); each points at a section of docs/appstudio-runbook.md, which also lists the start-up announcements and the common workflows. Load the rules with rule_files: [appstudio-alerts.yaml].
  • Audit: every write an app makes reaches the audit trail with app_id and app_version_id: each confirmed write is its own row (who confirmed in MaestroHub's own dialog, when, the confirmation id and what the dialog showed); plain writes leave one row per person, app and action per minute with a count; reads are not audited; their figures are on the Operations page and the Health panel. Every go-live (a release, an activate, a rollback, a showcase, a switch-on) leaves one app.published row whose via names the path. Filter the Audit page by acting app.
  • Approver: the App identities page shows who made each live version live, when and how, and flags in amber when that person no longer holds what the app does as itself (nothing is revoked; the next release must be approved by someone who holds it). When an approver is deleted or deactivated, the people who can publish the app are notified once.
  • Repeated self-navigation: when the same version of an app leaves its page three times since MaestroHub started, the people who can publish it get one lasting notification (an app that navigates itself away can be sending data elsewhere). The Operations figures are in memory, since MaestroHub started.

Backup and restore​

App Studio → Operate → App Backup & Restore (/:workspaceSlug/studio/backup) carries the App Studio backup card; the sidebar entry is shown to app:backup holders. (It used to sit on Admin → Maintain → Backup & Migration, which now carries bundle export/import only.) Both controls need app:backup (granted with Apps.Admin and Workspace.Admin) and are shown disabled with that reason otherwise.

  • Download streams GET /appstudio/backup: a gzip'd tar (appstudio-backup/1) of the workspace's App Studio tables plus every per-app git directory and built bundles; the two must travel together, because a version row is a pointer to a commit.
  • Restore uploads to POST /appstudio/restore?mode=refuse|replace. refuse (default) answers 409 RESTORE_TARGET_NOT_EMPTY if the workspace already has any app; replace deletes the workspace's App Studio data first and requires the destructive confirmation (the card's confirm dialog sends X-MaestroHub-Confirmed-At). The archive's workspace_id must equal the target workspace. Ephemeral tables (edit sessions, idempotency keys) are skipped and the report says so. Body capped at 2 GiB. Restored apps that had a live version come back switched off ("restored from a backup", by the person restoring); switching one on is a release decision. Approvals, shares and an app's own rights are never read from an archive; an app new to this installation is owned by the person restoring. A restore whose live apps would take the instance past max_published_apps is refused before anything is touched (switched-off apps count).

Restore is not atomic across tables and git; a mid-way failure leaves a partial workspace and the error says to re-run with mode=replace. File-level backups must include both modules.appstudio.storage and storage.git.path; the module's /health backup-paths component and its Start log name both paths. Details and the automated drills: docs/architecture/app-studio/DATA-SAFETY.md.

Runtime versions​

Every published version records the runtime it was built against (runtime-vN: the pinned react, react-dom, @maestrohub/sdk, @maestrohub/app-ui and three bundle set served at /appstudio-runtime/<rt>/runtime-vN/ on the platform's own address, where <rt> names the exact bytes of this build). A platform upgrade that ships a newer runtime changes nothing for a published app; republishing is the only way a version moves runtimes.

  • The registry is compile-time static (GET /appstudio/runtimes); the module logs the current runtime and its support window at Start.
  • A runtime is current until the next ships, then supported until release + 18 months, then sunset. An app pinned to a sunset runtime gets a 410 teaching page ("published against runtime-vN, which this platform no longer serves; republish from the builder"); its source and versions are untouched.
  • Compatibility page: App Studio → Operate → Compatibility (/:workspaceSlug/studio/compatibility), for app:publish holders. The scan is collapsed by default because opening it runs GET /appstudio/fleet/compat, which rebuilds every published app (up to 200) against the current runtime and reports compatible, deprecated or broken per app.

Policy and machinery: docs/architecture/app-studio/SDK-VERSIONING.md.

Kubernetes (high-availability chart)​

On the high-availability Helm chart (deployment/context-platform/helm) App Studio is its own pod (the appstudio subchart, on by default) with the same module configuration as Lite under different keys. What is different from Lite:

  • One host name. Apps are served under /_apps on ingress.host: the chart's main Ingress routes /_apps to the appstudio pod, and the UI pod's nginx proxies /_apps/ to it as well (with appstudio.enabled: false both answer 404 "App Studio is not deployed on this installation."). No second DNS record or certificate. The old sandbox values are refused with the fix (see Removed settings). The pod renders platformOrigin empty, so MCP answers on this chart carry no builder link until the platform has one public address.
  • Single replica. The per-app git store is a ReadWriteOnce PVC (appstudio.persistence, mounted at /data/appstudio), so the pod runs as one replica with the Recreate rollout strategy, so a few seconds of app-serving downtime per upgrade. The chart refuses appstudio.replicas > 1.
  • Secrets. secrets.appstudioEncryptionKey (16/24/32 bytes) is the FR-32 key Lite generates for itself; the Postgres database appstudio_db is created by the release's db-init job and the connection is built from global.db*.
  • Backup. Add appstudio_db to backup.postgres.databases (it is in the default list) and enable backup.appstudio to tar the git PVC nightly; restore the two together, because version rows point at commits. The workspace-scoped archive on App Studio's Backup & restore page works unchanged.
  • Fair use and retention are the same knobs under appstudio.rateLimit and appstudio.storage.retention.
  • Live data reaches apps through the websocket pod, which admits app frames (Origin: null) and then requires the app's own token in the first frame. Every API pod answers app frames on the app-token routes only. The runtime bundles are served by the UI pod under /appstudio-runtime/<rt>/ with Access-Control-Allow-Origin: * (app frames import them as anonymous origins); /appstudio-runtime/BUILD and /build.json are sent no-store.
  • The builder chat needs Maestro's own pod (maestro.enabled, see Maestro on Kubernetes). Without it the Builder page opens on its Build with your AI client panel, served through /api/v1/mcp by the mcpgateway pod. Viewing, running, sharing, templates and the showcase work either way.
  • Alerts for App Studio are part of the chart's PrometheusRule (maestrohub.appstudio group) when alerts.enabled.

To run the Playwright suite against a local install of this chart, see deployment/context-platform/helm/values-e2e-local.yaml and deployment/local/e2e-enterprise.sh. The gap analysis that preceded this is docs/architecture/app-studio/ENTERPRISE.md.