Skip to content
THE OTA MANUALOperations & release

Operating Otto ​

Otto puts the public site, Console, documentation and API under one origin: https://otto.getcortexlabs.com, /dashboard, /docs and /api. A self-hosted installation uses the same paths on its own domain. The domain is the intended canonical address; verify the deployment before connecting production apps.

First delivery ​

Create an account, verify its email and create a workspace. The workspace selector opens existing workspaces; New workspace below that selector creates another. Owners manage apps, access, signing keys, tokens and storage. Publishers manage deliveries; viewers inspect the workspace.

Register the app identifier and platforms in the Console. In Settings → App & integrations, register your release public key, create a scoped publishing token, choose a channel and copy the generated ota.config.json. Keep the release private key in your signing environment. The app trusts both the release key and Otto's delivery public key; never put a publishing token in the app.

Build the store binary with its native runtime fingerprint. Use ota-ns pack and ota-ns verify, then publish:

sh
# Supply OTTO_TOKEN through your secret manager or shell environment.
ota-ns publish --bundle ./dist-ota \
  --endpoint https://otto.getcortexlabs.com/api/publish --channel beta

The Console offers delivery/pause/rollback, per-channel rollout percentages, native compatibility comparison and a request simulator. A compatible OTA changes JavaScript and assets. Changes to native dependencies, permissions or the native contract require a new store binary.

Observed installations ​

Activity → Installations shows the latest reported running version, startup confirmation, prepared release, recent failure and last contact. Counts cover references seen in the selected period, with a 30-day retention window and a limit of 10,000 references per app. They are not people, a count of every installed app, or proof of ongoing device health. Anonymous SDK reports still appear in the delivery log.

Opt in with a random UUID persisted by your app. Use a separate identifier per app; do not use an email address, advertising identifier or hardware identifier. For example, with NativeScript's platform types available:

ts
import { ApplicationSettings, isAndroid } from '@nativescript/core';
import { createOtaUpdates } from '@getcortexlabs/ota-nativescript';

let installId = ApplicationSettings.getString('otto.installation');
if (!installId) {
  installId = isAndroid ? java.util.UUID.randomUUID().toString() : NSUUID.UUID().UUIDString;
  ApplicationSettings.setString('otto.installation', installId);
}
const updates = createOtaUpdates({ installId });
// Use this instance for markReady(), checkAndStage() and event subscriptions.

Otto derives a platform/app-scoped HMAC reference and stores that reference rather than the raw ID. Reinstallation or restored app data may change identity semantics. Out-of-order reports remain in the log but cannot rewind a newer running state. A staged release is not counted as adoption. Recovery timestamps reflect when native recovery happened, even if reported later.

These lifecycle identity extensions require an SDK build that contains them. Older versions may send installId only on checks and remain anonymous in lifecycle events. The signed manifest and directive formats are unchanged.

Delivery protection ​

Settings → Delivery protection is off by default. Choose a time window, a failure percentage and at least three affected installation references. Only distinct identified clients offered the same active delivery sequence and reporting within the configured window contribute. Repeated reports cannot multiply the sample. Anonymous reports and failures from older delivery sequences cannot trigger a pause.

Automatic pause is a separate opt-in requiring the app name. Reports come from public clients and are not attested; this is a best-effort operational signal, not abuse-resistant device attestation. A pause stops new update directives, not downloads already staged on a device. Review the release before resuming manually.

Activity → Alerts lists the latest 100 alerts, with 90-day retention and a cap of 1,000 per app. Acknowledging an alert records review without changing delivery. Email is optional and subscribes only the verified owner who saves the setting. Failed sends retry with backoff up to five attempts. “Accepted by transport” does not prove inbox delivery.

Storage and retirement ​

Settings → Release storage lets owners pin, retire, restore and clean up artifacts. A current route remains protected even when its channel is archived or delivery is paused. Recently observed running, confirmed, staged and recovery versions are protected too.

Retirement stops redispatch and republication. Cleanup requires 30 days since retirement, expiration of the last offer/download's 30-day lease, no protected reference and a fresh server-checked plan. Pin releases needed by clients that can stay offline longer. Observations cannot account for every offline device.

Cleanup deletes bundle bytes and frees the workspace allowance, retaining the signed manifest, immutable release ID and audit history. A purged ID cannot be republished, downloads return HTTP 410, and restore is unavailable. SQLite can reuse freed pages without shrinking its file immediately. Native fingerprints can be deleted only without live bundle/installation references and without a pin.

Hosting acceptance ​

Run one Node server with a persistent local SQLite volume behind HTTPS. Back up using SQLite's online backup API, not a lone copy of an active WAL database. Verify restore in a separate data directory before upgrading. Never place the data directory or SMTP credentials in a public static directory.

Set OTTO_ORIGIN, OTTO_DATA_DIR, transactional SMTP and the verified administrator list. The private Otto repository includes the container, backup and deployment checks. OTTO_MAIL_MODE=file is a loopback-only local outbox, not production delivery.

Before declaring the hosted service ready, validate HTTPS and the intended origin, persistent data across restarts, account verification/recovery and invitation mail, a real CLI publish, signed checks, a cold launch on iOS/Android and the Console's matching reports. The local suite cannot prove DNS, TLS termination, real inbox delivery or the host's backup schedule.