hub section of your Ultra config controls how this gateway connects to Ultra Hub for centralized management, telemetry sync, and team collaboration.
Configuration Reference
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Enable Hub connectivity |
url | string | https://hub.ultra.security | Hub API URL |
gateway_id | string | This gateway’s unique ID (set by ultra link) | |
workspace_id | string | Linked workspace ID (set by ultra link) | |
sync_interval | string | "60s" | How often to sync traces/events to Hub |
offline_mode | bool | false | Continue operating if Hub is unreachable |
deploy_key | string | Static API key for headless/CI deployments |
Setting Up Hub Connection
Hub connection is typically configured through CLI commands rather than editing the config directly:enabled, url, gateway_id, workspace_id, and authentication tokens in your config.
Authentication Methods
Ultra Hub supports two authentication methods:OAuth2 (Interactive)
For developer workstations. Runultra login to authenticate via browser:
Deploy Keys (Headless/CI)
For CI/CD pipelines and servers without browser access:dk_ prefix. The environment variable ULTRA_DEPLOY_KEY takes priority over the config value.
Sync Behavior
When Hub is enabled and the gateway is linked,ultra start runs a background sync loop:
- Traces and audit events are synced to Hub at the configured interval
- Heartbeats are sent at half the sync interval (minimum 30 seconds)
- Token refresh happens automatically before sync operations
- If authentication fails permanently (e.g., revoked token), sync is disabled with a single warning message