Documentation v0.43.0 all versions

App Configuration

app.toml is owned by the app admin and passed with --app-config. It is the reviewed policy of the app: its required inputs and the maximum privileges any deployment may use. A deployment can request less than app.toml grants, never more. Reviewers get a high-level picture of what the app can touch (which secrets exist and who reads them, which hosts it calls, which native executables it runs) by auditing this file alone. When a coding agent writes the deployment, the diff of app.toml is the part a human should review.

Missing required inputs fail at startup, so executions do not discover them at runtime. Environment overrides such as OBELISK__... apply only to server.toml, not to app.toml. See Configuration for how the three files relate.

App Name

app_name = "my-app"

Every app.toml must set app_name. OBELISK_APP_NAME, when also set, must match it. Without an app.toml, the server takes the name from OBELISK_APP_NAME. The name selects the default SQLite directory. It must be 4-25 characters long and consist of lowercase ASCII letters, digits, and interior hyphens or underscores (no leading or trailing hyphen or underscore). Cloud apps are stricter: their names are DNS labels of 4-20 characters, so no underscores or double hyphens, and are unique within each cloud environment.

A template meant to be copied can use an underscore, e.g. app_name = "demo_agent": it runs and verifies locally, while obelisk cloud app push refuses the name until the user picks their own, in app.toml or with --app.

Public HTTP Servers

public_http_servers = ["external"]

An HTTP server without oidc or api_auth accepts requests without credentials, so it starts only when app.toml lists it here. Without the list, external stays closed and webhooks bound to it fail verification. The reserved names internal and webui cannot be listed: give internal credentials, or use server run --dev locally. Servers that require credentials start without being listed, and the Web UI is not an HTTP server. Listing a server that requires credentials, or a disabled or unknown one, records a server.public_http_server.ignored warning event.

Secret Registry

Map each logical secret name to the environment variable of the same name:

[secrets]
OPENAI_KEY = {}
GITHUB_TOKEN = { optional = true }

[secrets.DB_PASSWORD.exposed_to]
migration = "sha256:..."

At startup, Obelisk reads each value into memory and removes the variable from the process environment before workers start. A required secret whose variable is unset prevents startup. An optional = true secret may be absent; deployments must then reference it as optional, for example { name = "GITHUB_TOKEN", optional = true }, and an absent value is omitted from the component environment or stdin.

Deployments request logical names in a component's exposed_secrets or an allowed host's secrets field; they cannot interpolate registered secret values with ${...}. The former gives component code the plaintext value and requires an exposed_to grant generated with obelisk generate secret-config-digest. The latter substitutes opaque placeholders only in an authorized outbound request and does not require a plaintext-exposure grant.

exposed_secrets is supported by WASM and JavaScript activities and webhook endpoints, native exec activities. WASM and JavaScript components receive each value under its logical name as an environment variable. Exec activities receive the values in the secrets object on stdin.

If the server prefixes app environment sources with app_env_prefix (see Server Configuration), each secret is read from the prefixed variable instead, for example TENANT_OPENAI_KEY for OPENAI_KEY. The logical name seen by deployments and components does not change.

Internal Secrets

A component that calls the API of its own Obelisk server can receive the server's generated startup API token instead of an operator-supplied token:

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

The value is the ephemeral startup token, grants full API access, and changes on every server restart, so do not persist it. No environment variable is read and none needs to be set. Exposing and forwarding an internal secret works like any other secret: exposed_secrets with an exposed_to grant, or an outbound HTTP secrets entry.

Internal secrets cannot be optional. They require an enabled API listener: server run fails at startup when the API is disabled. server verify accepts them without a value. cloud app push --fill skips them. An internal secret may share its name with a server setting such as OBELISK_API_TOKEN: the server still reads that variable as an additional accepted API token, while components receive the startup token. Secrets without a type, or with type = "env", are read from the process environment as described above.

Public Deployment Environment

Deployments can only read process environment variables declared by the app admin. The declarations apply both to env_vars forwarded into components and ${...} interpolation anywhere in deployment.toml:

[public_env]
API_BASE_URL = {}
REGION = {}
TRACE_ID = { optional = true }

Entries are required at startup unless marked optional = true. A deployment may reference an optional variable only through an optional forwarded reference, such as { key = "TRACE_ID", optional = true }, or an interpolation fallback, such as ${TRACE_ID:-none}. Keep credentials in the secret registry instead. A variable registered as a secret cannot also be read through the public environment table. With a server app_env_prefix, values are read from the prefixed variable names, while ${NAME} references in the deployment keep the unprefixed name.

Internal Public Environment

An app that needs its configured name or the URL of its own server's API, Web UI or an HTTP server can let the server supply it instead of requiring an operator-supplied variable:

[public_env]
APP_NAME = { type = "internal", source = "app-name" }
OBELISK_API_URL = { type = "internal", source = "api-url" }
OBELISK_WEBUI_URL = { type = "internal", source = "webui-url" }
INTERNAL_BASE_URL = { type = "internal", source = "http-server-url", http_server = "internal" }

app-name supplies the configured app name. api-url uses api.public_url when set, otherwise http:// plus the API listener address, with a wildcard bind such as 0.0.0.0 replaced by loopback. webui-url uses the server's webui.public_url when set, otherwise the local Web UI listener. http-server-url reads any enabled HTTP server other than the Web UI from its public_url, otherwise from its local listener. Internal entries are always required: for URL sources, startup fails when the listener is disabled or uses port 0. Process environment variables of the same name, with or without app_env_prefix, are ignored. Deployments use them like any other public entry, in env_vars or ${...} interpolation. cloud app push --fill skips them.

Cloud VM

The optional [cloud] table sizes the hosted VM; omitting memory uses the cloud default. Memory is a whole number of MiB or GiB:

[cloud]
memory.mib = 512

Obelisk does not use it locally.

Cloud Integrations

[cloud.integrations] binds a value the cloud provides to an environment-backed [public_env] entry:

[cloud.integrations]
llm = { type = "llm", env = "LLM_BASE_URL" }

[public_env]
LLM_BASE_URL = {}

An integration with settings of its own uses a table; see the browser integration:

[cloud.integrations.browser]
type = "browser"
env = "BROWSER_URL"

[[cloud.integrations.browser.allowed_host]]
pattern = "https://app.example.com"
methods = ["GET", "POST"]

During a cloud deployment the bound value overrides any uploaded or local value, and cloud app push and apply do not ask for it. Obelisk reads only env: integration names, type, and any other keys are validated by the target cloud. Each env must name an environment-backed [public_env] entry (not an internal one and not a secret), and two integrations cannot supply the same variable. Local runs do not receive the value: a required entry must be set explicitly, otherwise startup and server verify fail with an error naming the integration.

App Outbound HTTP Policy

Component-originated HTTP must match an allowlist entry in both app.toml and the component's deployment configuration. An empty app allowlist denies all component-originated HTTP.

[[outbound_http.allowed_host]]
pattern = "api.openai.com"
methods = ["POST"]
request_url_regex = "^POST https://api\\.openai\\.com/v1/"
secrets = ["OPENAI_KEY"]
replace_in = ["headers"]

When an entry covers one base URL, url_prefix replaces pattern and request_url_regex:

[public_env]
LLM_URL = {}

[secrets]
LLM_API_KEY = {}

[[outbound_http.allowed_host]]
url_prefix = "${LLM_URL}"
methods = ["GET", "POST"]
url_regex_suffix = "/v1/models$|/v1/chat/completions$"
secrets = ["LLM_API_KEY"]
replace_in = ["headers"]

The app and deployment entries use the same syntax; see Outbound HTTP Allowlist for both forms. Both apply to every request: a request must match both destinations and methods, and both URL regexes, which need not be identical. A secret is substituted only when matching entries on both sides list the same secret and replacement location. Activation rejects a deployment whose destinations or methods are not covered by the app policy.

App Exec Approval

Generate reviewable grants from the deployment configuration:

obelisk generate secret-config-digest --deployment deployment.toml

Approve reviewed executable and exposed-secret configurations by component name. The generated secret-exposure digest binds the executable content and the complete exposed-secret set:

[allowed_exec_activities]
greet = "sha256:..."

Use an array of digests when overlapping deployment revisions must be authorized. If the activity receives plaintext secrets, copy the generated [secrets.<name>.exposed_to] grants too. The platform must also allow the digest through its exec gate.

App Policy Digest

Obelisk computes a canonical app_config_digest of the app policy. Deployments record the digest used at activation, system events carry the current digest, and GET /v1/info reports it as app_config_digest. The running policy is available through GET /v1/app-policy.

On this page