Skip to content

Site variables


title: Site variables description: Registry of every IBC_ variable a hotel site uses: what it is, who sets it and where it lives. audience: internal type: reference owner: platform-team last_reviewed: 2026-11-19


Every IBC_… value a site uses: what it is, who sets it, and where it lives. When an MR adds a variable, it adds a row here. Reviewers can then see at a glance whether hotels need anything.

How they're used, and how to add a new one: end-to-end.md Parts F4–F5.

Where a value can live (lowest → highest priority)

# File Scope In git?
1 setup-agent/defaults.env All hotels Yes
2 sites/<hotel>/site.env One hotel, non-secret Yes
3 /etc/ibc/site.env on the hotel's machine, mirrored into Secret argocd/ibc-site. After install the Secret is the live copy: ibc-agent updates it on renewal One hotel No, never
— ${IBC_GEN_<NAME>} Derived per hotel from IBC_SITE_MASTER_KEY when none of the above sets it No, nothing stored

Kinds

Kind Meaning Hotels need anything when it's added?
A Same for every hotel No: the value is written straight into the manifest, with no variable
B Shared default, some hotels differ No: default in defaults.env, exceptions in sites/<hotel>/ (only for variables manifests use; the wizard, prerequisite.sh and restore.sh read defaults.env + /etc/ibc/site.env only)
C Set per hotel at install (wizard, install.sh, edge API) Only new installs get it. Existing hotels need a default in defaults.env, or a value delivered another way
D Secret, different per hotel No, if it's a derived ${IBC_GEN_…}. Otherwise it's generated at install, so existing hotels don't have it

Variables

Variable Kind Set by Lives in Used by Notes
IBC_DOMAIN C Wizard (subdomain + parent) Machine Every manifest: replaces your-domain.example.com, e.g. authapi's cookie domain (.<domain>), CORS origin and frontend URL, coreapi's API/asset/CORS URLs, routes, certificates. Also prerequisite.sh Locked: Locked after install
IBC_SITE_NAME C Wizard (= subdomain) Machine render.sh: picks sites/<name>/; backup (restic --host, switched off for now) and restore.sh (finds the backup) Locked: Renaming it starts a new backup history
IBC_ORG_NAME C Wizard (company name) Machine Zitadel org, authapi, edge API registration Locked: Zitadel reads it on first start only
IBC_OWNER_EMAIL C Wizard Machine Edge API registration
IBC_ADMIN_USERNAME C Wizard (= owner email) Machine Zitadel first admin, authapi Locked: First start only
IBC_ADMIN_PASSWORD C Wizard: chosen by the owner (typed twice) Machine Zitadel first admin Never shown again by the wizard; sudo ./scripts/show-secrets.sh prints it. Locked: Zitadel reads it on first start only
IBC_ANSWER_IP C Wizard ("How devices reach this server": empty = auto; a VM behind NAT: the host's LAN IP); restore.sh may change it Machine prerequisite.sh Step 8 (CoreDNS); restore.sh auto = detected node IP
IBC_ACME_EMAIL C Wizard (advanced, optional) Machine prerequisite.sh Step 7; restore.sh Empty = the issuer file's email
IBC_SERVER_IP C Wizard: IBC_ANSWER_IP if it is an IP, else the detected node IP; scripts/change-ip.sh and restore.sh refresh it Machine CoreDNS (prerequisite.sh passes it as ANSWER_IP), mediasoup (ANNOUNCED_IP, put in every WebRTC candidate) The real IP devices reach the server on. A hotel installed before it existed needs ./scripts/change-ip.sh once
IBC_PG_PASSWORD D Generated at install Machine postgres, zitadel, authapi, coreapi, backup (pg_dumpall, switched off for now) Locked: Postgres reads it on first start only
IBC_ZITADEL_MASTERKEY D Generated (exactly 32 chars) Machine zitadel Locked
IBC_ZITADEL_DB_PASSWORD D Generated Machine zitadel Locked
IBC_S3_ACCESS_KEY / IBC_S3_SECRET_KEY D Generated Machine seaweedfs, tusd, coreapi
IBC_VALKEY_PASSWORD D Generated Machine valkey, coreapi
IBC_AUTHAPI_PSK D Generated Machine authapi ↔ coreapi
IBC_JWT_ACCESS_SECRET / IBC_JWT_REFRESH_SECRET D Generated Machine authapi
IBC_JWT_RSA_PRIVATE_KEY D Generated by the wizard (openssl, RSA-2048, base64 of the PKCS#8 PEM); on a hotel installed before it existed: ./scripts/change-password.sh jwt_rsa Machine authapi (AUTHAPI_JWT_RSA_PRIVATE_KEY) Required: without it authapi cannot be rendered. Not a random string: it must be a valid RSA key. Rotating it signs everyone out. Never in git
IBC_COREAPI_ENCRYPTION_KEY D Generated Machine coreapi
IBC_MQTT_USER / IBC_MQTT_PASSWORD D Generated Machine vernemq (user created), coreapi (MQTTUsername / MQTTPassword), tellyboardadmin and conciergeguestapp (VITE_MQTT_USER / VITE_MQTT_PASSWORD, public in the browser) Unique per hotel; replaces the old shared hotel login
IBC_MQTT_WEBOS_USER / IBC_MQTT_WEBOS_PASSWORD D Generated Machine vernemq (user created), playtellyinternal (MQTT_USER / MQTT_PASSWORD, returned by /config to webOS clients) Unique per hotel
IBC_SITE_MASTER_KEY D Generated Machine render.sh: seed for ${IBC_GEN_…} Never change it: every derived secret would change
IBC_INSTALL_SECRET D Generated Machine Edge API authentication (wizard and ibc-agent)
IBC_REGISTRATION_ID C Wizard, on approval (the id the edge API gave at registration) Machine ibc-agent check-in URL
IBC_LICENSE_VERSION / IBC_ACMEDNS_VERSION C Edge API (approval, then check-ins) Machine ibc-agent: applies only newer versions Updated by the agent on renewal
IBC_BACKUP_REPOSITORY / IBC_BACKUP_ACCESS_KEY / IBC_BACKUP_SECRET_KEY / IBC_BACKUP_PASSWORD C Edge API (check-in), or by hand until coreapi has it; defaults are empty (= backups off) Machine backup CronJob (restic, switched off for now: devops-handover.md 2.6) Per hotel. Keep a copy in the site register: needed to restore (restore.sh)
IBC_BACKUP_VERSION C Edge API (check-in) Machine ibc-agent
IBC_ACMEDNS_ACCOUNT_B64 C Edge API, on approval; then ibc-agent when the account is rotated Machine prerequisite.sh Step 7.1 → cert-manager; restore.sh This hotel's certificate access only
IBC_LICENSE_KEY / IBC_LICENSE_PUBLIC_KEY / IBC_LICENSE_PRIVATE_KEY C Edge API, on approval (one bundle); then ibc-agent on renewal Machine authapi (AUTHAPI_LICENSE_*) Ideally a key pair per site (edge-api.md)
IBC_COMPANY_CODE C Read from the license key's payload (wizard, then ibc-agent on renewal) Machine authapi
IBC_PARENT_DOMAIN B defaults.env Defaults Wizard (builds the address) Per-hotel override only in /etc/ibc/site.env: the wizard doesn't read sites/
IBC_CLOUD_URL B defaults.env Defaults Wizard → edge API; ibc-agent CronJob (CLOUD_URL) Warning: Empty until coreapi has the edge API. Per-hotel override in /etc/ibc/site.env (the wizard doesn't read sites/)
IBC_ACME_STAGING C By hand, lab VMs only ('true') Machine prerequisite.sh Step 7 (Let's Encrypt staging server); restore.sh; the wizard's final check accepts the untrusted certificate Never on a hotel: browsers don't trust staging certificates. Default: production
IBC_ACMEDNS_HOST B defaults.env Defaults prerequisite.sh Step 7 (ClusterIssuer); restore.sh Per-hotel override only in /etc/ibc/site.env: the wizard and restore.sh don't read sites/
IBC_ALLOWED_REDIRECT_URIS B defaults.env (https://shaka.castis.io) Defaults authapi, coreapi ALLOWED_REDIRECT_URIS Comma-separated
IBC_CDN_ORIGIN_HOST B defaults.env (cdn.castis.io) Defaults cproxy files origin (URL + Host header)
IBC_ENROLLMENT_TOKEN C Optional: by hand in /etc/ibc/site.env before pressing Install (no wizard or install.sh input) Machine Edge API registration Only if coreapi requires it
IBC_GIT_URL / IBC_GIT_REVISION C install.sh Machine The Argo CD apps (repoURL, targetRevision); the revision is also reported to the edge API The revision is the channel the hotel follows
IBC_REGISTRY_DOCKERCONFIG_B64 C install.sh (from registry-secret.yml) Machine site-base (registry secret in every namespace)

Locked = locked after install. Changing it later has no effect or breaks things (archive/docs/configuration.md Section 21).

Not site variables

IBC_SITE_ENV, IBC_ETC, IBC_SETUP_LOG, IBC_WIZARD_PORT, IBC_HEADSCALE_URL, IBC_GIT_USERNAME / IBC_GIT_PASSWORD, IBC_TAILNET_KEY, IBC_RESTORE_SNAPSHOT: script options for install.sh, restore.sh, render.sh, the wizard or testing. They never reach a manifest.