Documentation v0.43.0-rc.21 all versions

Migrating from 0.42 to 0.43

This guide targets Obelisk 0.43.0-rc.21. It is based on the published release notes of every 0.43.0 release candidate. Audit every deployment, configuration file, script, and CI workflow against these changes. Apps older than 0.42 must first follow the 0.42 migration guide.

Check the app name

App names must be 4-25 characters of lowercase ASCII letters, digits, and interior hyphens or underscores. 0.42 accepted 1-63 characters. Rename any app whose app_name (or OBELISK_APP_NAME) falls outside this range. Apps deployed with obelisk cloud must also fit the cloud rule: 4-20 characters, no underscores or double hyphens, and unique within the cloud environment. The app name selects the default SQLite directory, so a renamed app starts with a new database unless server.toml sets the database directory explicitly.

Every app.toml must now set app_name; a file without it fails to parse. OBELISK_APP_NAME alone names the app only when the server runs without an app config file. Add app_name to any app.toml that relied on the variable.

Separate component verification from policy verification

deployment verify now checks components without loading app policy, server configuration, runtime values, or database state:

obelisk deployment verify --deployment deployment.toml

Remove --app-config, --server-config, --allow-unavailable-runtime-config, and --fix from this command. To verify app and platform permissions or runtime configuration, use server verify:

obelisk server verify --skip-db --app-config app.toml --deployment deployment.toml
# If the app intentionally needs platform settings:
obelisk server verify --skip-db --server-config server.toml --app-config app.toml --deployment deployment.toml
# CI without injected secret values:
obelisk server verify --skip-db --allow-unavailable-runtime-config --app-config app.toml --deployment deployment.toml

server verify also performs every component check of deployment verify, so CI that already runs server verify for a deployment does not need both. server verify --skip-db needs --deployment; without --skip-db it falls back to the database's enqueued or active deployment. An app policy is always checked against a deployment, so verify a policy file that ships without its own deployment against a deployment that runs under it.

--allow-unavailable-runtime-config tolerates missing runtime values only. Required public environment and secret declarations, outbound HTTP permissions, exec approvals, and secret-exposure grants still have to exist. It does not bypass the app or platform policy. Variables interpolated with ${...} into app.toml [[outbound_http.allowed_host]] rules are not tolerated: verification fails while they are unset, so CI must supply them, for example as placeholder URLs. A missing variable in a deployment allowed_host rule only skips that rule with a warning.

server run and server verify discover ./app.toml when --app-config is omitted. An explicit path takes precedence. Without either an explicit file or discovered file, built-in app defaults apply and the app name must come from OBELISK_APP_NAME. Startup fails when OBELISK_APP_NAME and app_name are both set and differ; unset the stale variable.

--api-url of the direct API commands (deployment, execution, component, admin) no longer has the -a shorthand, which now always means --app-config. Replace -a <URL> with --api-url <URL> or set OBELISK_API_URL.

Repair policy explicitly

Policy repair moved to server verify. Review the resulting configuration changes:

obelisk server verify --skip-db --app-config app.toml --deployment deployment.toml --fix

--fix applies all app repairs, including declarations, outbound HTTP secret replacements, exec approvals, and secret exposure grants. To limit a repair, use one or more of:

  • --fix-app-declarations
  • --fix-app-http-permissions
  • --fix-app-exec-permissions
  • --fix-app-secret-exposure

Platform exec permissions need the separate --fix-server-exec-permissions flag and a target --server-config file. Repairs require the configuration paths to modify (a discovered ./app.toml counts) and a deployment file, preserve existing grants, and rerun verification.

Remove generated metadata from authored deployments

Delete every content_digest and component_files field from authored deployment.toml files, including fields on JavaScript, WASM, exec scripts, and referenced files. They are generated upload metadata and are now rejected as authored input. Update generators and CI digest-repair scripts accordingly. The CLI adds metadata during submission and removes it from exports. Pin a genuine cross-repository OCI dependency with its OCI @sha256:... reference instead.

Remove experimental VM activities

RC17 removes [[activity_vm]] and all experimental VM backends. Remove VM components from every deployment and [limits.activities.vm_bochs] from server configuration before upgrading. Setting OBELISK_UNSTABLE_ACTIVITY_VM no longer enables them. Apps that depend on VM activities must replace that workload before upgrading.

Install system certificates for HTTPS

Outbound HTTPS from activities and webhooks now trusts the host's system certificates instead of bundled Mozilla roots. Install a CA bundle on every host and in custom container images, including any private CAs the app requires. A host without a CA bundle cannot make these HTTPS requests.

Move gRPC clients to REST

The deprecated gRPC and gRPC-web API and proto/obelisk.proto have been removed. Port any client generated from the proto file to the REST API, served on the same api.listening_addr. The CLI and the Web UI already use REST. OTLP trace export over gRPC is unaffected.

Update authentication

server run --allow-unauthenticated-api is removed and the API always requires a token. For local development use server run --dev, which prints the startup token, and send that token from clients; scripts should instead set OBELISK_API_TOKEN on both the server and the client. Replace OBELISK__API__TOKEN with OBELISK_API_TOKEN; the legacy fallback has also been removed. --api-token and server api.token_hashes remain supported.

Apps whose components call their own server's API no longer need an operator-supplied token for it. Declare the secret as internal and drop the instructions and scripts that generated and exported the token for the app:

[secrets]
OBELISK_API_TOKEN = { type = "internal" }

The value is the server's startup token, rotates on every restart, and requires an enabled API. The startup token is no longer printed outside --dev, so do not scrape it from server output. Keep an env-backed secret when the token targets a different server.

The API can also accept OIDC ID tokens, such as Fly.io machine tokens, from issuers trusted in api.oidc; see Authentication.

api.token_hashes is read once at startup: adding or revoking a hash in server.toml requires a restart. Earlier 0.43 release candidates reloaded the file live and emitted api.token_hashes_loaded and api.token_hashes_changed system events; both are gone. OIDC signing keys are still refreshed while the server runs.

Platforms running several apps can set app_env_prefix in server.toml; app public env and env-backed secrets are then read only from the prefixed variable names.

Simplify app URLs and outbound HTTP rules

Apps whose components call their own server's API or link to its Web UI no longer need the operator to supply those URLs. Replace env-backed declarations with internal public environment entries:

[public_env]
OBELISK_API_URL = { type = "internal", source = "api-url" }
OBELISK_WEBUI_URL = { type = "internal", source = "webui-url" }

The server resolves them from its own listeners and ignores process variables of the same name. Set webui.public_url in server.toml when the Web UI is reached through a proxy, so browser links use the public address. Drop the corresponding variables from run scripts, .env files, and cloud environments; cloud app push --fill skips internal entries.

Outbound HTTP rules in app.toml and deployments accept url_prefix with an optional url_regex_suffix instead of pattern and request_url_regex. Apps that needed separate environment variables for the host pattern, the request regex, and the path can derive everything from a single URL variable:

# Before: three related variables, kept consistent by hand.
[[outbound_http.allowed_host]]
pattern = "${LLM_HOST}"
methods = ["POST"]
request_url_regex = "^POST ${LLM_URL_REGEX}${LLM_PATH}"

# After: one URL variable, matched literally.
[[outbound_http.allowed_host]]
url_prefix = "${LLM_URL}"
methods = ["POST"]
url_regex_suffix = "/v1/chat/completions$"

Environment variables expand before the prefix is regex-escaped. A trailing slash is kept and matched literally, so https://host/repos/ does not match /repos-other; a bare origin matches any path. The prefix must be an absolute HTTP(S) URL without credentials, query, fragment, or wildcards; keep pattern for wildcard hosts. The suffix is appended as a regex group, must not start with ^, and should end with $ to allow exactly one endpoint; without it, any continuation of the prefix matches. An entry cannot mix the two forms. See URL prefix rules.

Outbound requests may not set any Obelisk-Int-* header: the prefix is reserved for headers Obelisk sends to integration origins, such as Obelisk-Int-Execution-Id. Such a request is denied with an outbound_http.denied system event whose rejected_by is reserved_header. Rename custom headers that use the prefix.

Name webhook HTTP servers explicitly

Webhook listeners moved into one http_server table keyed by name. The old keys fail to load:

# Before
external.listening_addr = "127.0.0.1:9090"
[[http_server]]
name = "partner"
listening_addr = "0.0.0.0:9000"

# After
http_server.external.listening_addr = "127.0.0.1:9090"
[http_server.partner]
listening_addr = "0.0.0.0:9000"

Every webhook endpoint must now set http_server; it no longer defaults to external. Choose http_server = "external" for public pages and actual incoming webhooks. Choose http_server = "internal" for private pages and tools, including agent interfaces that spend LLM tokens or change apps. Do not make these interfaces public just to preserve the old listener. The built-in internal server listens on 127.0.0.1:9091; Obelisk Cloud serves it behind platform authentication at https://internal--<app>.<domain>. For local development, server run --dev (for example in just serve) starts it without credentials; keep the listener on localhost. The Web UI stays in [webui].

A server without credentials starts only when app.toml lists it, so external is closed until the app admin opens it. Apps serving public webhooks add:

public_http_servers = ["external"]

The reserved internal server cannot be listed: it needs credentials, or server run --dev locally. Require tokens for a whole listener with [[http_server.<name>.oidc]] or api_auth = true; see Credentials and public servers. Components that need a server's URL can read it with { type = "internal", source = "http-server-url", http_server = "<name>" }.

Verify a local development deployment with server verify --dev, matching server run --dev:

obelisk server verify --dev --skip-db --server-config server.toml --app-config app.toml --deployment deployment.toml

Replace OBELISK__HTTP_SERVER__INTERNAL__API_AUTH=true prefixes on verification commands with --dev. This checks the development listener configuration without requiring credentials on the internal server. Production verification should use the production authentication configuration.

Audit stdout consumers

Human-readable listings, progress, and confirmations now go to stderr. Stdout carries IDs, JSON, generated configuration, source content, and execution logs. Scripts parsing human-readable stdout must use --json or deliberately capture stderr. This applies to cloud commands too.

Deployment submit, apply, and enqueue print the deployment ID to stdout. --json is now available for those commands, deployment list, component list, execution pause, unpause, cancel, and upgrade. Execution JSON follow modes emit flushed NDJSON: one compact JSON object per line, including submission responses, log records, and final results. Do not parse a followed execution as one JSON document.

Without --json, execution results are pretty-printed as JSON on stdout with completion messages on stderr, and the logs of execution submit --follow-logs move to stderr. obelisk execution get is removed: use execution status for the current state or execution result for the final result.

Audit REST consumers and JS webhooks

Use JSON for structured REST resources and actions. Structured text/plain representations have been removed. WIT, source files, IDs, scalar app-config digests, execution-log streams, and SSE retain their supported representations.

Clients decoding /v1/components exports must accept the new extension value "schedule_with_id" for -schedule-with-id functions; it is distinct from "schedule".

System-event retention requests must explicitly include dry_run: use true to preview and false to delete. Omission returns HTTP 422 without deleting events; the CLI already supplies it. Retention never deletes events of the current node run.

Each deployment start or switch records one deployment.policy.applied system event instead of per-component component.http_policy.applied and component.secret_exposure.authorized events. Its details hold every component's HTTP policy and secret exposure. outbound_http.denied links to it through policy_event_id, replacing component_policy_event_id and server_configuration_event_id. The server.configuration.resolved snapshot format is now obelisk-server-configuration-v3 and includes the full app_policy.

Use the 0.43 CLI with servers version 0.42 or newer. Replay responses must include replayed_event_count, replay_duration_ms, and replay_version; structured missing-runtime-config responses must include optional_public_env and required_public_env. The CLI no longer supplies compatibility defaults for these fields. Replay failure details remain optional.

GET /v1/info returns the app name, app_env_prefix, Obelisk version, deployment ID, node run ID, switch_count, app config digest, start time, the started HTTP servers (http_servers), and the execution retention settings (gc). GET /v1/admin/node-run-id is deprecated and will be removed after 0.43; read node_run_id from /v1/info instead.

GET /v1/app-config and GET /v1/app-config-digest are deprecated and will be removed after 0.43. Read the policy from GET /v1/app-policy (JSON, or TOML with Accept: application/toml), which returns the policy object directly instead of wrapping it in { app_config_digest, policy }, and read app_config_digest from GET /v1/info.

In Boa and V8 activities and webhooks, fetch reports the canonical Response.statusText for the status code, not the reason phrase sent by the server. A webhook Response accepts options.statusText, which must be a valid reason phrase.

In JS activities and webhooks, fetch resolves once the response headers arrive and exposes the body as a ReadableStream, and a webhook handler can return a streaming Response. See JS activities and JS webhooks. In V8 activities, response.headers is now a Headers object instead of a Map: get of a missing name returns null instead of undefined, and there is no size. [webhooks] request_timeout now limits only the time until the response headers are returned, for every webhook kind. Handlers that stream for longer than the timeout are no longer cut off.

GET /v1/execution-id and GET /v1/deployment-id are deprecated. Generate execution IDs locally, for example with obelisk generate execution-id, and read deployment_id from GET /v1/info. Clients polling responses, logs, or statuses can switch to the follow=true streams and POST /v1/executions/status/batch described in REST API.

Boa and V8 webhooks no longer receive automatic __OBELISK_JS_SOURCE__ or __OBELISK_JS_FILE_NAME__ environment variables. Pass application metadata through deployment env_vars when needed. Module loading still uses the module graph in both runtimes.

WIT compatibility and caller-supplied schedule IDs

The generated packages are now obelisk:types@6.1.0, obelisk:workflow@7.1.0, and obelisk:webhook@7.1.0. Existing components importing types 6.0.0 and workflow/webhook 7.0.0 remain accepted, so regenerating existing WIT is optional unless adopting the new extensions.

If you regenerate support or dependency WIT, update authored worlds and native WIT imports to match the generated packages: workflow and webhook references become @7.1.0, and types become @6.1.0. This includes workflow-support and workflow-dynamic-support. A world importing @7.0.0 cannot resolve a dependency directory that contains only @7.1.0; acceptance of existing compiled components does not make those source package names interchangeable. To regenerate with the target CLI:

obelisk generate wit-support workflow wit/deps --force
# For webhook components, use webhook_endpoint instead of workflow.
obelisk generate wit-extensions --help

Typed -schedule-with-id extensions let workflows and webhooks supply a top-level execution ID. JavaScript typed schedules accept executionId in the leading schedule object. Matching retries reuse the original execution; a different target, parameters, or timing conflicts. Relative timing compares the original offset from creation. Retrying never reschedules an execution.

Cron overlap and lock extension

A newly registered recurring cron now waits for its first occurrence instead of submitting the target function on deploy. @once still submits immediately.

Cron entries accept overlap. The default, "skip", skips a tick while the execution submitted by the previous tick is unfinished. Earlier releases submitted on every tick; set overlap = "allow" to keep that behavior. See Cron.

Lock extension now renews the lock once half of exec.lock_expiry has elapsed. exec.lock_extension_leeway is still accepted but ignored with a warning; remove it.

Cron scheduler executions no longer have IDs derived from the cron configuration. A recurring scheduler hands over to a new execution after about 1,000 events, and old schedulers are deleted by ordinary retention. Look up schedulers by their obelisk:schedule/ FFQN prefix instead of a computed ID. Existing schedulers are adopted automatically. See Cron.

Size keys with units

Byte sizes now take the unit as the key, like the execution-slot memory limits: bytes, kib, mib or gib. The 0.42 byte counts are still accepted with a deprecation warning, but setting both forms of one limit is an error.

0.420.43
limits.max_persisted_value_size_bytes = 1048576limits.max_persisted_value_size.mib = 1
limits.max_deployment_file_bytes = 20971520limits.max_deployment_file_size.mib = 20
limits.max_transport_message_size_bytes = 536870912limits.max_transport_message_size.mib = 512
[[activity_exec]] max_output_bytes = 4096[[activity_exec]] max_output_size.kib = 4

SQLite space reclamation

The first 0.43 startup converts an existing SQLite database to incremental auto-vacuum with a full VACUUM. Expect a longer startup for a large database and keep free disk space up to twice the database size. Afterwards automatic maintenance shrinks the file as retention deletes data. See Server configuration.

Native V8 is the default JS runtime

JavaScript workflows, activities, and webhooks now run on native V8 isolates unless the server is started with OBELISK_JS_RUNTIME=boa-wasm. Their execution slots move from the wasm cells of [limits] to the v8 cells, which grant fewer slots by default (16 activities, 100 workflows, 16 webhook endpoints). Raise those cells if the app relies on the higher wasm defaults, or set OBELISK_JS_RUNTIME=boa-wasm to keep running on Boa. See JS runtime.

Selecting a stored deployment

server run and server verify accept --deployment-id to select a stored deployment instead of a file; run activates it, verify checks it without activation. See CLI.

Deployment reuse and cloud commands

Each deployment content is stored once: deployment digests are unique. deployment submit, apply, and enqueue resubmit stored content under its existing ID, refreshing it for retention. Omitting --description keeps the stored description and --description "" clears it. Submitting stored content under a different explicit ID returns 409 Conflict; look up its ID with GET /v1/deployment-digests/{digest}. Scripts must tolerate a successful submission returning an existing ID. POST /v1/deployments is deprecated in favor of PUT /v1/deployments/{deployment-id}.

PUT /v1/deployments/{deployment-id}/switch requires If-Match: "<node_run_id>:<switch_count>", both read from GET /v1/info. Read it once per switch and reuse it on retries: a request that would change state with a stale value gets 412 with the current state in its body, a retry whose earlier attempt succeeded gets 200, and a missing header gets 428. The deployment apply and deployment enqueue commands send it. See the switch endpoint.

Databases already storing the same content under several deployments migrate without changes to those deployments: one stays unique (the active or enqueued one, otherwise the most recently updated) and the others are marked as superseded by it. Resubmitting that content resolves to the unique deployment.

New cloud commands manage apps, tokens, policy, environment variables, and secrets. App-scoped commands, including deployment, execution, component, and admin, live under cloud app, and --app is an option of cloud app. Select an app with --app, OBELISK_APP_NAME, or app_name in ./app.toml. cloud app push publishes a local project in one step.

RC17 changes cloud-credentials.toml from [[account]] arrays to named [account."name"] tables. Manually convert each table using its saved account name, or remove the credentials file and log in again. Account selection is case-sensitive. cloud auth login --account <ALIAS> names a saved login, and --default selects it as the default. Refreshing a login preserves its saved name; backends are distinguished by the full API URL. Login uses OBELISK_CLOUD_API_URL when no explicit URL is supplied, falling back to https://cloud.obeli.sk/api when the variable is unset or empty.

Scripts written against earlier 0.43 release candidates must be updated:

  • cloud app deploy is now cloud app push, pairing with cloud app pull.
  • cloud app deployment enqueue, apply, and verify are removed. Stage a deployment with cloud app stage --deployment <ID> and run cloud app apply; verify locally with deployment verify or server verify.
  • --empty is now --empty-deployment. cloud app push and cloud app stage reject --empty; deployment submit, enqueue, apply, and server run still accept it as an alias.
  • server checkpoint is removed.
  • [cloud] memory_mb = 512 in app.toml is now memory.mib = 512 (or memory.gib); the old key is rejected, not deprecated. In the browser integration, session_memory_mb is now session_memory.mib and max_ttl = "30m" is now max_ttl.minutes = 30; the cloud validates these when the app is staged.
  • cloud app start and cloud app stop, later named reactivate and deactivate, are now cloud app enable and cloud app disable.
  • Configuration changes are staged into named drafts (--draft, default default). cloud app status shows the applied revision, your drafts, VM health, and failing wake-ups, and compares the local app.toml with the default draft; apply applies a staged draft and apply --reapply re-applies the applied revision. unstage discards a draft. push stages into its own temporary draft.
  • cloud app events lists recent lifecycle and VM events; cloud app logs shows the VM's logs.
  • App names starting with system- or integrations- are reserved.
  • Public environment variables bound in [cloud.integrations] receive their value from the cloud and are never prompted for. See Cloud Integrations.
  • Missing required env vars and secrets fail in the client. cloud app push takes --env NAME[=VALUE] (a bare name reads the same-named environment variable), --secret NAME (reads the same-named environment variable), --fill (prompts), and --fill-non-interactive (reads same-named environment variables). There is no cloud app fill; stage values into a draft with env set and secrets set.
  • apply never stages app.toml or values: it applies only what is staged, with the active deployment.
  • cloud app env set/unset and secrets set/unset stage into a draft instead of changing the app immediately and no longer take --command-id.
  • --api-url and --apps-domain are gone. A custom deployment sets OBELISK_CLOUD_API_URL, OBELISK_CLOUD_APPS_DOMAIN and OBELISK_CLOUD_API_TOKEN together; a token alone targets https://cloud.obeli.sk/api.
  • cloud token new requires -o / --output (--token-file is accepted as an alias) and saves the server-issued token to that private file; --force replaces an existing file. Without --expires-at the new token inherits the expiry of the token that created it. Token names are unique per account until revoked; after a lost creation response, revoke the inaccessible token before creating a replacement.
  • cloud app env set and secrets set accept names starting with OBELISK_.
  • Cloud app names are limited to 4-20 characters without double hyphens and are unique within each cloud environment. An interactive cloud app push offers an alternative for a taken name.
  • cloud app new only creates a bare app with app_name (from --app or ./app.toml) and fails when the name exists. It no longer takes a positional name, -a, or values; configure the app with cloud app stage or push, which also create a missing app.
  • cloud apps list is now cloud app list. --app follows the cloud app subcommand, as in cloud app status --app <NAME>; cloud app --app <NAME> status is rejected.
  • cloud app get and cloud app endpoint are removed. cloud app status shows the app and the endpoints it serves: the API, Web UI and internal webhooks, plus external webhooks when app.toml lists them in public_http_servers. With --json, they are under .app.endpoints.
  • --app and OBELISK_APP_NAME override the app_name of the app config in cloud app commands; the file is not modified. stage and push discover ./app.toml like apply, and status accepts -a.

Retention and system events

Automatic retention now defaults to 31 days instead of 30 and also keeps at most the newest 1,000 finished top-level execution trees and 100 inactive deployments. Set max_count = 0 under [maintenance.gc.retention.executions] or [maintenance.gc.retention.deployments] to keep the previous age-only behavior, or raise max_age and max_count if you need a longer history. See Automatic Maintenance and Retention.

Active cron trackers are excluded from execution retention. They are no longer reported as blocked, and an admin --count (retain_count) no longer spends kept slots on them.

Update consumers that filter system events by code or level:

  • maintenance.gc.blocked is renamed to maintenance.gc.deployments_in_use (still a warning).
  • Garbage collection that is deferred while a deployment submit or switch runs is recorded as info-level maintenance.gc.deferred_by_deployment instead of a maintenance.gc.failed warning.
  • A deployment submission that only lacks uploaded files, which the CLI sends first to learn which files the server needs, is recorded as info-level deployment.submit.files_missing instead of a deployment.submit.failed warning.
  • maintenance.gc.completed now carries the active deployment ID.

Allocator options for jemalloc are read from MALLOC_CONF instead of _RJEM_MALLOC_CONF, except on Apple targets, as jemalloc now also serves C and C++ allocations.

Verification checklist

  • Make sure every app.toml sets app_name, check it against the 4-25 character rule, and check cloud app names against the 4-20 character rule.
  • Audit all authored deployments for generated metadata and all verification invocations for removed flags.
  • Remove VM components and VM execution limits, and ensure hosts and container images have system CA certificates for outbound HTTPS.
  • Convert saved cloud credentials to named account tables or log in again.
  • Run server verify for every deployment against each applicable app/server configuration.
  • Run the repository's CI commands with the target release, regenerate required artifacts, and check for tracked drift.
  • Keep cross-repository OCI dependencies pinned and remove self-references when building the same repository locally.
  • Replace gRPC clients with REST and /v1/app-config reads with /v1/app-policy and /v1/info.
  • Consider internal public environment entries for the server's own API and Web UI URLs, and url_prefix rules for single-URL destinations.
  • Move webhook listeners to http_server.<name>, set http_server on every webhook, list credential-less servers in public_http_servers, and use server run --dev locally.
  • Update cloud scripts for renamed lifecycle commands and explicit fill flags.
  • Decide overlap for each [[cron]] entry and remove exec.lock_extension_leeway.
  • Replace the deprecated *_bytes size keys in server.toml and max_output_bytes in deployments.
  • Review retention max_age/max_count defaults and system-event filters for renamed codes.
  • Size the v8 cells of [limits] for JavaScript components, or set OBELISK_JS_RUNTIME=boa-wasm.
  • Replace GET /v1/execution-id and GET /v1/deployment-id calls.
  • Send If-Match from GET /v1/info with every deployment switch request.
  • Review app/server policy diffs, authentication (including internal secrets for self-API tokens and restart-only token hash changes), stdout consumers, REST requests, and optional WIT regeneration.
On this page