Operations
A hub runs on an installation that the customer or the vendor runs; the vendor runs the cloud and Watch.
1. Installations
An installation is one hub database with its nodes
(architecture.md §12). It is
of one of two kinds (installation.kind,
schema/hub.sql §0):
- Standalone: one hub the customer runs, created by
excubio-hub initand enrolled with a token (§4). - Managed: run by the vendor, created by
init --managedwith the installation's token; the cloud provisions its hubs over the installation channel (§4). The cloud's registry (§3) names a managed installation shared, when it serves the hubs of many tenants in one database, or dedicated, when it serves one tenant's hubs alone.
| Installation | Run by | Database | Nodes | Use |
|---|---|---|---|---|
| Single node, embedded (default) | Customer | Bundled Postgres started by excubio-hub | 1 | Shadow mode, test, small customers. |
| Single node, external | Customer | Existing Postgres via DATABASE_URL | 1 | Customers with a managed Postgres service. |
| HA | Customer | External Postgres with its own HA (Patroni, CloudNativePG, managed) and a synchronous standby | 2+ behind a load balancer or VIP | Production paging. |
| Managed, dedicated | Vendor | A CloudNativePG cluster of its own: 2 instances, dataDurability: required | 2+ | An enterprise whose hubs the vendor runs apart from other tenants'. |
| Managed, shared | Vendor | As above, sized for the cell (§10) | 3+ | A cell of roughly 500 to 1,000 hubs of self-service tenants. |
What is the same on every installation: the binary, the schema and the
code path; a hub's processing, link, Watch checks and data
(architecture.md §4); the
container image and the Helm chart (§2). An external database is
PostgreSQL 18 without extensions, the version the embedded one and the
tests run; HA requires a synchronous standby that the database never
drops to asynchronous replication (Patroni synchronous_mode_strict,
CloudNativePG dataDurability: required) and synchronised clocks on the
database servers (architecture.md §8).
Every connection of a node goes to the database server itself, never
through a connection pooler (PgBouncer, Pgpool-II, a managed proxy):
ownership and takeover rest on session advisory locks, LISTEN and
per-connection settings that the server must see and end with the node's
session (architecture.md §4).
A node sizes its own pool (pool_size). The hub runs on Linux (x86-64,
arm64, glibc 2.34 or later), from deb and rpm packages with a systemd
unit or from the container image (packaging/); it must not run solely
on a platform whose failure it is meant to report.
What differs:
| Standalone | Managed | |
|---|---|---|
| Created with | excubio-hub init, its one hub enrolled with a token (§4) | init --managed with the installation's token; the cloud registers it (§3) and provisions its hubs through it (§4) |
| Hubs | One, created by init | Those the cloud places on it: of one tenant (dedicated), or of many (shared) |
| Host names | The hub's own (--host) | <host label>.<hub domain> per hub, relay names per node (architecture.md §11 Front door, §13 Server names; settings: §2) |
| Sign-in | The customer's IdP, and the break-glass admin | The installation's Zitadel client with each hub's organization and slug, no break-glass admin (architecture.md §11 Sign-in) |
| Customer network | Reached directly | Reached only through relays (§12); no SNMP or syslog listener |
| Egress | [egress] deny as configured | Private networks denied too (§2) |
| Limits | None (architecture.md §12 Limits) | Each hub's plan limits and retention tier |
| Failure domain | The customer's | Provider A, with the cloud (architecture.md §1) |
| Version | The customer's upgrade (§7) | The vendor upgrades it with the cloud's releases; customers don't choose one |
| Backups, support | §8, §11 | §8, §11 |
Managed installations. The vendor runs them on its cluster at
provider A with the cloud, from the same Helm chart; as the
installation's group roles have fixed names, no two installations share
a database server. Each gets a namespace of its own whose
NetworkPolicies admit inbound connections only from the cluster's
gateway, but to the metrics listener (metrics_listen, §2) from the
vendor's monitoring only, and outbound ones only to its database, the
cloud, Watch, the identity provider and the internet, never to the
cluster's pod, service and node networks or another installation's
namespace; [egress] deny lists the same networks. TLS is passed
through to the nodes. On a managed installation the tenant's first
admin is bound to admin hub-wide by the provisioning (§4), and binds
everyone else in the UI. A shared installation's operator hub (§3
updateInstallation) is the vendor's own hub on it; a dedicated
installation's may be its tenant's own hub, whose admins then see the
installation's conditions and remove its dead nodes, as the hubs on it
are that tenant's alone.
The embedded Postgres follows the same design as Convexio Strataplane: the
archive is embedded in the binary, listens on loopback only, runs as the
service user, is stopped with the service, and is tuned from the available
memory. With [reporting] listen set, it also listens on that address,
with TLS, for logins of the role excubio_reporting only, which can read
nothing but reporting_v1. excubio-hub db backup and db restore --keep-identity move a single node to an external database
(§4).
Database roles. The installation's database has four group roles
without login: an owner, an app role, a lookup role and a reporting role
(schema/hub.sql §11; what each may see of which hub:
architecture.md §12). The first
migration creates them when they are missing, which takes a superuser
or a login with CREATEROLE. The lookup role has no login. The others
have their own:
| Login | Member of | Runs |
|---|---|---|
| migration | excubio_hub_owner | db migrate (cli.md §6) and the migrations at the start of serve (§7) |
| server | excubio_hub_app only | serve, which refuses a login that is a superuser, has BYPASSRLS or is a member of the owner or the lookup role. Every node of an installation serves with the same server login: a node finds the others by their lock connections, whose names a login sees for its own sessions only, and raises a self-alert for a serving node it can't see |
| reporting | excubio_reporting, with a row in reporting_login naming its hub | Grafana and BI tools (integrations.md §12) |
- Embedded:
initrunsinitdbwith a bootstrap superuser and, as it, creates the database, the roles and one login of each row, each with a generated password in the data directory that only the service user can read, and the reporting login'sreporting_loginrow for the hub it creates.servemigrates with the migration login and serves with the server login; the superuser is used byinitand bypg_upgrade(§7) only. - External: the database administrator creates the roles with
CREATE ROLE … NOLOGIN, the database with ownerexcubio_hub_owner, and the logins, and as the owner areporting_loginrow for each reporting login with the id of the hub it reads (excubio.hub).[database] urlis the server login,owner_urlthe migration login (§2). Withoutowner_url,servedoesn't migrate anddb migrateruns with the migration login before the nodes start.
2. Configuration
/etc/excubio/hub.toml, overridable by EXCUBIO_* environment variables.
Spec Settings (spec-format.md §3.16) hold
everything that should be reviewed; this file holds only what a node needs
to start.
[server]
# node_name = "hub-1" # unset → the host name; unique per hub, at most 50 bytes (lock connections, self-alerts)
management_listen = "0.0.0.0:8443" # the management API, the hub UI (ui.md §2) and, without metrics_listen, /metrics
# metrics_listen = "0.0.0.0:9464" # set: /metrics here alone, plain HTTP, no credentials (integrations.md §11)
intake_listen = "0.0.0.0:9443"
snmp_listen = "0.0.0.0:162"
smtp_listen = "0.0.0.0:25" # email Sources; STARTTLS with the server certificate
syslog_listen = ["udp://0.0.0.0:514", "tcp://0.0.0.0:514", "tls://0.0.0.0:6514"]
# relay_listen = "0.0.0.0:7443" # relays' connections (§12); unset → this node takes none
# relay_address = "hub-1.example.invalid:7443" # where relays reach this node; or EXCUBIO_SERVER_RELAY_ADDRESS; unset → relay_listen with the host name; managed: <host label>. before it (architecture.md §13)
public_url = "https://excubio.example.invalid" # links in pages, mails, tickets; the installation's one OIDC redirect <public_url>/login/callback
# hub_domain = "hubs.excubio.example" # managed: a hub's host is <host label>.<hub_domain>
# mail_domain = "mail.excubio.example" # managed: a hub's mail domain is <host label>.<mail_domain>; unset → none, mail through IMAP
# snapshot_cache = "1GiB" # memory for the hubs' inventory snapshots the node's steps read (architecture.md §4 Activation)
tls_cert = "/etc/excubio/tls/server.pem" # re-read on change
tls_key = "/etc/excubio/tls/server.key"
# syslog_client_ca = "/etc/excubio/tls/syslog-senders.pem" # set: syslog over TLS requires a client certificate chaining to it
holidays = "/usr/share/excubio/holidays.toml" # the installation's holiday file (§3 Holiday regions), written at the start; Calendars name its regions
[database]
# url = "postgres://…" # unset → embedded; or DATABASE_URL; the server login (§1)
# owner_url = "postgres://…" # the migration login (§1); unset → serve doesn't migrate
pool_size = 20
data_dir = "/var/lib/excubio"
[auth]
oidc_issuer = "https://login.microsoftonline.com/<tenant>/v2.0"
oidc_client_id = "excubio-hub" # or EXCUBIO_AUTH_OIDC_CLIENT_ID; the chart's hub.auth.oidcClientIdFrom
oidc_client_secret_file = "/etc/excubio/oidc-secret"
groups_claim = "groups" # or "roles" for Entra ID app roles (integrations.md §10)
local_admin = true # break-glass; password generated by init, shown once; false: none
# organization = "<org id>" # set: only logins of this organization (architecture.md §11 Sign-in)
# organization_claim = "urn:zitadel:iam:user:resourceowner:id" # the claim naming it; Zitadel's by default
# tenant = "<slug>" # set: only logins the tenant claim grants this tenant
# tenant_claim = "urn:zitadel:iam:org:project:roles" # Zitadel's project roles by default, as the cloud's
[audit]
retention = "5y" # at least 1y; written to the database by the migration login (§1)
[cloud]
url = "https://hub.excubio.example" # vendor hub endpoint
watch_url = "https://hb.excubio-watch.example" # hub heartbeats (watch.md §1); unset → the node sends none
proxy = "http://proxy.example.invalid:8080"
proxy_credentials_file = "/etc/excubio/proxy-credentials" # Basic; unset → admitted by source address
# ca_file = "/etc/excubio/test-ca.pem" # test clouds only; replaces the pinned vendor CA (architecture.md §11)
[egress]
deny = ["0.0.0.0/8", "127.0.0.0/8", "169.254.0.0/16", "::/128", "::1/128", "::ffff:0:0/96", "fe80::/10"] # unset on a managed installation: also 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, fc00::/7
own_networks = true
[snmp]
spool_dir = "/var/lib/excubio/snmp-spool" # local disk, per node
spool_bytes = "256MiB"
[reporting]
# listen = "0.0.0.0:5433" # embedded Postgres only: reporting_v1 over TLS
[secrets]
key_files = ["/etc/excubio/keys/secret.key"] # the first wraps; or EXCUBIO_SECRET_KEY (§6)
[bundles]
trusted_keys = ["/usr/share/excubio/bundle-signing.pub"] # the vendor's key, a file of the package (§5)
[backup]
# schedule = "24h"
# dir = "/var/lib/excubio/backups"
# keep = 7
# recipients = ["age1…"] # required with schedule: backups are encrypted (§8)
Packages. excubio-hub installs the binary, the unit
excubio-hub.service and this file with the keys the package's defaults
set, and creates the service user and group excubio:
| Path | Owner, mode | Holds |
|---|---|---|
/etc/excubio/hub.toml, /etc/excubio/hub.env | root:excubio 0640, kept on upgrade | This file; the unit's environment (DATABASE_URL, EXCUBIO_DATABASE_OWNER_URL, EXCUBIO_SECRET_KEY) |
/etc/excubio/tls/ | root:excubio 0750 | The listeners' certificate and key |
/etc/excubio/keys/ | excubio 0700 | The deployment key, written by init run as excubio (§6) |
/var/lib/excubio/ | excubio 0750 | The data directory and the SNMP spool |
/usr/share/excubio/bundle-signing.pub | root 0644 | The vendor's trap pack key (§5) |
The unit runs excubio-hub serve as excubio, with
CAP_NET_BIND_SERVICE only (SNMP 162, SMTP 25 and syslog 514), a
read-only system and no access to home directories; the operator enables
it once the file is filled in, and a package upgrade restarts a running
node, so the nodes of an HA hub are upgraded one at a time (§7).
Removing the package keeps the data directory, the deployment key and the
user. The container image runs the binary as the user 65532 on a
distroless Debian base; its Helm chart runs the nodes as a StatefulSet
whose pod names are the node names, on different hosts, with at most one
node disrupted at a time, the logins and keys from Secrets, and
NetworkPolicies of the firewall needs below. excubio-msg and
excubioctl (with mib-compile, §5) are packages of their own.
The chart's further values (packaging/helm/excubio-hub/values.yaml):
- Installation (
installation.managed):false(default) for a standalone installation,truefor a managed one (§1), whose hubs the cloud provisions; it setshub_domain,mail_domain(hub.hubDomain,hub.mailDomain) and refuses, in the values' schema, SNMP and syslog listeners, a break-glass admin, an[auth] organizationortenantand a NetworkPolicy without the gateway's namespace unless the policy is external. Its NetworkPolicy denies the private networks besides those ofnetworkPolicy.egress.internet.except, as its hubs'[egress] denydoes. - Sizing:
profileha(default),smallorcell, the rows of §10, each with itssnapshot_cache(§10 Memory);resourcesreplaces the profile's, andhub.snapshotCachesetssnapshot_cache, which goes withresources. - Spool volume (
persistence): 1 GiB per node, room for a full spool of the defaulthub.snmp.spoolBytes(256 MiB) under both profiles without thedisk-spaceself-alert (pipeline.md §19); a larger spool needs a volume of at least its size and a fifth more. - Enrolment Job (
enrolment):excubio-hub init --enrolas a Helm hook before every install and upgrade, with the migration login and the enrolment token (exe_…) of a Secret (§4); it runs again unchanged on upgrades, and the Secret may go once the hub enrolled. On a managed installation it runsinit --managedwith the installation token (exm_…) of the Secretenrolment.installationToken. The layout (enrolment.partitions,correlatorShards,linkShards) defaults to 32, 1 and 1, on a managed installation to the cell of §10;enrolment.hostis a standalone hub's--host. It runsinit --no-admin-password, so its log holds no secret; withhub.auth.localAdminthe installer sets the break-glass admin's password withkubectl exec <release>-0 -- excubio-hub local-admin reset, which prints it once. - Database CA (
database.caBundle): the CA bundle of the database's server certificate, a key of a ConfigMap or a Secret, mounted asPGSSLROOTCERTin the nodes and the enrolment Job, so the logins usesslmode=verify-full, as a managed installation's do. - Metrics (
metrics):metrics_listenon port 9464 of every node, admitted by the NetworkPolicy fromnetworkPolicy.ingress.metricsonly, and a Prometheus OperatorPodMonitorof it (metrics.podMonitor); the management listener then serves no/metrics. - Relay listener (
relay):relay_listenon every node and each node'srelay_address<pod>.<domain>:<port>, with a Service of its own per node (<pod>-relay); on a managed installation the domain defaults torelay.<hub domain>. - Routes (
routes): Gateway APITLSRoutes that pass TLS through to the nodes for the UI and API host, an HTTPS intake host and each node's relay host; without them the installer routes to the Services. On a managed installation the UI and API route takes*.<hub domain>too, which carries the hubs' HTTPS intake to the management listener as well; each node's relay route takes*.<pod>.relay.<hub domain>, on the gateway listeners ofroutes.relayParentRefs(defaultroutes.parentRefs); the optionalroutes.intakeParentRefsroutes*.<hub domain>on a gateway listener of its own to the intake listener instead, androutes.smtpParentRefsaTCPRouteto SMTP. - NetworkPolicy:
networkPolicy.ingress.gatewayNamespaceadmits connections from that namespace only;networkPolicy.egress.internetallows any address but the cluster's networks it lists; a database entry is an address range or the pods of a CloudNativePG cluster in the namespace. WithnetworkPolicy.externalthe chart renders none: the cluster operator supplies a policy that enforces the same, for a gateway whose proxies aren't pods of one namespace; on a managed installation, every connection §1 Managed installations admits and none else, and the values then need neithernetworkPolicy.enablednorgatewayNamespace.
A managed installation (init --managed,
cli.md §6; what differs from a
standalone one: §1) serves the hubs the cloud provisions, each at its
own names
(architecture.md §11 Front
door): public_url is the installation's own host, where the one OIDC
callback is, and tls_cert a certificate for it and for
*.<hub_domain> (and *.<mail_domain> for STARTTLS), one for every
hub; hub_domain and mail_domain give a new hub its host
<host label>.<hub_domain> and mail domain
<host label>.<mail_domain>. Its management listener serves the UI,
/api/v1 and the HTTPS intake's paths (/ingest/…, /bsmc/…,
/opr-web/…), so one port and one gateway listener carry a hub's
host; the intake listener serves the intake's paths alone, for a
gateway listener of its own. On either, an intake path takes an intake
token only and the API a session or an API token only, as on separate
listeners. A relay's forwarded HTTPS intake is served as on any
installation (architecture.md §13 TCP intake). Its nodes ignore snmp_listen,
syslog_listen and [auth] local_admin, and without [egress] deny
deny the private networks too; a cluster network outside them goes
into deny. metrics_listen serves the
installation's series, and each hub's are on its host
(integrations.md §11). Its nodes start
before its first hub and serve each hub the provisioning creates while
they run
(architecture.md §12). A standalone
installation's [auth] organization and tenant are its hub's
sign-in, written to the hub at the start.
[egress] own_networks (default true) adds the node's own addresses,
those of its interfaces, to deny, so no URL of the spec reaches a
service of the node itself. deny applies to the hosts of the spec and
the audit sinks that the node dials itself, not to those it reaches
through a relay nor to the hosts of this file
(architecture.md §11).
Without tls_cert and tls_key a node serves its listeners in plain
HTTP, which serve allows on the loopback address only. The database
logins are read from this file or from DATABASE_URL and
EXCUBIO_DATABASE_OWNER_URL, never from the command line.
The migration login writes [audit] retention to the database
(schema/hub.sql audit_policy) at db migrate
and at the start of serve when it migrates; the server login can only
read it, so the hub's own nodes can't shorten the audit log
(compliance.md §3).
Firewall needs of the hub:
| Direction | Peer | Port |
|---|---|---|
| Inbound | Sources | intake listener (HTTPS), 162/udp; 25/tcp from the mail relay; 514/udp, 514/tcp, 6514/tcp for syslog |
| Inbound | Users, Grafana | management listener; Postgres (TLS, role excubio_reporting) for reporting_v1 |
| Inbound | Prometheus | metrics listener, when set |
| Inbound | Relays | relay listener, from the relays' networks or their forward proxy |
| Outbound | Cloud, Watch | 443 through the forward proxy, exempt from TLS inspection |
| Outbound | Inventory sources (CMDB and ITSM), ITSM, SMTP relay, IMAP mailboxes, OBM, Icinga API, SMPP (fallback) | as configured |
| Between nodes | Postgres | 5432 |
3. Cloud and Watch
The vendor runs the cloud in three zones at provider A and Watch at two
locations at provider B, both in the EU, from the container images of
excubio-cloud and excubio-watch with their Helm charts
(packaging/helm): a Deployment of replicas spread over zones with at
most one disrupted at a time, a Job that runs migrate with the migration
login before an install or upgrade, /healthz and /readyz as probes,
every secret below from a Secret the chart names (the migration login's
from a Secret of its own, which the replicas don't reference), the OIDC
client ids as values or from a ConfigMap's or Secret's key, the CA bundle
of the database's server certificate mounted as PGSSLROOTCERT, no
service links in the pods' environment, an ingress for the
public listener (the cloud's for its host and every tenant's,
*.<host>), a load balancer that passes the mutual-TLS listener (the
cloud's hub link, Watch's internal listener) through, and
NetworkPolicies; each chart's values.schema.json refuses values it
doesn't know. Each is operated as several
stateless replicas over Postgres with a synchronous standby; releases are
rolling. The vendor's on-call team is paged by Watch for cloud failures and
by provider-B-independent monitoring for Watch failures.
Database roles. The cloud's and Watch's databases have three group
roles each, without login: an owner, an app role and a lookup role
(schema/cloud.sql §9,
schema/watch.sql §6). The first migration creates
them when they are missing, which takes a superuser or a login with
CREATEROLE; on a managed Postgres without either, the administrator
creates them beforehand with CREATE ROLE … NOLOGIN and grants the lookup
role to the owner. The vendor grants them to two login roles per database,
each with its own DATABASE_URL:
| Login | Member of | Runs |
|---|---|---|
| migration | excubio_owner (Watch: excubio_watch_owner) | migrate (cli.md §6), before a release is rolled out |
| server | excubio_app (Watch: excubio_watch_app) only | serve, which doesn't migrate and refuses a login that is a superuser, has BYPASSRLS or is a member of the owner |
No login is a member of the lookup role.
Platform operators. The vendor's operators, who call the platform
operations (api/cloud.yaml tag platform), are
logins of the vendor's organization (EXCUBIO_OPERATOR_ORG) that the
vendor names with the migration login:
excubio-cloud operator add --subject <subject> [--name …] (the login's
subject at the installation's Zitadel, its user id; the issuer is
EXCUBIO_OIDC_ISSUER or --issuer), operator list and
operator remove --subject <subject>, whose operator can't sign in from
then on (cli.md §6). The first operator is
added this way after the first migrate; each change is written to the
installation's own audit (schema/cloud.sql
platform_audit) with the database login that made it.
Installations of hubs. The hubs the vendor runs live on its
managed installations, each registered as shared or dedicated (§1); a
dedicated one serves the one tenant that names it. Vendor operators
keep the registry
(api/cloud.yaml tag platform;
schema/cloud.sql installation), each change in
the installation's own audit with the operator as actor:
createInstallationregisters one with its name, kind, the domain its hubs' hosts live under (<host label>.<hub domain>, fixed) and its capacity in hubs, and answers its enrolment token (§4);issueInstallationEnrolmentTokenissues another.updateInstallationchanges the capacity, or drains it: adraininginstallation takes no new hub and keeps serving its hubs, so a full or retiring cell is drained and its hubs left to end there. It also names the installation's operator hub (operator_hub), a hub placed on it, which the installation raises its own conditions in and Watch tests hourly (architecture.md §12): on a shared installation the vendor's own hub, of the vendor's tenant, created withcreateHubhostingvendor; on a dedicated one that hub or the tenant's own hub (§1).excubioctl platform installation update NAME --operator-hub HUB(cli.md §5).deleteInstallationremoves one that runs no hub and that no tenant names.updateTenantinstallationnames the installation a tenant's new vendor-run hubs go to: a dedicated one, which then serves that tenant alone, or a particular shared one. Without it the cloud places a new vendor-run hub on the active shared installation with room that was created first, so cells fill one after another and a new cell waits as the spare.listUsagereads the hubs' daily usage as their installations report it, per tenant and day, with each tenant's billing account.
An installation calls the cloud on the installation channel
(api/cloud.yaml tag installation), on the hub
link's listener, with a client certificate of the cloud's hub CA whose
common name is installation:<id>. The cloud finds a hub on the link by
its certificate among the hubs and an installation on the channel among
the installations, so neither certificate passes for the other. The
channel shows an installation the desired state of its own hubs and the
facts each needs (§4), and nothing else of a tenant.
Secrets. The cloud's and Watch's servers take their secrets (the
DATABASE_URL of their login, the deployment key as
EXCUBIO_DEPLOYMENT_KEY, the cloud's hub CA key, which issues the
client certificates of the hubs and the installations (§4), as
EXCUBIO_HUB_CA_KEY, the key of
the cloud's client certificate at Watch (§6) as
EXCUBIO_WATCH_CLIENT_KEY, and at Watch its answer key as
EXCUBIO_WATCH_ANSWER_KEY, §6) from the environment or from the file that the
variable of the same name with _FILE appended names, never from the
command line, which every user of the host can read. SIGTERM stops a
server gracefully: it accepts and claims nothing more, the sends in
flight record their outcome and the open requests get their answers,
for at most 20 s.
The vendor publishes the app (mobile.md §1) and holds its push credentials: an APNs token-signing key and an FCM service account, kept in the cloud's secret store and rotated yearly.
Settings of the installation. The cloud's and Watch's configuration files hold what is the same for all tenants; a release or a rolling restart changes it:
| Setting | Default | Meaning |
|---|---|---|
| Carriers | – | Per carrier: id, medium, priority and the name of its credentials and callback-signing secret in the secret store; per SMS and voice carrier the number its probes come from (EXCUBIO_PROBE_FROM, carrier=number,…), and the vendor's test number per country calling code that probes go to (EXCUBIO_PROBE_TO, 49=number,…, on-call.md §4). A server writes them to carrier at its start (schema/cloud.sql). Watch: its one carrier, its test number, and the numbers of the vendor's on-call team with the number Watch pages them from (watch.md §5). |
controller_shards | 16 | Shards that tenants are spread over (EXCUBIO_CONTROLLER_SHARDS, chart cloud.controllerShards, architecture.md §8): a new tenant gets the shard with the fewest tenants. |
link.max_connections | 16,384 | Connections with a client certificate (hubs, installations) that one replica's link listener holds at once (EXCUBIO_LINK_MAX_CONNECTIONS, chart cloud.link.maxConnections); one beyond is closed after its handshake (architecture.md §8). A hub holds one connection for its down stream and one for each of its nodes that sends up messages, an installation one per node. A replica that restarts moves its connections to the others, so all of them must fit on N − 1 of N replicas: the setting is at least (hubs × (1 + sending nodes per hub) + installation nodes) / (N − 1), for 5,000 hubs of two connections on 3 replicas 5,000 and some. Each connection takes a file descriptor (the container's limit is above the setting) and at most about 100 KiB of memory with its open stream (the test link_scale soak measures it), 1.6 GB at the default. |
link.replica_loads | 8 | Replica loads that one replica builds and sends at once (EXCUBIO_LINK_REPLICA_LOADS, chart cloud.link.replicaLoads); one beyond is answered 503 with a Retry-After of 5 to 20 s (architecture.md §5). A load holds a connection of the handlers' 32 while it reads and the replica in memory until it is sent. |
push.receipt_window | 30 s | How long a push step waits for a device receipt (mobile.md §3). |
carrier_health | 20 attempts, 10 min, 20 %; probes every 5 min, every 1 min while unhealthy, 2 min for their receipt; 5 min unhealthy at least | The numbers of the health rule (on-call.md §4). |
messages.tenant_daily | 200 | Verification codes and test messages per tenant and day (on-call.md §1). |
| Billing service | – | Its calls of the cloud: the billing service's machine user at the installation's Zitadel, its subject (EXCUBIO_BILLING_SUBJECT, its user id) and the audience its access tokens are issued for (EXCUBIO_BILLING_AUDIENCE, the cloud's project at Zitadel, which the machine user asks for with the scope urn:zitadel:iam:org:project:id:<project>:aud; chart cloud.billing.subject, cloud.billing.audience); with both it calls the operations of tag billing (architecture.md §10) at the base https://<installation host>/api/v1/billing. The cloud's calls of it: its API's base (EXCUBIO_BILLING_URL, such as https://account.example/api/v1) and the cloud's own machine user at the installation's Zitadel (EXCUBIO_BILLING_CLIENT_ID, the secret EXCUBIO_BILLING_CLIENT_SECRET), whose access tokens, JWTs, are issued for the billing service's project (EXCUBIO_BILLING_PROJECT) and carry its role service:excubio there (chart cloud.billing.url, cloud.billing.clientId, cloud.billing.project, secrets.billingClientSecret); the cloud reaches the billing service's host through its egress. Without them there is no billing service, as on a private installation, and tenants are created by vendor operators. |
| Sign-up | – | EXCUBIO_SIGNUP_URL (chart cloud.signupUrl), the billing service's sign-up page for Excubio, which the installation's own host of the cloud UI offers as "create an organisation" (ui.md §3); without it there is no entry. |
| Trial | EU and EEA; 20 | EXCUBIO_TRIAL_CALLING_CODES, the country calling codes a tenant under trial delivery may send SMS to, within its own contact_calling_codes (comma-separated, without +; by default those of the 27 EU member states, Iceland, Liechtenstein and Norway), and EXCUBIO_TRIAL_SMS_DAILY, the SMS such a tenant sends a UTC day, codes included (chart cloud.trial; on-call.md §4). The source address the limits of its codes count is the last address of X-Forwarded-For, which the ingress appends. |
| App versions | – | Every released app version with its release date, shipped with each cloud release; the cloud accepts those of the last 12 months, and a version newer than every listed one, which was released after the cloud (mobile.md §1). |
| Sign-in | – | The installation's Zitadel (EXCUBIO_OIDC_ISSUER) and the cloud UI's client there (EXCUBIO_OIDC_CLIENT_ID, the secret EXCUBIO_OIDC_CLIENT_SECRET). A tenant signs in at its organization (tenant.idp_org_id) on its host, <slug>. and the host of the public URL (EXCUBIO_PUBLIC_URL), through the one redirect URI https://<host>/login/callback registered for the cloud UI's client (and https://<host>/watch/callback for Watch's), whatever the tenant (architecture.md §11); vendor operators at the vendor's own organization (EXCUBIO_OPERATOR_ORG). When tenants share an organization, the claim that grants a login a tenant is EXCUBIO_OIDC_TENANT_CLAIM (default Zitadel's project roles, urn:zitadel:iam:org:project:roles, with a role per tenant whose key is the tenant's slug, asserted in the tokens; architecture.md §12). The app's logins on devices are issued for the app's client (EXCUBIO_APP_OIDC_CLIENT_ID), operators' for the operators' client (EXCUBIO_OPERATOR_OIDC_CLIENT_ID, a native client that allows the device code grant, which excubioctl login --operator uses); either is the cloud UI's client when unset, and both issue their access tokens as JWTs (architecture.md §12). People's excubioctl login --cloud signs in at excubioctl's client (EXCUBIO_CLI_OIDC_CLIENT_ID, chart cloud.oidc.cliClientId or cliClientIdFrom): a client of its own, public (no secret), that allows the device code grant and no other and issues its access tokens as JWTs; without it the cloud names no such sign-in and excubioctl asks for an API token (cli.md §1). The cloud UI's Watch page signs in at Watch's client there (EXCUBIO_WATCH_OIDC_CLIENT_ID) and calls Watch at its public URL (EXCUBIO_WATCH_URL), which the UI's Content-Security-Policy allows. |
| Holiday regions | – | A TOML file (EXCUBIO_HOLIDAYS) of the built-in holiday regions: [[regions]] with code (DE-RP), name and days = [{ day = "2026-12-25", name = "…" }], shipped by the vendor and kept current. A server writes it at its start: each region of the file with exactly its days, regions it doesn't name unchanged; rotations whose calendars use a changed region store their shifts again (on-call.md §2). |
| Watch for the UI | – | Watch's public URL (EXCUBIO_WATCH_URL) and its OIDC client at the installation's Zitadel (EXCUBIO_WATCH_OIDC_CLIENT_ID), which the cloud UI's Watch page signs in to (getWatchAccess); both origins are in the UI's Content-Security-Policy. |
| Mail relay | – | The SMTP submission host of the cloud's mail provider in the EU, with its credentials in the secret store. E-mail notices leave through it, from an address of the installation's domain that is signed with DKIM and covered by SPF and DMARC. |
| Evaluation delivery | off | EXCUBIO_EVALUATION_DELIVERY=inbox: no carrier; every tenant is under evaluation, whatever its delivery mode, so every SMS, call, push and e-mail goes to its recipient's evaluation inbox in the cloud UI, for an installation without carrier accounts. Off, each tenant's mode decides (on-call.md §4). The cloud refuses to start with it and a carrier configured; /readyz answers with a text that says so, the log warns at the start, and the cloud UI shows a banner on every page. Off in production. |
| Watch's test number | – | EXCUBIO_WATCH_TEST_NUMBER, the same at the cloud and at Watch (charts cloud.watch.testNumber, watch.testNumber): the E.164 number at Watch's carrier where the synthetic incidents' SMS arrive (watch.md §1). Without it the cloud fails such an SMS of a live tenant (watch.no_test_number) and hands that of a tenant under evaluation to Watch, as it hands every one under evaluation delivery; a Watch with it refuses the cloud's hand-over (on-call.md §4). |
| Watch's CORS | – | Watch: the cloud's public URL (EXCUBIO_CLOUD_PUBLIC_URL, chart watch.cloudPublicUrl), whose tenants' hosts are the only origins that may call Watch's check operations from a browser, as the cloud UI's Watch page does (architecture.md §11); without it the Watch page can't reach Watch. |
| Watch replica push | 5 min | How often the cloud repeats its pushes to Watch (watch.md §5). |
4. Enrolment
A hub holds a client certificate of the cloud's hub CA, which authenticates it on the link. A hub the customer runs is enrolled with a token, a hub on a managed installation (§1) by its installation.
A hub the customer runs:
- A tenant admin creates a hub in the cloud UI with the rotation and
fallback numbers that Watch pages for it, and receives a one-time
enrolment token (
exe_…, valid 24 h). excubio-hub init --enrol exe_…generates an ECDSA P-256 key pair, sends a CSR with the token and receives the client certificate (valid 1 year, renewed automatically), whose subject common name is the hub's id. The same call sends the public key of the hub's Watch key pair, which the cloud passes to Watch with the hub's checks (watch.md §1).- The hub loads the replica (architecture.md §5) and is ready.
A second node of an HA hub joins with excubio-hub join against the
shared database; it uses the same hub identity. init --enrol leaves
a hub that enrolled as it is, so the Helm chart's enrolment Job (§2)
runs it again on every upgrade.
A managed installation enrols as a hub does, on the
installation channel (api/cloud.yaml tag
installation):
- A vendor operator registers it (
createInstallation, §3) and receives a one-time enrolment token (exm_…, valid 24 h). excubio-hub init --managed --installation-token exm_…(orEXCUBIO_INSTALLATION_TOKEN,_FILE; cli.md §6) generates an ECDSA P-256 key pair and sends a CSR with the token (enrolInstallation); its client certificate (valid 1 year) namesinstallation:<id>, and its key is stored in the installation's database sealed under the deployment key (schema/hub.sqlinstallation_link).initleaves an installation that enrolled as it is, so a deployment's Job runs it again on every upgrade. It renews it 30 days before expiry (renewInstallationCertificate), the old one valid until its first call with the new one, as a hub's. Enrolling with a new token (issueInstallationEnrolmentToken) replaces the certificate, after a suspected compromise or a lost key.
A hub on a managed installation needs no token copied by a person:
- A tenant admin creates it with hosting
vendor; the cloud places it on an installation with room (§3) under its host label, by default the tenant's slug and the hub's name joined by a hyphen and unique within the installation, and names its first admin, by default the admin who created it. The hub isprovisioning. - The installation polls the desired state of its hubs every 30 s
(
pollInstallation, a plain poll: the changes are not urgent, and a poll holds no connection on the cloud's replicas): each hub changed since its cursor, whole and current, never a difference, so applying one again changes nothing. The state isactive,suspendedwith the tenant, ordeletedonce the hub is decommissioned or the tenant is deleting (architecture.md §12); each carries the hub's id, tenant, host label, the sign-in facts (the tenant's Zitadel organization and slug,[auth] organizationandtenant, §2), the first admin's IdP subject, the per-hub limits and the retention tier, and whether the hub holds a certificate. - For a hub without one, the installation generates the hub's link
key and Watch key and sends a CSR with the Watch public key
(
enrolInstallationHub): the hub gets its certificate as a token enrolment gives it, and isenrolled. - The installation reports each hub
provisioned,failedwith a reason that the tenant admins and the vendor's operators see, or, once its data is gone,deleted(reportHubState), which frees its host label and its place. It reports each hub's usage once a day (reportUsage): events received and refused, CIs, sources, relays and stored bytes.
An installation enrols only the hubs placed on it and reads only their
state. Revoking such a hub (revokeHub) makes its installation enrol it
again with new keys; decommissioning it deletes it.
The installation's client. On an enrolled managed installation one
node at a time runs the client of the channel, the holder of the lock of
class 13 (architecture.md §4);
another takes it over within seconds. Whatever it learns and reaches is
in the installation's database: the cursor, each hub's desired state with
how far it got, its reports and the last day of usage sent
(schema/hub.sql installation_link,
installation_hub). Every step applies a whole state again without
changing what is there, so a takeover or a crash at any point goes on
where it stopped. For each hub whose state is new it:
- Sets it up (
activeorsuspended): in one transaction its row with one lane and its shards, its host name and mail domain (<host label>.and[server] hub_domain,mail_domain), its sign-in facts ([auth] organizationandtenantfromidp_org_idandtenant_slug), its limits with the retention tier, its state and its data key; then its first revision, the empty specinitgives a standalone hub, andadminhub-wide foradmin_subjectat[auth] oidc_issuer. Nodes serve it within a second of its row. The empty spec has no Source, so intake answers every event of it404 intake.unknown_sourceand nothing is taken and lost; the admin's first spec names a team of the tenant asrouting.unroutedTeam(spec-format.md §5 L1). - Enrols it when the poll says it holds no certificate and it stored
none since, when it stores none, and when the cloud refused its stored
certificate on the link a minute or more after it was stored: a new
link key and Watch key (
enrolInstallationHub), stored as a token enrolment stores them. - Reports it
provisioned. A step that fails is reportedfailedwith a reason for the tenant's admins, naming nothing of the installation, and tried again after a wait that doubles from 30 s to an hour; from the fifth failure in a row it is a condition of the installation, as is the channel failing for 5 minutes (pipeline.md §19). - Deletes it (
deleted): its statedeleting, which stops its link, steps, intake and front door on every node, and its relays revoked; 10 s later its usage of the days not yet reported, today's included, then its action tasks and every row of it, in calls of at most 5,000 rows (compliance.md §5); then the reportdeleted, after which it forgets the hub.
It sets the operator hub the poll names, once that hub exists, renews its
certificate 30 days before expiry, and after midnight UTC sends the usage
of each day that ended since the last one the cloud took (at most 35
days back), repeated until taken. excubio-hub enrol and revoke refuse
a hub the cloud provisions, and its Overview says the vendor provisions it
(ui.md §2).
- Allowlist. A hub pages and receives only the rotations on its allowlist, set when it is created and changed by a tenant admin (architecture.md §12); the cloud leaves out involved rotations of a group page or update that aren't on it (at most 50 per message). A hub acts only on its own alerts, groups and pages: a merge of groups or fallback sends that name another hub's change nothing.
- Enrolling again. A tenant admin issues a new enrolment token for a
hub the customer runs (
excubioctl hub enrol-token ID), andexcubio-hub enrol exe_…enrols the existing data directory with it: after a revocation, a suspected compromise, a certificate that expired while the hub was offline, or a restore. Enrolling issues a new certificate, revokes the old one, renews the link epoch (so the hub loads the replica, architecture.md §5) and replaces the Watch key. - Renewal. The hub renews its certificate 30 days before expiry
with a new CSR (
renewHubCertificate). The certificate it renewed with stays valid until the hub first calls with the new one, so a renewal whose answer was lost is repeated; every node of an HA hub loads the new certificate from the shared database. - Revocation. The cloud (
excubioctl hub revoke ID) or the hub (excubio-hub revoke) revokes the certificate; the hub deletes its key. Watch drops the hub's Watch key and pauses itshubandsyntheticchecks until the hub enrols again (watch.md §1);revoke --decommissiondeletes the checks instead. - One copy per hub. The cloud gives every stream it opens the
hub's next stream epoch and closes the older stream
(architecture.md §5). Two copies of
one hub with their own databases (a backup restored with
--keep-identitywhile the original still runs) therefore take the stream from each other in turn. When a hub's stream changes holder more than 5 times in 10 minutes, the cloud tells the tenant admins that two copies of the hub may be running; an admin stops one copy and enrols the other again.
Relays enrol with the hub, not with the cloud (§12).
5. Bundles
The hub downloads nothing at runtime. Trap packs (rules plus compiled MIB tables) arrive as signed bundles:
netapp-ontap-2026.10.exbundle (tar.zst, reproducible)
manifest.json # name, version, signed_at, expires_at, files with sha256, rules, mib_modules
signature # JSON: key_id, and ed25519, the signature of manifest.json in hex
mibs.json # an object keyed by numeric OID: name, module, kind, type and base type, display hint, units, enum (number to label), a row's index, a notification's objects
rules.toml # the pack's trap rules (spec-format.md §3.2)
The manifest also carries the time the bundle was signed and when it
expires (vendor packs: two years after signing). Each file of
bundles.trusted_keys holds an Ed25519 public key as 64 hex digits; its
key id is the first 8 bytes of the key's SHA-256, in hex. The hub has
no built-in key: the vendor's public key ships with each release as a
file of the package and the image, which the default configuration and
the chart list, and customers list theirs beside it. The images published
from the main branch (stack.md §8)
carry no vendor key; a deployment of one sets the chart's
hub.trustedKeys.vendor to false and trusts only the keys it lists,
so it imports no vendor pack. excubioctl bundle import FILE
verifies the signature against bundles.trusted_keys, the files
against the manifest's hashes, and stores the bundle. It refuses:
- a key that is not trusted, or on the revocation list that every release carries (key ids of vendor or customer keys the vendor has been told are compromised);
- an expired bundle;
- a version older than or equal to the installed version of the same pack, so an old, validly signed pack can't be imported again.
Vendor packs are built in the vendor's CI; customers sign their own packs
with their own key, which they add to trusted_keys (excubioctl trap-pack keygen and trap-pack build, cli.md §4).
mibs.json comes from mib-compile (stack.md §5),
which compiles every MIB module of a directory with the modules it imports
and refuses a module that doesn't parse, a missing import and an object
without a type. A node records a
change of trusted_keys in the audit at start
(compliance.md §3). A bundle that is in use
when its key is revoked or leaves trusted_keys keeps working, and the
hub raises a self-alert until a pack signed with a valid key replaces
it.
6. Keys and secrets
excubio-hub initgenerates the deployment key and writes it to the first ofsecrets.key_files(0400, outside the data directory), or prints it forEXCUBIO_SECRET_KEY. All HA nodes need the same keys.- The deployment key wraps each hub's data key; a hub's data key
encrypts the hub's secret values, the link's client key and the login
cookie, with the hub's id in the associated data of each
(architecture.md §12). The database holds
only key fingerprints
(
schema/hub.sqldata_key). Losing the key loses all secret values and the link's client key (the hub enrols again, §4);excubio-hub secrets export-keyprints it once for a separate backup, and readiness warns until that has happened. excubio-hub serverefuses to start without a deployment key, or with keys that don't unwrap every data key. A node without one could open neither secrets nor the link's client key: it would neither hold the link nor sign audit anchors (schema/hub.sqlcloud_link).- Rotating the deployment key:
excubio-hub secrets add-key -o FILEgenerates a new key into FILE.- On every node, FILE is put first in
secrets.key_files, the old key after it, and the node restarted; a node unwraps with any key of the list and reports their fingerprints instatus. excubio-hub secrets rotate-keyre-wraps every data key with the first key. It refuses while a node of the hub runs without that key.secrets export-keybacks up the new key.- The old key is removed from
key_fileson every node, and kept offline as long as backups wrapped with it are kept (§8).
- The Watch key is an Ed25519 key generated at enrolment, whose
public key the cloud passes to Watch (§4); it is kept
sealed under the data key (
schema/hub.sqlcloud_link), and every node signs its heartbeats with it (watch.md §1), so every node needs the deployment key for them too. - Rotating the data key:
excubio-hub secrets rotate-data-keycreates a new data key, which encrypts every new secret value; a task re-encrypts the stored values and retires the old data key when none uses it. - Cloud and Watch. Each has its own deployment key, kept in its
hosting provider's key management service and given to the servers at
start; the cloud's and Watch's are different keys at different
providers. It wraps a data key per tenant
(
schema/cloud.sqltenant_key), which seals the tenant's personal data. The vendor rotates the deployment key yearly by wrapping every data key again, and a tenant's data key yearly by adding a key that seals everything new while a task seals the stored values again and then retires the old key. The keyed hashes of numbers and e-mail addresses use a key derived from the tenant's first data key, which is kept for that purpose after it is retired from sealing, so no hash changes with a rotation. Deleting a tenant deletes its keys. Carrier credentials, callback-signing secrets, the push credentials (§3) and the mail relay's credentials are in each part's secret store. The cloud calls Watch with a client certificate that a CA of Watch's own issues, valid one year and renewed by the vendor; Watch accepts no other. Watch's answer key is an Ed25519 key, given to its servers as its 32-byte seed in hex; it signs the answers of reverse checks, and the vendor publishes its public key with its key id (the first 8 bytes of the public key's SHA-256, hex) for customers' probes (watch.md §1). The audit signing key: compliance.md §3.2.
7. Upgrades
- Releases: one release line, a minor version every two months and patch versions in between. Security fixes ship for the two latest minors.
- Migrations: the migrations of a released version are never
changed; a version adds its own after them, so a database upgrades in
place from any release, and from any build between releases: such a
build's migrations aren't changed either. Each migration changes its
reference with it (
schema/). - Hub: from one minor version to the next by rolling restart of the
nodes; migrations are backwards compatible for one minor version, so the
two versions run side by side during the roll. A node migrates at start,
with the migration login (§1), under an advisory lock: the first node of
the new version applies the migrations, the others wait and find nothing
left to do, and a node of the previous version that starts during the
roll checks its own migrations and leaves the later ones alone (cloud
and Watch alike);
excubio-hub db migrateruns them without starting the hub. A node doesn't start against a schema more than one minor version away from its own, anddb migraterefuses such a schema too, so a hub several minors behind upgrades through each minor in turn. The embedded Postgres changes major version only with a major version of Excubio, whose binary also carries the previous major's server and runspg_upgradeon the data directory at its first start. An upgrade changes no routing decision (spec-format.md §7). A major upgrade starts only if the active revision's routing level is one the new major keeps. - Stored formats during the roll. A node reads what either version
writes, and writes a format that the other version can't read only once
every node of the hub runs a version that reads it: every row of
hub_node, which a node keeps while it is down and until it leaves the hub, names such a version, and every lock connection belongs to such a row. A node that is down on the old version therefore holds the new format back until it runs the new one or is removed (excubioctl node remove). - Going back. There are no down migrations; an earlier version runs
only on a restore of a backup from before the upgrade (§8). With the
embedded database,
excubio-hubtakes that backup before it migrates when scheduled backups are configured; with an external database, it is the operator's backup or point-in-time recovery. Everything the hub stored after the backup is lost: events, alerts and their acks and closes, decisions, spec revisions and change sets. - Cloud and Watch are upgraded by the vendor without downtime and accept
the last four hub minor versions, eight months of releases, so a hub
on a minor that gets security fixes is always accepted; an older hub
gets
426(hub.update_required, architecture.md §5). - App: released through the stores at least monthly; the cloud accepts app versions of the last 12 months (mobile.md §1). Customers with MDM can hold an app version within that window.
8. Backups
- Hub:
excubio-hub db backup --to FILE [--encrypt-to AGE_RECIPIENT]or scheduled backups ([backup]), which are dumps encrypted to the configuredagerecipients:schedulewithoutrecipientsdoesn't start. Against an external database, the customer's own backup (point-in-time recovery recommended). Secret values stay encrypted in dumps; the deployment key is backed up separately. RPO in HA mode, with its synchronous standby: 0 for accepted events. RPO of a single node: the backup interval, as the hub archives no WAL. The customer's objective for the stated HA deployment: RTO 4 h (§9). - Hub restore.
excubio-hub db restore FILEdrops the link certificate and key, so the restored hub connects only afterexcubio-hub enrol(§4);--keep-identitykeeps them when the old hub is gone for good (a move to an external database, a restore after its loss). Either way the hub loads the replica at its first start; alerts of incidents that it no longer knows are reported as lost (architecture.md §5). - Managed installation: CloudNativePG's continuous WAL archiving and base backups, encrypted, to object storage in the EU at another location than the cluster, with point-in-time recovery for 35 days; RPO 0 for accepted events by the synchronous standby, RTO 4 h. A restore restores the installation with all its hubs, as a hub restore above; one hub of a shared installation is not restored alone.
- The spec is in the database and in every backup;
excubioctl spec pullgives a file copy at any time. - Cloud: point-in-time recovery from continuous WAL archiving, copies in a second EU region, quarterly restore tests. Target RPO 5 min and RTO 4 h for the loss of the database with its standby; a zone failure is covered by the standby without loss. Backups and their copies are kept 35 days; personal data of a deleted tenant or a pseudonymised person leaves them when that period ends (compliance.md §5). After a restore the hubs resynchronise (architecture.md §5).
- Watch: the same at provider B, with copies at its second location and the same targets. A restored Watch takes the replica from the cloud's next push; the time it was down counts as one of its gaps (watch.md §2).
9. Service levels
Vendor objectives, for the parts the vendor runs:
| Part | Objective | Measured by |
|---|---|---|
| Cloud paging path | 99.95 % per month | Real pages: of the page requests the cloud accepted, the share whose first delivery a carrier or a push service accepted within 60 s (excubio_deliveries_total{kind="page"}, cloud tracing). Watch's synthetic pages are end-to-end evidence of the path, not the measurement (kind="synthetic"). |
| Cloud latency | p99 < 10 s from page request to first carrier submit | Cloud tracing |
| Push | Reported, not guaranteed: device receipts within 30 s per platform, and their latency | excubio_push_receipt_seconds, excubio_deliveries_total{kind="page",medium="push"} |
| Watch | 99.99 % of checks evaluated on time | Probes from a third location |
Objectives of the customer-run hub, met with the stated deployment (HA, §1; sized as §10; backups as §8) and its operation by the customer:
| Part | Objective | Measured by |
|---|---|---|
| Hub latency | p99 < 5 s from event stored to page request sent (without grouping wait and a pattern's wait), at the sized load, also for alerts the correlator routes | excubio_pipeline_lag_seconds, excubio_correlator_lag_seconds |
| Hub intake | 99.9 % availability | Hub metrics, Watch heartbeats |
| Hub recovery | RTO 4 h after the loss of the database with its standby | Restore tests |
A hub on a managed installation has the same objectives, which the vendor meets.
10. Sizing
| Load | Mode | Per node |
|---|---|---|
| ≤ 50 K events/day | single node, embedded | 2 vCPU, 4 GB RAM |
| ≤ 1 M events/day, bursts of 2,000/s for 10 min | HA, external Postgres | 2 × 4 vCPU, 8 GB RAM; Postgres 4 vCPU, 16 GB RAM |
| As above, with an inventory of up to 500 K CIs | HA, external Postgres | 2 × 8 vCPU, 12 GB RAM; Postgres 8 vCPU, 32 GB RAM |
| ≤ 50 K events/day, an inventory of up to 50 K CIs | managed, dedicated, profile small | 2 × 0.5 vCPU, 1 GB RAM; Postgres 2 × 0.5 vCPU, 1 GB RAM, 100 GB disk |
| A cell of up to 1,000 hubs, ≤ 1 M events/day together | managed, shared, profile cell | 3 × 8 vCPU, 16 GB RAM; Postgres 2 × 8 vCPU, 32 GB RAM, 500 GB disk |
Larger dedicated installations take the HA rows' sizes. Relays: §12.
A shared installation's cell. What was measured (the ignored
benchmark bench_500_hubs_on_one_node of excubio-hub tests/hubs.rs,
the test link_scale of excubio-cloud and the evaluator tests of
excubio-watch, on a developer machine):
| Measured | Result |
|---|---|
| 500 hubs on one node, 32 partitions, idle | 59 database transactions/s, every loop of the node included |
| The same, about 200 events/s of random hubs | partition steps p99 ≤ 74 ms of the 2 s step budget (architecture.md §4 Takeover) |
| One correlator shard for the 500 hubs | steps of median 400–520 ms of the 2 s budget |
| The cloud, per hub | two link connections, about 100 KiB of memory each (§3 link.max_connections) |
| Watch | 10 batches of 500 heartbeats applied in under a second |
The cell layout derives from them; its numbers are guidance, not
measurements:
- Nodes: 3. One node carried 500 hubs, so two carry a cell of 1,000 while the third is down or being upgraded.
- Partitions: 64 (
init --managed --partitions 64), as many hubs per partition as in the benchmark at 1,000 hubs. - Correlator shards: 8. A shard's step time grows with its hubs; one shard for 500 took a quarter of the budget, so 8 shards of about 125 hubs each keep a step at an estimated tenth of it with room for bursts and for one node holding every shard.
- Link shards: 16, which spread evenly over three nodes and move a sixteenth of the hubs' links at a time on a takeover; the count is not measured.
- Postgres: 59 transactions/s idle per 500 hubs make about 120 at 1,000; the size is estimated one step above the HA row for the cell's total of events, for the idle work and the rows of 1,000 hubs, with a synchronous standby. The disk follows the storage figures below for the cell's events per day and its hubs' retention tiers (compliance.md §2): 1 M events a day kept 90 days are about 180 GB of events, alerts and decisions and 90–270 GB of payloads.
- Memory: a node's memory is dominated by
snapshot_cache(§2), the hubs' snapshots its steps hold, about 30–60 MB per 100 K CIs summed over the hubs that have events (below), and by the replays and merges it runs at once, each bounded by its hub'scisandreplay_window_dayslimits. Each profile'ssnapshot_cacheis a quarter of its memory limit, leaving the rest to the replays, merges, pools and the process:small256 MiB of 1 GiB (the snapshots of 50 K CIs take about 30 MB, three of them 90 MB),ha2 GiB of 8 GiB (a replay of the size below takes 5 GB beside it),cell4 GiB of 16 GiB (the snapshots of the hubs with events, about 7 M CIs together at 60 MB per 100 K). The hub's own default without the chart is 1 GiB, a quarter of the single node's 4 GB. - Cloud: each cell adds two connections per hub and one per node to
the cloud's link listeners;
link.max_connectionsand the replicas follow §3.
A node's memory is dominated by a replay it runs, then by an inventory merge it runs:
- Snapshot. Every node holds the active snapshot in memory: about
30–60 MB per 100 K CIs, most of it the CIs' attributes
(spike
correlator, spikeinventory-merge). The correlator's node also keeps the previous snapshot until the correlator has passed the activation (architecture.md §4), and the node running a replay holds one more (pipeline.md §15). - Inventory merge. About 0.35 GB per 100 K CIs for the last good imports, the active snapshot and the merge's working set, on the node that runs the merge.
- Replay. About 4–5 GB of state for 14 days at 1 M events a day with
two revisions, growing with the alerts left open in the range, on the
node running it (spike
replay; limits at that size: pipeline.md §12).
At 500 K CIs a node that runs a replay and a merge at once needs about 8 GB for them (three snapshots of 0.3 GB, 1.75 GB for the merge, 5 GB for the replay) besides its pools and caches; without a large inventory, about 5.5 GB.
The correlator takes 1,000 selected alert changes per second, with about
20 times headroom (spike correlator).
Storage: about 2 KB per stored event including indexes, plus raw payloads (typically 1–3 KB). For 20 K events a day and 13 months: about 15 GB of events, alerts and decisions plus 1.8–5.4 GB of payloads for 90 days. At the default retention the rows of the table come to:
| Load | Events, alerts and decisions (13 months) | Raw payloads (90 days) | Database disk |
|---|---|---|---|
| 50 K events/day | about 40 GB | 4.5–13.5 GB | 100 GB |
| 1 M events/day | about 790 GB | 90–270 GB | 1.5 TB |
| 1 M events/day, 500 K CIs | about 790 GB | 90–270 GB | 1.5 TB, the inventory history included |
The disk sizes leave room for the write-ahead log, the month that is
being dropped and bloat; a shorter retention
(compliance.md §2) shrinks them in
proportion. The
inventory history (compliance.md §2) at
500 K CIs takes at most about 16 GiB for 30 days in the current and
history tables of schema/hub.sql §3, measured with
an hourly churn far above a CMDB's
(spike inventory-merge).
11. Support access
The vendor has no standing access to a hub the customer runs.
excubio-hub diagnostics writes a bundle (logs, metrics, configuration
without secrets, spec, task backlog), which the customer reviews and
uploads on request.
A hub on a managed installation runs on the vendor's cluster, but its people's access goes through its UI and API like any hub's; the vendor's operators neither sign in to it nor read its rows in the normal course, and operate the installation through its operator hub (architecture.md §12). Access to the installation's database, its nodes or their logs is break-glass only: by an operator the vendor names for it, for a ticket of the customer's or an incident of the hub or its installation, recorded with the operator, the ticket, the time and what was done in the vendor's platform audit, and told to the tenant admins of the hubs it touched. The deployment key of a managed installation is the vendor's, kept in the cluster's secret store (§6); the hub's audit log records what its own interfaces do (compliance.md §3). In the cloud, vendor staff see a tenant's data only under a support grant of a tenant admin (architecture.md §10); Watch has no such access.
12. Relays
A relay (architecture.md §13) is installed by
the customer in a network its hub doesn't reach, as the deb or rpm
package excubio-relay with a systemd unit, or as a container image with
a Helm chart; on Linux, x86-64 and arm64. Its only state is its spool
directory and its key and certificate. It needs outbound connections to
the hub's relay listener, directly or through a forward proxy, and to
the targets of its allowlist, and the inbound ports of its listeners.
Two or more relays behind one VIP or DNS name give senders a relay when
one is down; each needs its own enrolment.
/etc/excubio/relay.toml (--config, EXCUBIO_RELAY_CONFIG);
EXCUBIO_RELAY_HUB_URL and EXCUBIO_RELAY_STATE_DIR override [hub] url and [state] dir:
[hub]
url = "https://excubio.example.invalid" # the hub's management URL, for enrolment
# ca_file = "/etc/excubio/hub-ca.pem" # trusted for it beside the host's trust store
# proxy = "http://proxy.example.invalid:8080" # CONNECT tunnel to the hub
# proxy_credentials_file = "/etc/excubio/relay-proxy-credentials" # Basic, user:password
[state]
dir = "/var/lib/excubio-relay" # key, certificate, the hub's relay CA, the nodes
[spool]
# dir = "/var/lib/excubio-relay/spool" # default: the state directory's spool
bytes = "256MiB"
[metrics]
# listen = "127.0.0.1:9464" # /metrics, Prometheus text format; unset: none
# Listeners: kind https (spliced to the hub's TLS), http (plain HTTP
# intake), smtp, syslog-udp, syslog-tcp, syslog-tls, snmp.
[[listener]]
kind = "snmp"
listen = "0.0.0.0:162"
[[listener]]
kind = "syslog-udp"
listen = "0.0.0.0:514"
# What the hub may reach through this relay: networks, addresses, names,
# *.domain for every name below it, each with an optional port.
[allow]
targets = ["10.20.0.0/16", "cmdb.corp.example:1433", "*.corp.example:443"]
- Allowlist. A target is admitted when an entry admits its port and
either its name matches a name entry, or it resolves to addresses in
network entries, of which the relay dials only those; an address target
is admitted by a network entry. The relay resolves
names with its host's resolver, in the DNS of its network. Nothing is
admitted by default. The relay reads the file at start and on
SIGHUP, sends the hub its allowlist with its nexthello, and refuses what it no longer admits from then on. - Enrolment. A hub
adminissues a one-time enrolment token (exr_…, valid 24 h) in the hub UI, withexcubioctl relay enrol-tokenor withexcubio-hub relay enrol-tokenon a node (cli.md §6), with the relay's name.[hub] urlis the hub's own URL, on a managed installation its host; the node addresses the hub answers carry the hub's host label (architecture.md §13 Server names), which a DNS record*.relay.<hub domain>resolves.excubio-relay enrol exr_…generates an ECDSA P-256 key pair and sends a CSR with the token to the hub's management URL (enrolRelay,api/hub.yaml), whose TLS it verifies against the host's trust store (or--ca-file); the hub signs it with its relay CA and answers with the relay's id, its certificate (valid 1 year, the relay's id as common name), the relay CA's certificate and the relay addresses of its nodes. The relay keeps them beside its key in its state directory (0600). The hub creates its relay CA, an ECDSA P-256 key valid 10 years sealed under its data key, with the first token (schema/hub.sqlrelay_ca). - Renewal 30 days before the certificate expires, over the control connection (architecture.md §13); the certificate it renewed with stays valid until the relay first connects with the new one. A relay whose certificate expired enrols again with a new token.
- Revocation. A hub
adminrevokes a relay in the hub UI, withexcubioctl relay revokeorexcubio-hub relay revoke; the hub closes its connections and refuses its certificate. A revoked relay enrols again with a new token, under a new id. - Sizing. A relay needs about 0.5 vCPU and 256 MB of memory for a
thousand datagrams and connections a second, and disk for its spool
(
spool.bytes, default 256 MiB: about a million SNMP traps or syslog messages, hours of a full outage at the rates of §10), which it also holds in memory until the hub acknowledges it: memory beyond the 256 MB up tospool.bytes. - Spool directory.
spool.json(the spool's id and the highest position acknowledged) and segment files of the datagrams in order; a segment goes once the hub acknowledged all of it. Deleting the directory starts a new spool and loses what it held. - Upgrades. The hub takes relays within four minor versions of its own, either way; a relay outside is listed with its version and refused (architecture.md §13). Relays are upgraded one at a time, so the others carry the intake.
Packages. excubio-relay installs the binary, the unit
excubio-relay.service, the template unit excubio-relay@.service and
relay.toml with no listener and an empty allowlist, and creates the
service user and group excubio-relay:
| Path | Owner, mode | Holds |
|---|---|---|
/etc/excubio/relay.toml | root:excubio-relay 0640, kept on upgrade | This configuration |
/var/lib/excubio-relay/ | excubio-relay 0750 | The state directory: key, certificate, the hub's relay CA, the spool |
/etc/excubio/relay-NAME.toml | root:excubio-relay 0640, the operator's | The configuration of the instance excubio-relay@NAME |
/var/lib/excubio-relay-NAME/ | excubio-relay 0750 | The instance's state directory |
excubio-relay enrol runs as excubio-relay. The unit runs
excubio-relay serve as excubio-relay, with CAP_NET_BIND_SERVICE
only (for listeners below 1024) and the hardening of the hub's unit
(§2), logging at the level of RUST_LOG; the operator enables it once
the relay enrolled, and a package upgrade restarts a running relay.
Several relays on one host, each enrolled with its own token, run as
instances of the template: excubio-relay@NAME reads
/etc/excubio/relay-NAME.toml with [state] dir = "/var/lib/excubio-relay-NAME", the directory its unit also sets with
EXCUBIO_RELAY_STATE_DIR, with the same user and hardening; the operator
creates that directory (install -d -o excubio-relay -g excubio-relay -m 0750) before enrolling it with --config. A package upgrade restarts
the running instances too, a removal stops and disables them. Removing
the package keeps the state directories and the user. The
container image runs the binary as the user 65532 on the hub's base. Its
Helm chart (packaging/helm/excubio-relay) runs the relays as a
StatefulSet, each with its state on a volume of its own and enrolled by
an init step (enrol --unless-enrolled --token-file) with its own token,
the key named after its pod in a Secret, which may go once the relays
enrolled; the container listens on unprivileged ports and the Services
expose the documented ones, a load balancer keeping the senders'
addresses; /metrics is on, for the probes.
13. Tenant configuration with OpenTofu
The OpenTofu and Terraform provider terraform-provider-excubio
(tools/terraform-provider-excubio,
source address convexio/excubio) manages a tenant's objects through the
cloud API (docs/api/cloud.yaml), as an operations repository keeps them
in code: teams, their members added by hand with their roles, rotations
with their layers, escalation and grouping, and hubs with their
allowlist, Watch rotation and fallback numbers, run by the customer
with their enrolment token or by the vendor on one of its installations;
people (by e-mail address or login) and the tenant's settings and numbers
are data sources. Its documentation is in the registry's layout in the
provider's docs/.
- Boundary. The provider configures the cloud of one tenant. A hub's
spec (sources, routing, webhooks, secrets) changes only through the
hub's change sets with their approvals
(spec-format.md §4); people come from
the identity provider and keep their own contacts and notification
rules; overrides, swaps, absences and punch-ins stay operational.
Calendars, stakeholders, tenant settings and tenant roles are the UI's
and
excubioctl's. - Credential. A service-account token (
exk_…) of the tenant with the scopeconfig, given astokenorEXCUBIO_TOKENwith the tenant's URL asendpointorEXCUBIO_ENDPOINT; it reaches every operation of the provider's resources and data sources and nothing beyond the tenant's configuration (architecture.md §10). A tenant admin creates it on the Access page (service account, scopeconfig, an expiry) or withexcubioctl token create opentofu --cloud --service-account --scope config --expires +90d; the value is shown once and goes into the operations repository's secret store (for example SOPS) or the CI's secrets, never into the configuration or the state. Before it expires, a tenant admin creates the next one, replaces the secret and revokes the old one. The cloud audits the run's changes with the token as actor (actor kindservice).config:<team>limits a run to one team's configuration. - Declarative behaviour. Every write carries an
Idempotency-Key; a rotation is replaced withIf-Matchon the version last read (rotation.version_conflictwhen it changed since). Reads find changes made elsewhere; what the cloud doesn't read back (fallback numbers, a handset's number) is not compared. A layer's order of people that the cloud continued from the person on call counts as unchanged. A hub's enrolment token is in the state from its creation, and a change ofenrolment_token_triggerissues a new one. A hub the vendor runs (hosting = "vendor", with its host label and first admin's subject) has no token: its creation waits, at mostprovisioning_timeout, until its installation has provisioned it (§4), and fails with the installation's reason when the provisioning failed, the hub then tainted for the next apply. Destroying a hub decommissions it, and the cloud keeps it with its name and its Watch rotation. - Builds.
mise run terraform-providerbuilds it for linux amd64 and arm64 and darwin arm64, versioned with Excubio, intodist/terraform-provider: the zips withSHA256SUMSand the manifest of a registry release, and a mirror directory that serves as an OpenTofu filesystem mirror or, on a static web server, as a network mirror.