Skip to content

Container image

Built

Omniglass ships as a single container image. The operator console is compiled into the binary (-tags web plus go:embed), so one image is the whole app: every run mode (server, outpost run, migrate, bootstrap, token) is the same binary with a different first argument. The final image is distroless and runs as an unprivileged user; the binary is statically linked (CGO disabled), so the image is a few tens of megabytes with no shell or libc.

The published tag is a multi-arch manifest covering linux/amd64 and linux/arm64; a host pulls the variant that matches its architecture automatically. See Platforms for how that is built.

The image workflow builds and pushes to the GitHub Container Registry on every push to main and every same-repo pull request; a release’s v<version> image is pushed by the release workflow instead. A fork PR builds the image but does not push it (a fork run has no registry credential), so a fork branch never gets a published tag:

ghcr.io/hyperscaleav/omniglass

Tags:

TagWhenMutable?
latestpush to mainyes
sha-<full sha>every buildno, pins an exact commit
pr-<n>head of open PR #nyes, moves on each push
v<version>a release (v0.1.0)should not move; a release binary pins the digest, so a moved tag changes nothing it runs

The sha tag carries the full 40-character commit sha (type=sha,format=long). The preview pipeline pins a deploy to sha-<full sha> so a rollout follows the exact build. A release binary’s omniglass lab run does not pull v<version> by its tag: the release workflow builds and pushes the image before it builds the binaries, and stamps the image’s digest into each one, so the lab pulls ghcr.io/hyperscaleav/omniglass@sha256:..., exactly the image its release was built with, whatever the tag points at later (the lab).

Every image carries the build it came from in the OCI label org.opencontainers.image.version: the release version, or the build id make stamps (the commit, plus a dirty marker and the build time for an uncommitted tree). A binary built by make runs a lab only on the omniglass:dev-<build id> image whose label is its own build id, so a lab always runs the code it was built from.

The image is published for linux/amd64 and linux/arm64 (Graviton, Ampere, Apple silicon, Raspberry Pi class hardware). Both come from one cross-compile, not native arm64 runners: because the binary is pure Go with CGO disabled, the build stages run on the native CI host and go build retargets the arch with a GOARCH switch, no emulation and no C toolchain. The arch-independent SPA bundle is built once and embedded in both variants. The distroless base is itself a multi-arch manifest, so the runtime layer resolves per target.

Cross-compiled artifacts get one emulated check before they ship: CI builds the arm64 image, loads it under QEMU, and boots the binary (--help), so a broken arm64 build fails the workflow before the manifest is pushed. There is no native arm64 hardware in the loop; this boot test is the substitute.

The binary is configured by environment, BYO Postgres. The table renders from the declared environment registry (make gen), which the binary itself reads through, so a variable cannot exist without appearing here:

VariableDefaultPurpose
OMNIGLASS_DSN local dev DSN Postgres connection string the Storage Gateway dials; wins over DATABASE_URL when both are set
DATABASE_URL (none) conventional DSN fallback, used when OMNIGLASS_DSN is unset
OMNIGLASS_ADDR :8080 HTTP listen address; port 0 binds a free port, reported in the ready file
OMNIGLASS_SECURE_COOKIES off set true behind TLS to mark the session cookie Secure (https only)
OMNIGLASS_TRUSTED_PROXIES loopback and private ranges comma-separated CIDRs or addresses of the proxies whose X-Forwarded-For is believed, for the client address sessions, tokens and webhook limits record; a list replaces the default whole, none believes no proxy, and a bad entry fails the boot
OMNIGLASS_NATS_ADDR 127.0.0.1:4222 listen address (host:port) of the embedded NATS server; port 0 binds a free port, reported in the ready file
OMNIGLASS_NATS_STORE_DIR temp dir JetStream store directory
OMNIGLASS_NATS_URL the bus's bound address bus URL the outpost-claim exchange advertises to outposts; unset, the URL of the address the bus bound (loopback for a wildcard host such as 0.0.0.0)
OMNIGLASS_DATA_DIR .omniglass local non-Postgres server state (notably the fallback encryption key)
OMNIGLASS_SETTINGS_FILE (none) optional operator settings file (JSON or YAML), the layer between code defaults and the DB override
OMNIGLASS_READY_FILE (none) path the server writes once it serves: a JSON object of the addresses it bound (addr, nats_addr) and the bus URL it advertises (nats_url), for a supervisor or test that asked for port 0; cleared at boot, removed at a graceful shutdown
OMNIGLASS_OMNIBOT_REPLAY (none) path to a recorded model the server's omnibot plays, turn by turn as each conversation stands, for a demo or a test; unset, the server has no model and a run is refused
OMNIGLASS_ENCRYPTION_KEY (none) base64 32-byte encryption key, the key-encryption key every secret is sealed under at rest; wins over the key file
OMNIGLASS_ENCRYPTION_KEY_FILE (none) path to a file holding the encryption key; the intended production source (the generated fallback under the data dir is convenience, not security)
OMNIGLASS_SECRET_KEY (none) Deprecated, renamed OMNIGLASS_ENCRYPTION_KEY: the encryption key's old name, read only when neither OMNIGLASS_ENCRYPTION_KEY nor OMNIGLASS_ENCRYPTION_KEY_FILE is set; warns on every boot, removed in a later release
OMNIGLASS_SECRET_KEY_FILE (none) Deprecated, renamed OMNIGLASS_ENCRYPTION_KEY_FILE: the encryption key file's old name, read only when neither OMNIGLASS_ENCRYPTION_KEY nor OMNIGLASS_ENCRYPTION_KEY_FILE is set; warns on every boot, removed in a later release
OMNIGLASS_SERVER_NAME the hostname the server's identity: the name its own platform component, which carries its request and query timing, is ensured under at boot; set it when servers share a hostname or a server moves hosts
OMNIGLASS_CLOSED_LOOP_BRACKET 1m how often the server brackets each outpost with a connected simulator for Platform health's sliding window, ten brackets long; 1s to 1m, and a value outside that fails the boot
OMNIGLASS_CLOSED_LOOP_HEARTBEAT 30s the check-in interval the closed loop assumes for each outpost with a simulator, to count which poll targets were due over its window; set it to the outposts' --heartbeat
OMNIGLASS_CLOSED_LOOP_PROBE_EVERY every check-in the reachability-probe interval the closed loop assumes for each outpost with a simulator; set it to the outposts' --probe-every
OMNIGLASS_INGEST_PARTITIONS 4 how many ingest lanes land outpost telemetry side by side, each outpost's batches always on one lane and in the order it sent them; 1 to 64, held under the database pool less one, and a value outside that range fails the boot; change it with the telemetry backlog drained, or an outpost's batches held across the change may land out of order
OMNIGLASS_SETTING__LABEL__ACRONYMS AV,BYOD,DSP,EDID,HDBaseT,HDCP,HDMI,IP,IR,KVM,LAN,LCD,LED,MTR,NDI,NVR,OLED,PC,PoE,PTZ,RF,SDI,SIP,TV,UC,USB,VC,VLAN,4K,8K Words a generated label title-cases to a fixed form, whole-word and case-insensitive
OMNIGLASS_SETTING__RETENTION__METRIC_DAYS 14 Days a metric sample is kept, unless its type keeps its own (a metric type's retention_days); a sample on the lane's window leaves with its UTC day, up to a day later; at least 3, the shortest window that folds into blocks
OMNIGLASS_SETTING__RETENTION__PROPERTY_DAYS 90 Days a property transition is kept, unless its type keeps its own (a property type's retention_days)
OMNIGLASS_SETTING__RETENTION__TREND_DAYS 730 Days an hourly metric trend is kept (#1276)
OMNIGLASS_SETTING__RETENTION__LOG_DEBUG_DAYS 3 Days a debug log line is kept
OMNIGLASS_SETTING__RETENTION__LOG_INFO_DAYS 14 Days an info or notice log line, or one with no severity, is kept
OMNIGLASS_SETTING__RETENTION__LOG_WARNING_DAYS 30 Days a warning log line is kept
OMNIGLASS_SETTING__RETENTION__LOG_ERROR_DAYS 90 Days an error, critical, alert or emergency log line is kept
OMNIGLASS_SETTING__RETENTION__OUTPOST_LOG_DEBUG_DAYS (none) Days an outpost's own debug log line is kept; unset follows log_debug_days
OMNIGLASS_SETTING__RETENTION__OUTPOST_LOG_INFO_DAYS (none) Days an outpost's own info or notice log line, or one with no severity, is kept; unset follows log_info_days
OMNIGLASS_SETTING__RETENTION__OUTPOST_LOG_WARNING_DAYS (none) Days an outpost's own warning log line is kept; unset follows log_warning_days
OMNIGLASS_SETTING__RETENTION__OUTPOST_LOG_ERROR_DAYS (none) Days an outpost's own error, critical, alert or emergency log line is kept; unset follows log_error_days
OMNIGLASS_SETTING__COLLECTION__REPORT_SECONDS 60 Seconds each endpoint's collection telemetry covers: its polls' mean duration and failures, and the pushes its listeners claimed or did not, reported once a window
OMNIGLASS_SETTING__NOTIFICATION__CONSOLE_URL (none) The console's base URL as a receiver of a notification reaches it (https://omniglass.example.com); the prefix of the Link a notification's subject and text read. Empty leaves Link empty
OMNIGLASS_SETTING__NOTIFICATION__EGRESS_ALLOW (none) The internal destinations a notification may reach, each a CIDR (10.20.0.0/16), an address, or a host name (chat.corp.example). Everything private, loopback or link-local is refused unless named here; a cloud metadata address is refused even when it is; plain http is admitted only to a destination named here
OMNIGLASS_SETTING__NOTIFICATION__MAIL_RELAY (none) The SMTP relay email notifications go through, host:port (smtp.example.com:587). Empty turns email off. An internal relay is reached only when egress_allow names it
OMNIGLASS_SETTING__NOTIFICATION__MAIL_SECURITY starttls How the session to the relay is protected: starttls (the relay must offer it), tls (implicit TLS, port 465), or none, admitted only for a relay egress_allow names (a lab's mail sim)
OMNIGLASS_SETTING__NOTIFICATION__MAIL_FROM (none) The From address of an email notification (Omniglass <alerts@example.com>)
OMNIGLASS_SETTING__NOTIFICATION__MAIL_SECRET (none) A platform basic-auth secret, by name, the relay session authenticates with; empty sends without authenticating. Setting it from the console or API, or moving mail_relay there while one is set, takes secret:bind on that secret; the settings file and environment are trusted as deployment config
OMNIGLASS_SETTING__DATABASE__SLOW_QUERY_MS 500 Milliseconds a query may run before the server logs it as slow (its statement's shape and duration, never its values) and counts it; 0 turns the log off
OMNIGLASS_SETTING__AGENT__READ always Policy for an agent's reads (a GET, or a POST gated on a read permission)
OMNIGLASS_SETTING__AGENT__WRITE ask Policy for an agent's writes that create or act (a POST that is not a read)
OMNIGLASS_SETTING__AGENT__DESTRUCTIVE ask Policy for an agent's writes that overwrite or delete (a PATCH, PUT or DELETE)
OMNIGLASS_SETTING__AGENT__CREDENTIAL_DESTINATION ask Policy for an agent's calls that may point a stored credential somewhere (any operation gated on secret:bind)
OMNIGLASS_SETTING__ASSISTANT__CONVERSATION_DAYS 30 Days a stored omnibot conversation is kept after it last changed
OMNIGLASS_SETTING__ASSISTANT__PROVIDER none The model omnibot runs on: openai (any OpenAI-compatible chat completions server, OpenRouter by default) or none, which leaves the server's recording, if any
OMNIGLASS_SETTING__ASSISTANT__MODEL openai/gpt-4.1-mini The model's name on that server (openai/gpt-4.1-mini on OpenRouter, llama3.1 on Ollama)
OMNIGLASS_SETTING__ASSISTANT__BASE_URL https://openrouter.ai/api/v1 The server's base URL, /chat/completions appended. An internal server is reached only when the notification settings' egress_allow names it. Moving it from the console or API while a key_secret is bound takes secret:bind on that secret; the settings file and environment are trusted as deployment config
OMNIGLASS_SETTING__ASSISTANT__KEY_SECRET (none) A platform api-key secret, by name, sent as the bearer on every model call; empty calls without a key (a local server). Setting it from the console or API takes secret:bind on it; the settings file and environment are trusted as deployment config. The key never leaves the server
OMNIGLASS_SETTING__HEARTBEAT__TARGET (none) The webhook notification target the server sends its heartbeat to, by name; empty turns the heartbeat off. The request is signed by the target's bound hmac-key secret and subject to the egress allow list
OMNIGLASS_SETTING__HEARTBEAT__INTERVAL_SECONDS 60 Seconds between heartbeats
OMNIGLASS_SETTING__SSO__ISSUER (none) The identity provider's issuer URL exactly as its id_tokens carry it (https://login.example.com/realms/corp). Empty turns single sign-on off. An on-premises provider is reached only when the notification settings' egress_allow names it. Moving it from the console or API while client_secret is bound takes secret:bind on that secret; the settings file and environment are trusted as deployment config
OMNIGLASS_SETTING__SSO__CLIENT_SECRET (none) A platform oauth2-client secret, by name: its client_id field is the client id Omniglass is registered as, its client_secret field authenticates the token exchange. Setting it from the console or API takes secret:bind on it; the settings file and environment are trusted as deployment config
OMNIGLASS_SETTING__SSO__SCOPES openid email profile offline_access The scopes a sign-in asks for, space-separated. offline_access asks for the refresh token the re-check redeems; a provider that issues none gives sessions of recheck_grace_minutes and no API tokens
OMNIGLASS_SETTING__SSO__GROUPS_CLAIM groups The id_token claim carrying the person's groups at the provider (read by group mapping, #2363)
OMNIGLASS_SETTING__SSO__RECHECK_MINUTES 15 Minutes between re-checks: each link with a live session or token through it redeems its refresh token at the provider, and a refusal revokes them
OMNIGLASS_SETTING__SSO__RECHECK_GRACE_MINUTES 60 Minutes a link may go without a refresh the provider accepted (an outage) before its sessions and tokens are refused until one is; also the length of a session through a provider that issues no refresh token
OMNIGLASS_SECRET__<NAME> (none) declares a platform secret from the environment, named <NAME> lowercased with each underscore a hyphen (OMNIGLASS_SECRET__BEDROCK_KEY is bedrock-key); the value is a JSON object {"type": "<secret type>", "fields": {...}} checked against the type at boot. Held in memory, never sealed or written; listed with source env and changed only by its variable and a restart, and a stored platform secret of the same name fails the boot

A listen address may name port 0, and the server then reports the port it got through its ready file (a server on ports it picks).

The outpost process reads its own small set (the CLI-scope variables surface through the CLI reference instead):

VariableDefaultPurpose
OMNIGLASS_OUTPOST_NAME (none) the outpost's registered name, used by omniglass outpost run and sim run when --name is omitted
OMNIGLASS_OUTPOST_TOKEN (none) the outpost's enrollment token, used by omniglass outpost run and sim run when --token is omitted, read when the command runs and never printed by help
OMNIGLASS_OUTPOST_SESSION_DIALS 16 how many held sessions omniglass outpost run lets make their first dial and handshake at once when --session-dials is omitted (a redial takes no slot); a session waiting for a slot reads establishing
OMNIGLASS_LANE_WORKERS auto how many endpoint lanes omniglass outpost run runs at once, each sending one request to its endpoint at a time, when --lane-workers is omitted; auto sizes them from the CPU and memory the outpost may use

Apply the schema once, then run the server. (The server also applies pending migrations itself on boot, so the separate migrate run is optional; it is still useful to surface a schema problem before the server starts.)

Terminal window
DSN='postgres://user:pass@host:5432/omniglass?sslmode=require'
docker run --rm -e OMNIGLASS_DSN="$DSN" \
ghcr.io/hyperscaleav/omniglass:latest migrate
docker run -d -p 8080:8080 -e OMNIGLASS_DSN="$DSN" \
ghcr.io/hyperscaleav/omniglass:latest server

The console is then at http://localhost:8080/web, and GET /api/v1/healthz reports status: ok once the database leg passes. To sign in, mint an owner and a token:

Terminal window
docker run --rm -e OMNIGLASS_DSN="$DSN" \
ghcr.io/hyperscaleav/omniglass:latest bootstrap alice
docker run --rm -e OMNIGLASS_DSN="$DSN" \
ghcr.io/hyperscaleav/omniglass:latest token alice --description "alice laptop"

The bare make builds the image, tagged omniglass:dev-<build id> and omniglass:dev, and exports this machine’s own binary to bin/omniglass from the same Dockerfile, both stamped with one build id, with nothing but Docker (BuildKit cache mounts keep a Go-only change to seconds). make image builds just the image, for your host architecture only:

Terminal window
make # omniglass:dev-<build id>, omniglass:dev and bin/omniglass, one build id
make image # omniglass:dev only, VERSION = the build id
make image TAG=v1 IMAGE=ghcr.io/hyperscaleav/omniglass

To reproduce the published multi-arch manifest, drive buildx directly (a docker-container builder is required, since the default driver cannot emit a manifest list). A manifest list cannot be --loaded into the local daemon, so build with --push to a registry, or with --platform linux/arm64 --load to inspect a single foreign arch:

Terminal window
docker buildx create --use --name omni # once
docker buildx build --platform linux/amd64,linux/arm64 \
--build-arg GO_VERSION=$(bash scripts/go-version.sh) \
-t ghcr.io/hyperscaleav/omniglass:dev --push .

The Dockerfile has no default Go version: go.mod is its only source, so every direct docker build or buildx build passes GO_VERSION as above (make and make image do it for you).

This image is the unit the Helm chart deploys, and the per-PR preview environments run it. See scaling and deployment for the deployment shape.