Skip to content

05-connect-deploy: Connect to data, Deployment, Time zones, Cube Core ​

Pages read: 69 (listed at the bottom)

Evidence notation: "Core image" = cubebi-cube (cubejs/cube:v1.8.35), paths under /cube/node_modules/@cubejs-backend/; "Cube Store binary" = cubebi-cubestore (cubejs/cubestore:v1.8.35), /cube/cubestored (string-grepped read-only).

How to read this slice: what self-hosting Core needs vs what Cloud manages ​

ConcernSelf-hosted Core (from cube-core/*)Cube Cloud managed
TopologyYou run N API instances (cubejs/cube), 1 refresh worker (CUBEJS_REFRESH_WORKER=true), Cube Store router + workers (cubejs/cubestore) via Docker Compose / community Helm chartsShared / Dedicated / Multi-cluster deployment types, created from a wizard
TLS / domainYour reverse proxy (nginx example) and certificateAuto *.cubecloudapp.dev hostname; custom domain via CNAME (Premium+)
AuthCUBEJS_API_SECRET, CUBEJS_JWK_URL, CUBEJS_JWT_*, checkAuth, check_sql_authSame engine, plus Cloud users/SSO, API keys, securityContext.cubeCloud.* injection
ScalingYou size containers (>=2 API x 2 CPU/3 GB; refresh worker >=6 GB; router 4 CPU/6 GB; workers 4 CPU/8 GB) and scale manuallyMin/max API instance autoscaling, Cube Store worker dropdown, idle worker hibernation, per-tier hard limits
HAOSS Cube Store has no replication; HA = several fully independent clusters behind an LB using /readyzCube Store replication/HA only in Cloud
Pre-agg storageCUBESTORE_REMOTE_DIR, S3, GCS, MinIO (community)Managed Cube Store; CSPS (your bucket incl. Azure Blob); CMK encryption
ReleasesYou pin cubejs/cube:vX.Y.Z; verify via Sigstore attestationsLTS/Regular update channels, auto-upgrade of patches, version dropdown
CI/CDYour own pipeline building an image / mounting /cube/confGit remote, GitHub App, cube deploy CLI, per-branch staging, per-user dev envs
NetworkYou are already inside your VPCPrivateLink/Private Link/PSC (backend), Private API connectivity (frontend), BYOC
CredentialsCloud-native workload identity (IRSA, GKE WI, Azure WI) works through drivers' default credential chainsCube-hosted OIDC issuer, token configs, per-user tokens
Observabilitydocker compose logs, /livez, /readyzStatus page, activity log, Query History, Audit Log, monitoring integrations

Connect to data: overview page ​

  • Docs: pages/admin/connect-to-data/index.md
  • What it does:
    • Navigation hub: data sources, multiple data sources, concurrency; recipes for SSL connections, data-source cost saving, per-tenant data source.
  • Availability: CORE (all linked mechanisms are Core config). Evidence: pages it links are env-var/config based.
  • Core building blocks to use: see sections below.
  • To build on Core: nothing. S.
  • Gotchas: none.

Multiple data sources (Settings → Data Sources UI) ​

  • Docs: pages/admin/connect-to-data/multiple-data-sources.md
  • What it does:
    • One default source (bare CUBEJS_DB_*) plus named sources (CUBEJS_DS_<NAME>_*); cubes pick one via data_source; cubes without it use default.
    • CUBEJS_DATASOURCES=default,analytics lists accepted sources; once set, queries to unlisted sources fail ("The clickhouse data source is missing in the declared CUBEJS_DATASOURCES"). Names are case-sensitive.
    • Cloud UI: + Add data source → pick driver → name → same connection form as the deployment wizard; tests the connection before saving; on success writes env vars and restarts the dev environment; on failure saves nothing and shows driver error.
    • When the first named source is added, the UI computes the CUBEJS_DATASOURCES list from configured sources + data sources the data model references, shows it for confirmation; deleting the last named source removes the variable.
    • Name rules: letters/digits/underscore, starts with a letter, default reserved, avoid names ending _db, _aws, _jdbc (collide with env-var parser).
    • Delete named source → removes its CUBEJS_DS_<NAME>_*; delete default → only clears connection vars.
    • Per-source pre-agg connection: CUBEJS_DS_<NAME>_PRE_AGGREGATIONS_DB_*.
    • Sources appear immediately in Workbooks "Source SQL" tabs and Explore source SQL (Cloud features).
    • Warning: don't also give a driver_factory-served source its own env-var connection (e.g. Databricks service principal env vars override the per-user token).
  • Availability: CORE+CLOUD. Core: CUBEJS_DATASOURCES and decorated CUBEJS_DS_* env vars (shared/dist/src/env.js contains CUBEJS_DATASOURCES; keyByDataSource decorates every driver var), data_source cube property, driver_factory. Cloud: the Data Sources settings page, connection test-before-save, auto-computed CUBEJS_DATASOURCES, Workbooks/Explore integration. No plan stated.
  • Core building blocks to use: env vars above; driverFactory/dataSource config; base driver testConnection(); /v1/meta (to list data_source values used by cubes).
  • To build on Core: admin UI + backend that edits an env store (or secrets manager) and restarts Cube; connection tester that instantiates the driver and calls testConnection; parser of the compiled model to collect used data sources. M.
  • Gotchas: Core needs a restart to pick up new env vars; the underscore-suffix name collision is a real Core env-parser behaviour; secrets end up in env vars.

Querying concurrency (query queue) ​

  • Docs: pages/admin/connect-to-data/concurrency.md
  • What it does:
    • All data API queries go through an async query queue that de-duplicates identical queries and caps concurrency per data source; one queue shared by API instances and refresh worker by default.
    • Multiple queues via context_to_orchestrator_id; mandatory when using driver_factory with multiple connections.
    • Default concurrency: Athena 10, Redshift 5, Pinot 10, ClickHouse 10, Databricks 10, Firebolt 10, BigQuery 10, Snowflake 8, others 5 (or less per driver getDefaultConcurrency).
    • CUBEJS_CONCURRENCY overrides; CUBEJS_DB_MAX_POOL sets connection pool size (must exceed connections used by queues + refresh worker).
    • Refresh worker can have its own concurrency in pre-agg refresh config.
  • Availability: CORE. Evidence: CUBEJS_CONCURRENCY in server-core/dist/src/core/OptsHandler.js and shared/dist/src/env.js; CUBEJS_DB_MAX_POOL in env.js; contextToOrchestratorId in server-core. No plan stated.
  • Core building blocks to use: CUBEJS_CONCURRENCY, CUBEJS_DB_MAX_POOL, contextToOrchestratorId, orchestratorOptions (queue options), Cube Store as queue/cache backend.
  • To build on Core: nothing. S (config only).
  • Gotchas: queue state lives in Cube Store in production; without Cube Store, multiple API replicas don't share a queue (see Core production page).

Query tracing (trace_id SQL comment) ​

  • Docs: pages/admin/connect-to-data/query-tracing.md
  • What it does:
    • CUBEJS_SQL_INCLUDE_TRACE_ID=true appends /* trace_id: <uuid> */ to every data-source query issued to serve an API request (appended, since Snowflake strips leading comments).
    • Clients can supply the id via x-request-id or traceparent headers; otherwise Cube generates one; must be unique/unpredictable.
    • Not tagged: pre-agg builds, export bucket ops, refresh keys, background refresh, internal queries. Lambda pre-agg source-table reads are tagged.
    • Cached / pre-aggregated / de-duplicated requests produce no tagged source query (dedup runs under the first request's id).
    • Breaks warehouse result caches (Snowflake persisted results, BigQuery cache) because every query text differs.
    • trace_id matches the Query History export field (Cloud).
    • Per-warehouse lookup hints (Snowflake QUERY_HISTORY, Redshift SYS_QUERY_TEXT, BigQuery INFORMATION_SCHEMA.JOBS, Databricks system.query.history, Postgres logs, MySQL general log).
  • Availability: CORE (engine) / Query History correlation is CLOUD. Evidence: CUBEJS_SQL_INCLUDE_TRACE_ID in shared/dist/src/env.js; base-driver/dist/src/trace-comment.js; x-request-id/traceparent parsed in api-gateway/dist/src/request-parser.js. No plan stated.
  • Core building blocks to use: the env var; request-id header; Core logs (requestId in log lines) to correlate.
  • To build on Core: nothing for tagging; a query-history store keyed by request id if you want the Cloud-style join. S.
  • Gotchas: cost increase from defeated warehouse caches.

Per-user OAuth to data sources (OAuth apps + Connected accounts) ​

  • Docs: pages/admin/connect-to-data/oauth-authentication.md
  • What it does:
    • Beta; enabled by account manager. Admin → Integrations → OAuth apps → Create: provider Snowflake (account id + role → derives https://<org>-<account>.snowflakecomputing.com/oauth/authorize, /oauth/token-request, scopes refresh_token, session:role:<ROLE>; shows the CREATE SECURITY INTEGRATION ... TYPE=OAUTH SQL), Databricks (workspace URL → /oidc/v1/authorize, /oidc/v1/token, scopes all-apis, offline_access), or Custom (any auth/token URL, client id/secret, scopes). Shows redirect URI to register.
    • "Keep users signed in" toggle: background refresh of access tokens so idle users don't expire (only with refresh tokens).
    • Each user authorizes their own account under Connected accounts; tokens refreshed automatically; status shown.
    • On each request Cube injects securityContext.cubeCloud.userCredentials.<appName> = { status: active|missing|expired|error, accessToken, accessTokenExpiresAt, issuedAt, connectUrl }.
    • Config pattern: driver_factory returns user token if status == active, else service-account creds from env; context_to_orchestrator_id keyed on username + issuedAt so each user/token gets its own orchestrator (connections, queues, pre-agg cache).
    • Snowflake: return authenticator: "OAUTH", oauthToken; role env must match token role.
    • Failed queries with missing/expired creds get a hint appended to the error text and, on REST, a userCredentials: [{integration, status, connectUrl}] array.
    • Security: anyone who can sign JWTs with the API secret can set cubeCloud.username and act as that user; fail closed with a non-empty bogus token (empty token makes drivers fall back to env credentials).
  • Availability: CORE+CLOUD. Core: driverFactory, contextToOrchestratorId, Snowflake driver authenticator: OAUTH + oauthToken (string present in snowflake-driver/dist/src/SnowflakeDriver.js), Databricks token option. Cloud: OAuth app registry, token vault/refresh, Connected accounts UI, cubeCloud.userCredentials injection, error hint/userCredentials field (grep for userCredentials/connectUrl in all Core dists: no hits). Plan: beta, by request.
  • Core building blocks to use: checkAuth/extendContext (to load the user's token into the security context), driverFactory, contextToOrchestratorId, scheduledRefreshContexts (service identity for refresh worker), driver options pass-through.
  • To build on Core: OAuth client service (auth code flow, PKCE, redirect handler), encrypted token store, refresh scheduler, "Connected accounts" UI, middleware that injects tokens into security context (via checkAuth calling your token service), error-rewriting proxy for the hint. M–L.
  • Gotchas: orchestrator per user/token explodes connection count and drops caches on each refresh; stale orchestrators kept until evicted (liveness probes keep testing them); pre-aggregations built by service account bypass per-user warehouse policies.

Data sources: drivers (grouped) ​

  • Docs: pages/admin/connect-to-data/data-sources/index.md plus 26 driver pages (table below)
  • What it does:
    • Cube connects straight to a SQL-capable warehouse, query engine, OLTP database or streaming store. One driver per data source, picked by CUBEJS_DB_TYPE (or driver_factory). Cube does not read files or REST/GraphQL APIs directly. Files (Parquet/CSV/JSON on S3/GCS/R2) go through DuckDB.
    • Index groups: warehouses (Redshift, BigQuery, Snowflake, Databricks, MS Fabric, ClickHouse, SingleStore, Pinot, Firebolt, Vertica); query engines (Athena, DuckDB/MotherDuck, Hive/SparkSQL, Presto, Trino); transactional (Postgres, MSSQL, MySQL, Oracle, SQLite); time series and streaming (QuestDB, ksqlDB, Materialize, RisingWave); other (MongoDB via BI Connector, Druid).
    • Support tiers: maintained by Cube, maintained by the vendor (Firebolt, Materialize, QuestDB) or by the community (Druid, MongoDB, Oracle, SQLite, Hive). Hive is deprecated. Third-party npm drivers (ArangoDB, CosmosDB, CrateDB, Dremio, OpenDistro, SAP HANA, Trino, Vertica) plug in through driver_factory.
    • Each driver page documents its connection env vars, CUBEJS_DB_MAX_POOL (driver default 8–40), CUBEJS_CONCURRENCY, SSL (CUBEJS_DB_SSL plus the custom-cert recipe), whether count_distinct_approx works in pre-aggregations, and the pre-aggregation build strategies with read-only compatibility:
      • Simple: one query.
      • Batching: paged reads, the default for most drivers.
      • Export bucket: the warehouse unloads to S3/GCS/Azure and Cube Store loads from there.
    • Export bucket env vars: CUBEJS_DB_EXPORT_BUCKET[_TYPE], _AWS_KEY/_SECRET/_REGION, CUBEJS_DB_EXPORT_GCS_CREDENTIALS, CUBEJS_DB_EXPORT_INTEGRATION (Snowflake), _AZURE_KEY or Azure service-principal (SP) vars, and CUBEJS_DB_EXPORT_BUCKET_MOUNT_DIR.
    • Pre-aggregations built inside the source (external: false) need write access to the pre_aggregations_schema. The Oracle page warns that every build drops the non-current tables in that schema.
    • Query attribution, so source-side logs can be traced back to a Cube request ID:
      • ClickHouse query_id = <cube-query-id>-<uuid>
      • BigQuery job label cube_request_id (sanitized, 63 chars, scheduler- prefix for refresh builds)
      • Presto/Trino X-Presto-/X-Trino-Trace-Token header
      • Snowflake QUERY_TAG (the request ID, or JSON merged with queryTag)
      • Pinot clientQueryId
    • Custom HTTP headers through driver_factory, which can be per tenant from securityContext: ClickHouse, Presto, Trino. Pinot also takes applicationName/workloadName.
    • Cloud-only connection UX:
      • Deployment-wizard "Set up a database connection" forms and Settings → Data sources.
      • The Postgres form parses a postgres:// connection string into fields and maps sslmode. Hostname validation rejects scheme, port or path. Env vars set directly are not validated.
      • Test-connection button. Egress IP shown in Settings → Configuration.
      • VPC connectivity only on dedicated infra.
      • OIDC workload identity for Athena, Redshift, BigQuery, Snowflake and ClickHouse export buckets.
      • Get-started chat. Demo DuckDB deployment.
  • Availability: CORE+CLOUD.
    • Core: all driver engines are Core npm packages, mapped in server-core/dist/src/core/DriverDependencies.js, and 27 *-driver packages ship in the cubejs/cube:v1.8.35 image (including cubestore, jdbc, crate and dremio). Every env var on the pages that I checked exists in shared/dist/src/env.js.
    • Cloud: the connection forms/wizard, test-connection UI, OIDC token minting, egress IPs and private networking.
    • Plan tiers: ksqlDB, MS Fabric and SingleStore pages say "Available on the Enterprise plan". No tier stated on the other pages.
  • Core building blocks to use: CUBEJS_DB_TYPE / CUBEJS_DS_<NAME>_* decorated env vars, driver_factory (which can return an options object or a driver instance), CUBEJS_DATASOURCES, pre_aggregations_schema, export bucket env vars, CUBEJS_CONCURRENCY, request ID (x-request-id) propagation into the drivers.
  • To build on Core: a connection-management UI and backend: per-source forms generated from each driver's env-var schema, a secret store, a "test connection" endpoint (instantiate the driver and call testConnection()), writing .env or decorated env vars and restarting or rolling the Cube API and refresh worker, plus connection-string parsing for Postgres. Effort M.
  • Gotchas:
    • Changing connection env vars needs a Cube process restart. Core has no hot reload for driver config unless driver_factory reads from a dynamic store.
    • Several Cloud data sources (MS Fabric, SingleStore) have no driver in Core at all (see table).
    • Databricks needs a JVM, which the standard image lacks (see table).
    • The docs' "third-party" list is out of date: it names Dremio, CrateDB, Trino and Vertica, yet the Core image ships dremio-driver, crate-driver, trino-driver and vertica-driver.

Driver table

Core image check: docker exec cubebi-cube ls /cube/node_modules/@cubejs-backend/ and DriverDependencies.js. RO = works with read-only source credentials.

DriverDocs pageCUBEJS_DB_TYPEShipped in Core imageExport bucket / pre-agg notesCloud-only or plan-specific features noted on page (with evidence)
Amazon Athenaaws-athena.mdathenayes, @cubejs-backend/athena-driverBatching by default (RO). Export bucket via S3 UNLOAD (RO, needs s3:PutObject on the bucket, no lifecycle cleanup). count_distinct_approx OK. Static keys or CUBEJS_AWS_ATHENA_ASSUME_ROLE_ARN/_EXTERNAL_ID (in env.js and AthenaDriver.js)Cloud wizard form. "OIDC workload identity" via AWS_ROLE_ARN: Cloud mints the web-identity token, and the driver just uses the AWS SDK default chain, so EKS IRSA gives the same result in Core
AWS Redshiftaws-redshift.mdredshiftyes, redshift-driverBatching by default, not RO (needs ownership of the pre-agg schema). Export bucket S3 only, not RO, CUBEJS_DB_EXPORT_BUCKET_REDSHIFT_ARN. No count_distinct_approx. IAM auth (CUBEJS_DB_REDSHIFT_CLUSTER_IDENTIFIER/_AWS_REGION/_ASSUME_ROLE_ARN) is Core (RedshiftIAMCredentialsProvider.js)Cloud wizard. OIDC via AWS_ROLE_ARN (Cloud-minted token). VPC on dedicated infra
ClickHouseclickhouse.mdclickhouseyes, clickhouse-driverBatching by default (RO). Export bucket S3 only. Pre-aggs must define indexes. No count_distinct_approx. rollup_join supported. Booleans cast to Bool. CUBEJS_DB_CLICKHOUSE_READONLY, _COMPRESSION. Export without static keys: STS creds with a session policy scoped to the bucket path (Core: exportBucketSessionPolicy in ClickHouseDriver.js). Exports must finish within about 50 min of STS lifetimeCustom headers via driver_factory (Core). Query ID = Cube query ID shown in "Query History" (Cloud UI; the ID itself is Core)
Databricksdatabricks-jdbc.mddatabricks-jdbcpackage yes (databricks-jdbc-driver, bundles databricks-jdbc-3.4.2.jar), but no JVM in this image (no libjvm.so; node_modules/java/build holds only config.gypi). Docs require the cubejs/cube:jdk imageSimple by default (RO). Export bucket S3/GCS/Azure (key or SP) via Unity Catalog, RO. count_distinct_approx OK. PAT or OAuth M2M service principal (CUBEJS_DB_DATABRICKS_OAUTH_CLIENT_ID/_SECRET, Cube ≥1.3.20, Core: env.js and OAuth2ClientID in DatabricksDriver.js). CUBEJS_JDBC_BATCH_SIZECloud form toggles PAT/OAuth M2M and clears the other method's creds. "Cube Cloud APM" partition sizes need an export bucket (Cloud-only). Databricks Metric Views publishing (preview): no trace in the Core image, so Cloud-only
Druiddruid.mddruidyes, druid-driverNo pre-agg section. Community drivernone
DuckDB / MotherDuckduckdb.mdduckdbyes, duckdb-driverBatching (not RO). No export bucket. count_distinct_approx OK. S3/GCS/R2 via CUBEJS_DB_DUCKDB_S3_*, _DATABASE_PATH, _MEMORY_LIMIT (default 75% RAM), _EXTENSIONS, _COMMUNITY_EXTENSIONS, _S3_USE_CREDENTIAL_CHAIN, CUBEJS_DB_DUCKDB_MOTHERDUCK_TOKEN (all in env.js and DuckDBDriver.js)Cloud wizard form (MotherDuck token, S3 creds). Cloud "demo deployment"
Fireboltfirebolt.md(not shown on the page; firebolt in DriverDependencies)yes, firebolt-driverNo pre-agg section. Vendor-supported. CUBEJS_FIREBOLT_ACCOUNT/_ENGINE_NAME/_API_ENDPOINT. Service-account id/secret go in CUBEJS_DB_USER/PASSPage omits CUBEJS_DB_TYPE from the example (docs bug)
Google BigQuerygoogle-bigquery.mdbigqueryyes, bigquery-driverBatching (not RO). Export bucket GCS only (CUBEJS_DB_EXPORT_BUCKET_TYPE=gcp), not RO. CUBEJS_DB_BQ_LOCATION needed outside the US. count_distinct_approx OK. cube_request_id job label (Core: BigQueryDriver.js)Cloud wizard. OIDC workload identity federation via GCP_POOL_AUDIENCE/GCP_SERVICE_ACCOUNT_EMAIL: neither string is anywhere in the Core image, so the Cloud runtime builds the credential. The driver only reads keyFilename/credentials, falling back to Google ADC, so Core can do the same with a Google external_account credential file in GOOGLE_APPLICATION_CREDENTIALS
Hive / SparkSQLhive.mdhiveyes, hive-driverDeprecated, community. CUBEJS_DB_HIVE_TYPE/_VER/_THRIFT_VER/_CDH_VER (no descriptions)none
ksqlDBksqldb.mdksqlyes, ksql-driverStreaming pre-aggs only (Cube Store). Kafka streams mode (CUBEJS_DB_KAFKA_HOST/_USER/_PASS/_USE_SSL, in env.js and KsqlDriver.js)Enterprise plan badge on the page. Engine is fully Core (see the separate ksqlDB section)
Materializematerialize.mdmaterializeyes, materialize-driverNo pre-agg section. Vendor-supported. CUBEJS_DB_MATERIALIZE_CLUSTERnone
MongoDBmongodb.mdmongobiyes, mongobi-driverNeeds MongoDB BI Connector (mongosqld). Atlas BI Connector EOL June 2025. Batching (RO). No export bucket. CUBEJS_DB_SSL requirednone
Microsoft Fabricms-fabric.mdnot documented (Cloud wizard only; JDBC jdbc:sqlserver://…pbidedicated…, Entra ActiveDirectoryPassword/ActiveDirectoryServicePrincipal)no: no fabric driver package or DriverDependencies entry, and no "fabric"/"pbidedicated" string anywhere in @cubejs-backendSimple (RO). No batching, no export bucket. No count_distinct_approxCLOUD-ONLY, Enterprise plan. Setup is only the Cloud wizard. Core alternative: the generic jdbc driver plus the MS JDBC jar and a JVM image, or mssql (tedious) if Fabric's TDS endpoint accepts it (untested)
Microsoft SQL Serverms-sql.mdmssqlyes, mssql-driverSimple (RO). No batching, no export bucket. CUBEJS_DB_DOMAIN, CUBEJS_DB_MSSQL_USE_NAMED_TIMEZONES. Windows auth via driver_factory with trustedConnection. SQL API pushdown needs explicit = TRUE on BIT booleansnone
MySQLmysql.mdmysqlyes, mysql-driverBatching (RO). No export bucket. CUBEJS_DB_SOCKET_PATH, CUBEJS_DB_MYSQL_USE_NAMED_TIMEZONES. MySQL 8 caching_sha2_password caveatPage notes the Cloud MySQL form does not parse connection strings
Oracleoracle.mdoracleyes, oracle-driverCommunity. node-oracledb Thin mode (≥12.1). Internal pre-aggs need a manually created schema user, and builds drop non-current tables in itnone
Apache Pinotpinot.mdpinotyes, pinot-driverPinot ≥1.4.0, multi-stage engine and null handling. Batching via Pinot cursors (RO) with broker stickiness. SQL API streaming supported. count_distinct_approx OK. CUBEJS_DB_PINOT_NULL_HANDLING, _AUTH_TOKEN (StarTree). clientQueryId, applicationName/workloadName (all in PinotDriver.js)"Not shown in the list of available data sources in the UI", so in Cloud it is configured through env vars
Postgrespostgres.mdpostgresyes, postgres-driverBatching (RO). No export bucket. count_distinct_approx only with the HLL extension. RDS/Cloud SQL SSL CA, Heroku rejectUnauthorized:false via driver_factoryCloud connection form parses connection strings (wizard, Settings → Data sources, get-started chat)
Prestopresto.mdprestodbyes, prestodb-driverSimple (RO). Export bucket S3/GCS (not RO). count_distinct_approx OK. CUBEJS_DB_PRESTO_CATALOG, _AUTH_TOKEN. Trace-token header and custom headers (Core: PrestoDriver.js)none
QuestDBquestdb.mdquestdbyes, questdb-driverVendor-supported. Docker-compose example uses CUBEJS_DEV_MODE=true, and the page warns that dev mode bypasses authnone
RisingWaverisingwave.mdpostgres (Postgres wire protocol)yes, via postgres-driverSimple (RO). No batching, no export bucket. No count_distinct_approxnone
SingleStoresinglestore.mdnot documented (Cloud wizard only)no: no singlestore/memsql string anywhere in @cubejs-backend. MySQL wire protocol, so mysql driver is the likely Core workaround (unverified)Simple (RO). No batching, no export bucketCLOUD-ONLY, Enterprise plan. Setup is only the Cloud wizard
SQLitesqlite.mdsqliteyes, sqlite-driverCommunity. Only CUBEJS_DB_NAME. No SSLnone
Trinotrino.mdtrinoyes, trino-driver (index.md still lists a third-party Trino driver too)Simple (RO). Export bucket S3/GCS. count_distinct_approx OK. Trace token header to event listeners. Custom headers (routing group etc.)none
Verticavertica.mdverticayes, vertica-driverOnly SSL documented. No pre-agg sectionnone
(not in docs)n/acrate, dremio, jdbc, cubestoreyes: crate-driver, dremio-driver, jdbc-driver ship in the image. mysqlauroraserverless is mapped in DriverDependencies but not in the imagen/aindex.md calls Dremio/CrateDB "third-party", but the Core image ships first-party packages

Data sources: Snowflake authentication (password, key-pair, OAuth token, OIDC workload identity, per-user OAuth) ​

  • Docs: pages/admin/connect-to-data/data-sources/snowflake.md

  • What it does:

    • CUBEJS_DB_SNOWFLAKE_AUTHENTICATOR selects the auth method:
      • SNOWFLAKE: user and password.
      • SNOWFLAKE_JWT: key pair via _PRIVATE_KEY / _PRIVATE_KEY_PATH / _PRIVATE_KEY_PASS.
      • OAUTH: CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN or _OAUTH_TOKEN_PATH. The driver re-reads the token file on every new connection, so refreshed tokens are picked up without a restart.
    • Cloud OIDC flow:
      • Admin → OIDC "token config" with audience https://<acct>.snowflakecomputing.com, a sub template (default cube:deployment:<id>), custom claim scp=session:role-any, and target env var CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN_PATH. Cube writes the token file and sets the env var in pods, dev mode and test-connection.
      • Snowflake side: CREATE SECURITY INTEGRATION … EXTERNAL_OAUTH with issuer https://<tenant>.cubecloud.dev and the tenant JWKS URL, mapping sub to the LOGIN_NAME of a TYPE=SERVICE user.
      • The form shows issuer and JWKS URLs and warns if no matching token config exists.
      • The page includes a failure-mode table.
    • Per-user OAuth: an OAuth app with the Snowflake provider, with tokens routed through driver_factory. Covered by the oauth-authentication page in another section.
    • Query tagging: queryTag (string or object) in a SnowflakeDriver instance from driverFactory. An object tag is sent as JSON with requestId merged in, limit 2,000 chars. By default the request ID is the tag.
    • Export bucket: S3, GCS or Azure via COPY INTO with a storage integration (CUBEJS_DB_EXPORT_INTEGRATION), and mixed credential setups for Cube Store reads.
  • Availability: CORE+CLOUD.

    • Core: key-pair, password, OAUTH with a token or token file, and queryTag. Evidence: OAUTH_TOKEN_PATH, SNOWFLAKE_JWT, privateKey and queryTag in snowflake-driver/dist/src/SnowflakeDriver.js, snowflakeOAuthTokenPath in env.js.
    • CLOUD-ONLY: the OIDC issuer/JWKS hosting, token minting and refresh, the Admin → OIDC token-config UI, and the wizard auth selector.
    • No plan stated.
  • Core building blocks to use: CUBEJS_DB_SNOWFLAKE_AUTHENTICATOR=OAUTH + CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN_PATH (file re-read per connection), driver_factory, securityContext.

  • To build on Core: a small OIDC issuer service:

    • signing key and /.well-known/jwks.json;
    • mints JWTs with aud, sub and scp claims;
    • writes and refreshes the token file on a shared volume or sidecar before expiry;
    • a matching Snowflake External OAuth integration.

    Effort S–M. Per-user OAuth needs an OAuth client, a token store and driver_factory keyed by user: M.

  • Gotchas: without the scp claim, authentication succeeds but role authorization fails. The issuer and audience strings must match exactly. Per-user connections multiply connection pools, because driver_factory is called per data source and context.

Data sources: Databricks OAuth M2M (service principal) ​

  • Docs: pages/admin/connect-to-data/data-sources/databricks-jdbc.md
  • What it does:
    • Set CUBEJS_DB_DATABRICKS_OAUTH_CLIENT_ID and _OAUTH_CLIENT_SECRET. When the client ID is set, the PAT is ignored, and Cube ignores AuthMech/UID/PWD in the URL and builds the OAuth config itself.
    • The principal needs CAN USE on the warehouse plus Unity Catalog grants.
    • Cloud form: radio for PAT vs OAuth M2M. Saving clears the other method's credentials.
  • Availability: CORE+CLOUD. Engine is Core (env.js CUBEJS_DB_DATABRICKS_OAUTH_CLIENT_ID, DatabricksDriver.js sets OAuth2ClientID/Auth_Flow). The form is Cloud UI. Requires Cube ≥1.3.20. No plan stated.
  • Core building blocks to use: env vars, JDK image cubejs/cube:jdk.
  • To build on Core: nothing beyond a JVM image and secret management. Effort S.
  • Gotchas: the running cubejs/cube:v1.8.35 image has no JVM and no compiled java native module, so Databricks will not load in it. Switch to the -jdk tag.

Data sources: Databricks Metric Views publishing ​

  • Docs: pages/admin/connect-to-data/data-sources/databricks-jdbc.md (points to integrations/databricks-metric-views, outside this slice)
  • What it does: publishes deployed Cube views as native Databricks Metric Views (preview).
  • Availability: CLOUD-ONLY (likely). No metric_view / METRIC VIEW string in databricks-jdbc-driver, server-core or api-gateway dist. Preview. No plan stated.
  • Core building blocks to use: /v1/meta (views, measures, dimensions, SQL), Databricks SQL CREATE VIEW … WITH METRICS DDL via JDBC.
  • To build on Core: a sync job that translates Cube view metadata to Metric View YAML/DDL and applies it on deploy. Effort M.
  • Gotchas: measure semantics (e.g. count_distinct_approx, multi-stage measures) may not map 1:1.

Data sources: ksqlDB streaming and Kafka streams mode (Cube Store lambda) ​

  • Docs: pages/admin/connect-to-data/data-sources/ksqldb.md
  • What it does:
    • Default mode: ksqlDB REST is used for metadata and for streaming into Cube Store, and Cube may CREATE TABLE … AS SELECT in ksqlDB.
    • Kafka streams mode: turned on by CUBEJS_DB_KAFKA_HOST (comma-separated brokers, SASL PLAIN user/pass, _USE_SSL). ksqlDB is used only for DESCRIBE and topic resolution. Cube Store consumes the Kafka topic directly, and nothing is created in ksqlDB.
    • Typical pattern: a batch cube on the warehouse plus a streaming cube with data_source: ksql, joined by rollup_lambda.
    • Streaming rollup settings:
      • read_only: true
      • stream_offset (latest by default, or earliest; resumes from the last offset)
      • unique_key_columns (strings; time column given as <dim>_<granularity>; must cover every index column)
      • output_column_types (member + Cube Store type; required with unique_key_columns)
    • Shape rules: all primary keys must be in the dimensions, so that no GROUP BY is generated. Deduplication happens at read and compaction time by unique key + __seq (Kafka offset), keeping the last row. Unique key values come from the JSON payload, or fall back to the message key.
    • Topic naming: the stream name must equal the Kafka topic name, case-sensitive. Otherwise the build fails with "Topic table … is not found", which is a known limitation on Confluent's pksqlc- prefixed topics.
    • Message format: JSON object payloads. Timestamps are ISO strings or epoch milliseconds; for bigint casts, multiply ms by 1000 before CAST(... AS TIMESTAMP(6)).
    • In-stream SQL: only the plan shape Projection > Filter > TableScan. Joins, GROUP BY, ORDER BY, LIMIT, window functions and CTEs are not allowed. PARSE_TIMESTAMP/FORMAT_TIMESTAMP/CONVERT_TZ/date_trunc are supported.
  • Availability: CORE (engine). The page carries an Enterprise plan badge, which applies to Cube Cloud usage.
    • Evidence: ksql-driver ships in the image. CUBEJS_DB_KAFKA_HOST is in env.js and KsqlDriver.js. stream_offset, unique_key_columns and output_column_types are in schema-compiler/dist/src/adapter/PreAggregations.js and CubeValidator.js.
    • Kafka consumption runs in Cube Store, which is open source.
  • Core building blocks to use: ksql driver, Cube Store (must be a real Cube Store cluster, not dev in-memory), rollup_lambda, decorated multi-data-source env vars.
  • To build on Core: nothing beyond running Cube Store with network access to the Kafka brokers. Effort S (configuration and ops).
  • Gotchas:
    • Two different naming conventions: unique_key_columns uses <dim>_<gran>, while indexes use <cube>__<dim>_<gran>.
    • The Enterprise badge is a licensing/plan statement for Cloud. Nothing in Core gates it.

Data sources: OIDC workload identity for driver credentials (Athena, Redshift, BigQuery, ClickHouse export bucket, Snowflake) ​

  • Docs: aws-athena.md, aws-redshift.md, google-bigquery.md, clickhouse.md, snowflake.md (the details live in admin/deployment/oidc/*, outside this fragment)

  • What it does: Cube Cloud acts as an OIDC issuer and puts a short-lived token into each deployment. The drivers pick it up through standard SDK credential chains:

    • AWS: AWS_ROLE_ARN + AWS_WEB_IDENTITY_TOKEN_FILE
    • GCP: GCP_POOL_AUDIENCE / GCP_SERVICE_ACCOUNT_EMAIL, turned into an external-account credential
    • Snowflake: a token file at CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN_PATH

    The ClickHouse export path narrows the STS creds with a bucket-path session policy when web identity is used.

  • Availability: CORE+CLOUD.

    • Core: the drivers consume ambient credentials (AWS default chain in the Athena/Redshift/ClickHouse drivers, AWS_WEB_IDENTITY_TOKEN_FILE handling in ClickHouseDriver.js, Google ADC fallback in BigQueryDriver.js).
    • CLOUD-ONLY: the issuer, JWKS, token minting and GCP_POOL_AUDIENCE handling. That string is absent from the Core image.
    • No plan stated on these pages.
  • Core building blocks to use: AWS SDK default credential chain (EKS IRSA / EC2 instance profiles), GCP Workload Identity (GKE) or an external_account JSON, Snowflake OAUTH token file.

  • To build on Core: on Kubernetes, use the platform's native workload identity (IRSA, GKE WI, Azure WI). This is zero code, effort S. A Cloud-style tenant-wide issuer for non-K8s hosts is M.

  • Gotchas: STS sessions default to 1 h, so long export-bucket unloads (more than about 50 min) can fail.


Deployments: list, creation wizard, demo deployment, status page, env-var UI ​

  • Docs: pages/admin/deployment/index.md
  • What it does:
    • Account has many deployments (unique names); admin can set an account-wide default deployment (⋯ → Set as default).
    • Create-deployment wizard; onboarding tip lets a coding agent run cube onboarding via the Cube CLI and connect the MCP server.
    • Demo deployment: DuckDB source + sample model on CSVs in a public S3 bucket + dynamic data model example.
    • Status page (Monitoring → Status): Integrations (API request count 24h, per-API status, API credentials), Resources & logs, Activity log (Build #N, status icons incl. warm-up/cancelled, triggering user, commit SHA + message or "Deployed using CLI").
    • Settings → Environment variables split into data source vars and others; browsing env vars is audit-logged.
    • Resource consumption: production always on unless suspended; non-prod envs on Shared, deallocated after inactivity; Cube Store workers allocated only when there's pre-agg activity; billed in CCUs.
  • Availability: CLOUD-ONLY. Evidence: Cloud UI-only instructions; no deployment registry in Core. (@cubejs-backend/cloud in the Core image is only the client for cube deploy/live-preview to Cube Cloud: cloud/dist/src/{deploy,live-preview}.js.) No plan stated (free tier capped at 2 deployments).
  • Core building blocks to use: Docker images, /livez /readyz, Core logs, CUBEJS_* env vars.
  • To build on Core: a control plane: deployment registry DB, provisioning (K8s operator or compose templating), env/secret store with audit, build pipeline + build log storage, status page aggregating health/metrics. L–XL.
  • Gotchas: audit-logging secret reads requires your own secret broker.

Cube version management (update channels, auto-upgrade) ​

  • Docs: pages/admin/deployment/index.md (Cube version)
  • What it does:
    • LTS vs Regular channel; version dropdown limited to versions used in last 6 months; Auto-upgrade to new patch on next deploy/settings change; pinning by turning auto-upgrade off.
    • Version change redeploys current build (no new build), logged as "Cube version update"; on Dedicated/Multi-cluster old instances serve until new ones are ready.
    • Staging/dev environments always run latest version.
  • Availability: CLOUD-ONLY. Evidence: Settings → General UI only. Core: you pin image tags (cube-core/deployment.md recommends cubejs/cube:vX.Y.Z).
  • Core building blocks to use: tagged images; /readyz for rolling updates.
  • To build on Core: image-tag policy in your deploy tooling + rolling update (K8s Deployment). S–M.
  • Gotchas: version changes can change generated SQL and therefore pre-agg table names (forcing rebuilds).

Deployment types (Shared / Dedicated / Multi-cluster) and multi-router Cube Store ​

  • Docs: pages/admin/deployment/deployment-types.md
  • What it does:
    • Shared: dev only, shared compute, no refresh worker (no scheduled pre-agg refresh), auto-suspend after 30 min, daily query caps. Free trial: 2 Shared deployments, 1,000 queries/day.
    • Dedicated (all paid plans): starts with 2 API instances, 1 refresh worker, 2 Cube Store routers; autoscaling.
    • Multi-cluster (Premium+): up to 10 Dedicated deployments and 100 API instances; requests routed between clusters by context_to_app_id (should be stable per tenant to localise compiled-model cache; unstable ids cause 502/timeouts).
    • Multi-router Cube Store (Configuration flag, Multi-cluster only): router id from context_to_cube_store_router_id (fallback context_to_orchestrator_id); keep distinct ids ≤ Number of clusters (crc32(tenant) % N pattern); pre-aggs stored per router; an instance that sees more ids than clusters falls back to the shared router until restart.
  • Availability: CORE+CLOUD. Core: contextToAppId, contextToOrchestratorId, contextToCubeStoreRouterId all in server-core/dist/src/core/server.js / optionsValidate.js (router id used as pre-agg orchestrator id when preAggregationsOrchestratorIdFromRouter env is set), preAggregationsSchema. Cloud: sizing tiers, autoscaling, the tenant-sticky L7 router across clusters, managed multiple Cube Store clusters. Plans: Dedicated = all paid; Multi-cluster = Premium+.
  • Core building blocks to use: the four context functions above; CUBEJS_CUBESTORE_HOST per cluster; /readyz.
  • To build on Core: a tenant-aware L7 router (hash JWT tenant → cluster, e.g. Envoy/nginx with Lua or a small Go proxy), per-cluster Cube Store stacks, and a driverFactory-style function returning the right Cube Store host per router id (Core's Cube Store driver host comes from env/config; multi-router needs custom cacheAndQueueDriver/preAggregationsDriver wiring). M–L.
  • Gotchas: OSS Cube Store has no replication; each extra router is another single point of failure.

Infrastructure options, egress IPs, Cube Cloud regions ​

  • Docs: pages/admin/deployment/infrastructure.md
  • What it does:
    • Multi-tenant (default; no PrivateLink; noisy neighbour), Single-tenant (dedicated VPC in Cube's account; Enterprise add-on), Single-tenant + CSPS (customer bucket for pre-aggs; Enterprise + single-tenant), BYOC (data plane in customer cloud managed by Cube Operator; Enterprise add-on).
    • AI Engineer placement per option (multi-tenant control plane + shared Postgres; dedicated in VPC with own Postgres; BYOC in customer account), LLM Cube-hosted (Anthropic default) or BYOLLM.
    • Static control-plane egress IPs (34.170.34.26, 35.239.217.11) for Git, LDAP, BYOLLM calls; deployment egress per region; BYOC uses your network.
    • Region identifier format <provider>-<geo>-<type>[-t-<tenant>-<env>], used in API hostnames <deployment>.<region>.cubecloudapp.dev.
  • Availability: CLOUD-ONLY. Evidence: hosting product; plan badges (Enterprise for single-tenant/CSPS/BYOC).
  • Core building blocks to use: n/a (self-hosting is inherently "BYOC").
  • To build on Core: nothing if you self-host in your own cloud; a multi-tenant hosting business would be XL.
  • Gotchas: none for self-host.

Deployment environments (production / staging per branch / per-user development) ​

  • Docs: pages/admin/deployment/environments.md
  • What it does:
    • Production: main branch, always on, version from channel.
    • Staging: one per Git branch, Shared, latest version, active only while someone views the branch unless "always active" toggle (also cube data-model enable-branch|disable-branch CLI / Control Plane API); suspend after 10 min inactivity; can be target of an embed session via branchName.
    • Development: one per user, activated by dev mode, hot-reloads on save, suspends after 10 min.
    • All environments share one Cube Store and one pre-aggregations schema; tables distinguished by definition hash, so unchanged pre-aggs reuse prod tables; branches can trigger refreshes prod then serves; staging/dev have no scheduled refresh (build on first query or "Build all"); branch builds run cleanup that can delete in-use prod tables.
    • Each environment has its own API endpoints.
  • Availability: CLOUD-ONLY. Evidence: Cloud UI/CLI only; Core has a single "dev mode" (CUBEJS_DEV_MODE) per process and no branch concept.
  • Core building blocks to use: repositoryFactory / schemaPath (load model per branch), contextToAppId (separate compile cache per branch), schemaVersion, preAggregationsSchema, CUBEJS_SCHEDULED_REFRESH_DEFAULT=false for non-prod, Orchestration API to build on demand.
  • To build on Core: Git integration service, per-branch ephemeral Cube containers (or one multi-app Cube with branch in security context → repositoryFactory), idle suspension (scale-to-zero, e.g. Knative/KEDA), routing by branch, per-user dev sandboxes with file editing. L.
  • Gotchas: the documented shared-schema cleanup hazard applies equally if you share a Cube Store between branches; use separate preAggregationsSchema per branch to be safe.

Continuous deployment (Git remote, GitHub App, CLI) ​

  • Docs: pages/admin/deployment/continuous-deployment.md
  • What it does:
    • Two deploy modes: Deploy with Git (push/UI merge to production branch auto-builds) and Deploy with CLI (cube deploy <id> --directory . from CI with CUBE_API_URL/CUBE_API_KEY; prod only changes on explicit deploy).
    • Built-in Git remote with generated credentials (git remote add cubecloud ...); direct pushes rejected once an external repo is connected.
    • GitHub App: install on org, repo selection, permissions (contents, PRs, admin to create repos, webhooks for push/PR/branch-delete); "Create new repository" pushes internal Git content; project directory must contain model/ or legacy schema/.
    • GitLab/Bitbucket via SSH + manual webhook; rapid pushes can 429.
    • Branch sync via webhooks for branches already added; dev mode works in CLI mode but never triggers prod builds; branch protection → open PRs instead of direct publish.
  • Availability: CLOUD-ONLY. Evidence: Cloud UI, GitHub App, Cloud CLI. (Core image ships @cubejs-backend/cloud deploy client only.)
  • Core building blocks to use: the Core image + mounted /cube/conf or baked image; /readyz for rollouts.
  • To build on Core: standard CI/CD (GitHub Actions → build image → helm upgrade). For in-product Git editing you need a Git service + webhook receiver + build orchestrator + build logs. S (plain CI) / L (Cloud-like UI flow).
  • Gotchas: none beyond normal CI.

Custom domains ​

  • Docs: pages/admin/deployment/custom-domains.md
  • What it does:
    • Default hostnames like emerald-llama.gcp-us-central1.cubecloudapp.dev; enter custom domain in settings, add CNAME to the provided value; ~15 min DNS propagation.
  • Availability: CLOUD-ONLY. Plan: Premium and above. Evidence: plan badge, settings UI.
  • Core building blocks to use: none; Core page recommends an nginx reverse proxy with your own cert.
  • To build on Core: reverse proxy + cert (cert-manager/Let's Encrypt). S.
  • Gotchas: none.

Encryption keys (customer-managed keys for Cube Store) ​

  • Docs: pages/admin/deployment/encryption-keys.md; pages/cube-core/running-in-production.md (Data-at-rest encryption)
  • What it does:
    • Settings → Encryption keys: add 256-bit AES key (Base64); once any key exists Cube Store assumes encrypted mode and unencrypted partitions error ("Invalid Parquet file in encrypted mode").
    • Newest key encrypts; all previous keys decrypt; rotation = add key + rebuild partitions (incremental pre-aggs need manual rebuild); SELECT table_name, extension FROM system.tables shows parquet_key.key_id.
    • Uses Parquet modular encryption (AES-256).
  • Availability: CLOUD-ONLY. Plan: Enterprise + Performance M or higher Cube Store Worker tier. Evidence: plan badge; OSS Cube Store binary has no encryption-related env vars (string grep of /cube/cubestored for ENCRYPT, parquet_key: 0 hits); not in env-var reference.
  • Core building blocks to use: bucket-level SSE (S3 SSE-KMS / GCS CMEK) on CUBESTORE_S3_BUCKET/CUBESTORE_GCS_BUCKET.
  • To build on Core: use cloud SSE-KMS instead (S). True Parquet-level encryption would require forking Cube Store (Rust). XL.
  • Gotchas: SSE-KMS gives at-rest encryption with CMK at the storage layer, which usually satisfies the same compliance requirement.

Limits and quotas ​

  • Docs: pages/admin/deployment/limits.md
  • What it does:
    • Per tier (Free / Starter / Premium / Enterprise): deployments 2/∞/∞/∞; API instances per deployment 1/10/10/contact; Cube Store workers 2/16/16/contact (32 in select regions); queries/day Shared 1,000/10,000/∞/∞, Dedicated —/50,000/∞/∞; Query History retention & volume by tier; Audit Log 30 days / 10,000 events (Enterprise); monitoring export by tier.
    • Hard vs soft limits; query/day counted per account.
    • REST and GraphQL quota 100 req/s per deployment (bursts allowed) → 429 Too Many Requests.
  • Availability: CLOUD-ONLY. Plan: all plans. Evidence: Core has no rate limiter (grep for ratelimit|rate-limit|TooManyRequests in api-gateway/server/server-core dist: no hits).
  • Core building blocks to use: none.
  • To build on Core: if you need quotas, a gateway (Envoy/Kong/nginx limit_req) and a usage counter. S–M.
  • Gotchas: self-hosted Core has no protection against query floods besides the query queue concurrency.

Scalability (API autoscaling, Cube Store worker sizing) ​

  • Docs: pages/admin/deployment/scalability.md
  • What it does:
    • Dedicated includes 2 API instances; ~1 API instance per 5–10 RPS; min/max autoscaling in Settings → Configuration.
    • Cube Store workers: max 150 GB storage each, min 2; ~2 workers per 4 GB pre-aggregated data/day; idle workers hibernate after 10 min (no CCUs) and resume on pre-agg query or scheduled refresh.
  • Availability: CORE+CLOUD. Core: horizontal scaling of API instances and Cube Store workers is documented for Core (cube-core/architecture.md, running-in-production.md). Cloud: autoscaler, worker hibernation/resume, UI. No plan stated.
  • Core building blocks to use: stateless API instances behind LB; CUBESTORE_WORKERS list; /readyz.
  • To build on Core: K8s HPA on API instances (S); Cube Store worker count changes require editing CUBESTORE_WORKERS on router and all workers and restarting (stable addresses required) — no autoscaling; hibernation would need custom orchestration. M.
  • Gotchas: Cube Store cluster membership is static in OSS.

Deployment warm-up (data model + pre-aggregations) ​

  • Docs: pages/admin/deployment/warm-up.md
  • What it does:
    • Pre-aggregation warm-up runs before new API instances start (build & refresh all; cancelled after 24h but deploy still succeeds); data model warm-up compiles the model as instances start (rollback if >15 min).
    • Toggles in Settings → Configuration; only Dedicated and Multi-cluster.
    • Default behaviour otherwise: model compiled lazily per tenant on first request; pre-aggs built by refresh worker after start.
  • Availability: CORE+CLOUD. Plan: Starter and above. Core: lazy compile, refresh worker, Orchestration API POST /cubejs-api/v1/pre-aggregations/jobs (in api-gateway/dist/src/gateway.js), scheduledRefreshContexts, /readyz. Cloud: the gating of traffic on warm-up completion and the rollback logic.
  • Core building blocks to use: Orchestration API (trigger + poll jobs), /v1/meta per tenant context to force compilation, readiness probe.
  • To build on Core: a pre-start job (K8s Job / init step) that calls the Orchestration API until done, plus a custom readiness probe that fires /v1/meta for each tenant before reporting ready. S–M.
  • Gotchas: multi-tenant models need one compile per contextToAppId value; warm-up for many tenants can be long.

Dedicated infrastructure and BYOC (AWS / Azure / GCP) ​

  • Docs: pages/admin/deployment/dedicated/index.md, dedicated/aws/index.md, dedicated/aws/byoc.md, dedicated/azure/index.md, dedicated/azure/byoc.md, dedicated/gcp/index.md, dedicated/gcp/byoc.md
  • What it does:
    • Dedicated Infrastructure: single-tenant cluster (VPC, compute, storage, data plane) in a Cube-managed account; can be PrivateLink/PSC-connected; public endpoints optionally disabled.
    • BYOC: data plane in customer AWS account / Azure subscription / GCP project, managed by the Control Plane via Cube Operator.
    • AWS BYOC: create CubeCloudBYOC IAM policy (VPC, EKS, IAM roles, EC2/ASG, S3 cube-store-*, CloudWatch Logs, RDS Postgres, KMS; tag-conditioned on Created-By=CubeCloud) and role trusting Cube's provisioner account with ExternalId cube-cloud-byoc; SCPs may block RDS service-linked role creation.
    • Azure BYOC: add Cube tenant in cross-tenant access settings, consent to cube-cloud-byoc-provisioner enterprise app, grant Contributor + RBAC Administrator on a dedicated subscription; two AKS clusters (Cube Store + deployments) with Cube Operator.
    • GCP BYOC: dedicated project, enable compute/container/storage/iam/cloudresourcemanager/servicenetworking APIs, grant Cube installer SA compute/container/storage/SA admin/SA key admin/project IAM admin + serviceAccountUser on default compute SA; results in VPC + Cloud NAT, GKE, GCS buckets, SAs, firewall rules.
    • Backend vs frontend connectivity concepts (Cube → your network vs your clients → Cube).
  • Availability: CLOUD-ONLY. Plan: Enterprise (Dedicated Infrastructure add-on; BYOC add-on). Evidence: plan badges, provisioning done by Cube automation.
  • Core building blocks to use: Core images; a K8s deployment of your own (community Helm charts referenced in cube-core/deployment.md).
  • To build on Core: self-hosting in your own cloud is the BYOC equivalent: Terraform for VPC/EKS|AKS|GKE + bucket + Helm release. M. A remote-managed operator model (Cube Operator) is XL and unnecessary for a single org.
  • Gotchas: the Cloud BYOC also deploys RDS Postgres (for AI Engineer etc.); not needed for Core alone.
  • Docs: pages/admin/deployment/dedicated/aws/private-link.md, dedicated/azure/private-link.md, dedicated/gcp/private-service-connect.md
  • What it does:
    • Customer publishes an Endpoint Service / Private Link Service / Service Attachment for a data source (or uses a vendor's: Snowflake, Databricks, Altinity, Confluent).
    • Allow Cube's consumer principal (AWS account 331376342520, Azure subscription cd69336e-..., GCP project cube-cloud-dedicated); optional auto-approve.
    • Share service name/resource id, reference name, ports, DNS names, Cube Region; Cube creates endpoint + internal DNS override so TLS hostnames still validate; non-TLS gets an internal hostname.
    • In BYOC the customer must create the endpoint + private DNS themselves (operator lacks Route 53 / Private DNS / Cloud DNS perms).
    • Commercial regions only (no China/GovCloud/Azure Gov).
  • Availability: CLOUD-ONLY. Plan: requires Dedicated Infrastructure (Enterprise). Evidence: plan notes; Cube team performs setup.
  • Core building blocks to use: none needed; a self-hosted Core in your VPC reaches sources over your own network (peering/PrivateLink you create).
  • To build on Core: standard cloud networking (S).
  • Gotchas: if Core runs in a different VPC from the warehouse, you set up PrivateLink yourself exactly as in the BYOC notes.

Frontend private API connectivity (AWS) + path-based routing ​

  • Docs: pages/admin/deployment/dedicated/aws/private-api-connectivity.md
  • What it does:
    • Two VPC Endpoint Services per Cube Region (HTTP REST/GraphQL/AI, SQL API) behind internal NLBs; customer creates interface endpoints.
    • With private connectivity, routing switches from subdomain to path prefix: https://<host>/deployment/<slug>/cubejs-api/v1/...; SQL routed by db name/credentials on 5432.
    • TLS option A: private DNS override of <region>.cubecloudapp.dev (+ *., sql., *.sql.) to reuse Cube's cert. Option B: own domain via customer NLB/proxy with TLS target group re-encrypting to the endpoint (AWS doesn't validate backend cert).
    • "Domain override" per region (Regions → Path-based routing) changes hostnames the UI, Semantic Layer Sync configs and API page emit; browsers call the data plane directly, so the name must resolve over VPN.
    • Chrome Local Network Access (≥142, policy LocalNetworkAccessAllowedForUrls) or Private Network Access (<142) must allow the public Cube UI origin to call private IPs; troubleshooting steps for "Network Error".
    • AZ alignment requirement; optional disabling of public endpoints.
  • Availability: CLOUD-ONLY. Plan: Enterprise with Dedicated Infrastructure or BYOC on AWS (Azure/GCP on request).
  • Core building blocks to use: Core's CUBEJS_API_URL-style base path is not needed; Core already serves on your private network; basePath config option exists for path prefixes.
  • To build on Core: internal LB + DNS (S). If you build a Cloud-like public UI that calls a private data plane, you inherit the same Chrome LNA issue.
  • Gotchas: browser Local Network Access blocks public-origin pages calling private IPs; host your UI on the private network too to avoid it.

Bring-your-own pre-aggregation storage (CSPS) ​

  • Docs: pages/admin/deployment/dedicated/pre-aggregation-storage.md; pages/admin/deployment/oidc/index.md (Cube Store CSPS); oidc/aws.md, oidc/gcp.md, oidc/azure.md (CSPS bucket sections)
  • What it does:
    • Customer-owned S3 / GCS / Azure Blob bucket in the same region for Cube Store data; activated through CSM (credentials: AWS key pair + bucket ARN; GCS SA JSON; Azure SAS or service principal) or via Settings → Pre-aggregation storage with OIDC (provider, bucket, region, role ARN / SA email + WIF provider / client+tenant id, Test connection).
    • Cube Store gets its own OIDC subject cube:deployment:<id>:component:cube_store; tenant-wide or per-deployment bucket isolation.
  • Availability: CORE+CLOUD. Plan: Enterprise with Dedicated Infrastructure. Core: OSS Cube Store natively supports your own S3 (CUBESTORE_S3_BUCKET, CUBESTORE_AWS_*, CUBESTORE_AWS_WEB_IDENTITY_TOKEN_FILE + CUBESTORE_AWS_ROLE_ARN), GCS (CUBESTORE_GCS_BUCKET, CUBESTORE_GCP_KEY_FILE), MinIO, local dir (strings present in /cube/cubestored). Cloud-only: Azure Blob for Cube Store (no CUBESTORE_AZURE* strings in OSS binary, none in env-var reference), managed OIDC for Cube Store, UI.
  • Core building blocks to use: CUBESTORE_REMOTE_DIR, CUBESTORE_S3_*, CUBESTORE_GCS_*, IRSA/web identity.
  • To build on Core: nothing for S3/GCS (S). Azure Blob would need a Cube Store fork or an S3-compatible gateway (strong consistency required, MinIO warned against). L.
  • Gotchas: cannot share a bucket between export bucket and Cube Store persistent storage; storage must be strongly consistent.

OIDC workload identity (Cube as OIDC issuer) incl. per-cloud guides ​

  • Docs: pages/admin/deployment/oidc/index.md, oidc/aws.md, oidc/gcp.md, oidc/azure.md
  • What it does:
    • Per-tenant issuer https://<tenant>.cubecloud.dev with /.well-known/openid-configuration and /.well-known/jwks.json; RS256, KMS-backed per-tenant keys, rotated, JWKS serves current+previous; tokens TTL 1h, re-minted before expiry and atomically replaced on disk; revocation by key rotation; every mint audit-logged.
    • Token configs (Admin → OIDC): audience type AWS (sts.amazonaws.com), Azure (api://AzureADTokenExchange), GCP (WIF provider path), Custom; Name → file cube_cloud_token_<name>; Subject template (default cube:deployment:{deployment_id}; placeholders {deployment_id}, {component} = cube_api|cube_store|ai_engineer, {region}; chars [A-Za-z0-9:_-]); custom claims (strings/arrays, cannot override registered or cube: claims, e.g. Snowflake scp); Target env var for Custom (e.g. CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN_PATH). Changes propagate up to 1h.
    • Per-user tokens (preview): Token subject = Signed-in user; token in securityContext.cubeCloud.oidcTokens.<name> = {status, token, expiresAt, issuedAt}; subject placeholders {user_email}, {username}, {user_id}, claims can use {user_attribute:<name>}; re-minted every ~30 min; example driverFactory + contextToOrchestratorId + scheduledRefreshContexts for Snowflake (fail closed), BigQuery via google-auth-library IdentityPoolClient passed as authClient. Embedded users get no per-user token.
    • Deployment default identity: AWS_ROLE_ARN; GCP_POOL_AUDIENCE + GCP_SERVICE_ACCOUNT_EMAIL; AZURE_TENANT_ID + AZURE_CLIENT_ID; drivers, export bucket I/O and user code (cube.py, checkAuth...) use SDK default chains; second hop via CUBEJS_AWS_ATHENA_ASSUME_ROLE_ARN, Redshift CUBEJS_DB_AWS_ROLE_ARN.
    • AWS guide: register IAM OIDC provider, trust policies with aud/sub patterns; Athena, Redshift (GetClusterCredentialsWithIAM, CUBEJS_DB_REDSHIFT_CLUSTER_IDENTIFIER), S3 export bucket (warehouse UNLOAD still needs its own creds), CSPS, Bedrock BYOLLM (Admin → AI → Models), monitoring integrations via Vector (CUBE_CLOUD_MONITORING_AWS_ROLE_ARN), troubleshooting table.
    • GCP guide: WIF pool/provider with CEL condition, SA impersonation or direct federation, BigQuery, GCS export bucket, CSPS, Vertex AI BYOLLM.
    • Azure guide: app registration + federated credential per exact subject (max 20 per app → scaling patterns), Azure SQL (azure-active-directory-access-token), Blob export bucket, Blob CSPS (per-deployment only).
    • "Test connection" buttons perform a real token exchange.
  • Availability: CORE+CLOUD. Plan: Enterprise (per-user tokens: preview by request). Cloud: the issuer, token configs, file delivery/refresh, oidcTokens injection (grep oidcTokens in Core dists: 0 hits), Bedrock/Vertex/monitoring integrations. Core: drivers and storage clients use cloud SDK default credential chains (AWS_WEB_IDENTITY_TOKEN_FILE handled in base-driver/dist/src/storage-fs/aws.fs.js, ClickHouse, Databricks; GOOGLE_APPLICATION_CREDENTIALS in gcs.fs.js; DefaultAzureCredential in azure.fs.js); CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN_PATH in snowflake-driver + env.js; CUBEJS_AWS_ATHENA_ASSUME_ROLE_ARN and CUBEJS_DB_REDSHIFT_ASSUME_ROLE_ARN in env.js; BigQuery driver spreads ...config into the client, so authClient from driverFactory passes through; MSSQL driver spreads ...config, so authentication: {type: 'azure-active-directory-access-token', ...} can be supplied via driverFactory (no built-in Azure AD support in mssql-driver).
  • Core building blocks to use: native K8s workload identity (EKS IRSA / Pod Identity, GKE Workload Identity, AKS Workload Identity) which already provides projected tokens + AWS_ROLE_ARN/AWS_WEB_IDENTITY_TOKEN_FILE/GOOGLE_APPLICATION_CREDENTIALS/AZURE_FEDERATED_TOKEN_FILE; driverFactory; contextToOrchestratorId; scheduledRefreshContexts.
  • To build on Core: for deployment identity: nothing beyond K8s workload identity (S). For per-user tokens: an OIDC issuer service (JWKS endpoint, KMS signing, discovery doc, minting per user with templated sub/claims), a checkAuth hook that fetches the user's token and puts it in the security context, and the warehouse-side External OAuth setup. M.
  • Gotchas: docs name Redshift second hop CUBEJS_DB_AWS_ROLE_ARN, but Core's env.js defines CUBEJS_DB_REDSHIFT_ASSUME_ROLE_ARN (no CUBEJS_DB_AWS_ROLE_ARN string in Core dists) — treat as Cloud-specific naming or a docs error; OIDC only covers Cube's side of export buckets (warehouse UNLOAD still needs credentials); never pass empty oauthToken (Snowflake driver then reads the deployment token file); don't throw in driverFactory (called with stale contexts to learn the data source type).

Time zones (account / user / dashboard / exploration) ​

  • Docs: pages/admin/time-zones.md
  • What it does:
    • Default: all queries bucket in CUBEJS_DEFAULT_TIMEZONE (UTC).
    • Admin → Settings → Time zones: master switch (off by default; turning on moves numbers), Tenant (account-wide) zone, Allow personal time zones.
    • Personal zone in Preferences (browser zone only suggested, never applied silently).
    • Dashboard zone (builder Options → Time zone): Deployment default / Viewer time zone / named zone; stored with the published version; readers can apply a temporary lens unless pinned or personal zones disabled; UI shows the zone and its source.
    • Saved exploration zone, same three options; saved immediately.
    • Resolution order for artifacts: reader lens or embed ?timezone= → artifact pinned → reader personal (if Viewer + allowed) → account-wide (embed zone for embeds) → deployment default. Ad-hoc: personal → account-wide → deployment default. If nothing resolves, no zone is sent.
    • Applies to bucketing, relative dates, date-range parsing across charts, drill-downs, totals, sparklines, comparisons, Analytics Chat, embeds; never affects access control.
    • IANA names only; bare offsets like +05:30 rejected; legacy aliases mapped (US/Eastern).
  • Availability: CORE+CLOUD. Core: CUBEJS_DEFAULT_TIMEZONE and per-query timezone field (Joi timezoneSchema in api-gateway/dist/src/query.js, validated with moment-timezone). Cloud: settings, preferences, dashboard/exploration zone storage, resolution chain, agent awareness. No plan stated.
  • Core building blocks to use: REST /v1/load timezone query property; SQL API session time zone; CUBEJS_DEFAULT_TIMEZONE.
  • To build on Core: user/account settings storage, dashboard metadata field, resolver function in your frontend/BFF that sets timezone on each query, UI for lens/picker. S–M.
  • Gotchas: pre-aggregations are built per time zone (time_zone/build in a zone) — per-user zones can miss pre-aggs unless you build them for each zone in use.

Cube Core: overview and getting started (Docker, Playground, dev mode) ​

  • Docs: pages/cube-core/index.md, cube-core/getting-started/index.md, create-a-project.md, query-data.md, add-a-pre-aggregation.md, learn-more.md
  • What it does:
    • cubejs/cube container with CUBEJS_DEV_MODE=true, ports 4000 (HTTP) and 15432 (SQL API), project mounted at /cube/conf.
    • Developer Playground: DB connection wizard writes .env when none exists; table picker → Generate Data Model (YAML or JS); Build tab with measures/dimensions/chart type; "Connect to BI" and "Frontend Integrations" tabs; pre-aggregation suggestion ("Query was not accelerated" → Add to the Data Model).
    • Dev mode is an authentication bypass: no JWT check on REST/GraphQL, unauthenticated Playground endpoints hand out tokens, read model/data source schemas and overwrite model and .env; SQL API accepts any credentials without CUBEJS_SQL_PASSWORD. Also enabled by cubejs-server dev-server, cubejs-dev-server, devServer option when the var is unset.
    • Sample Postgres at demo-db.cube.dev.
  • Availability: CORE. Evidence: docs are for the Core image; Playground and dev server ship in Core (server-core/dist/src/core/DevServer.js).
  • Core building blocks to use: Playground, REST/GraphQL/SQL APIs, JS SDKs.
  • To build on Core: nothing. S.
  • Gotchas: never expose dev mode; set CUBEJS_DEV_MODE=false explicitly when using dev-server binaries.

Cube Core: production architecture and Docker deployment ​

  • Docs: pages/cube-core/architecture.md, cube-core/deployment.md
  • What it does:
    • Components: API instances (horizontally scalable behind LB, need model files at schema_path), refresh worker (CUBEJS_REFRESH_WORKER=true; invalidates in-memory cache, eagerly builds pre-aggs, tracks refresh keys), Cube Store router + workers (router port 3030 for Cube, MySQL interface, meta port; workers only talk to router).
    • Role env vars: CUBESTORE_SERVER_NAME, CUBESTORE_META_PORT (router), CUBESTORE_WORKERS, CUBESTORE_WORKER_PORT, CUBESTORE_META_ADDR (workers); CUBEJS_CUBESTORE_HOST/PORT on Cube.
    • Full compose example (BigQuery, export bucket, API + refresh worker + router + 2 workers); nginx TLS reverse proxy; JWT/JWKS via CUBEJS_JWK_URL, CUBEJS_JWT_AUDIENCE, CUBEJS_JWT_ISSUER, CUBEJS_JWT_ALGS, CUBEJS_JWT_CLAIMS_NAMESPACE; scheduledRefreshContexts required when queryRewrite used for access control.
    • Cube Store must not expose ports; image runs as non-root.
    • Extend image (Dockerfile with pip/npm deps), don't mount over node_modules.
    • Production checklist: dev mode off, refresh worker, Cube Store (needed for queue/cache consistency across replicas), prod_pre_aggregations staging schema with write access, export bucket, JWT, /readyz /livez probes, sizing (≥2 API at 2 CPU/3 GB; refresh worker ≥6 GB with NODE_OPTIONS=--max-old-space-size; router 4 CPU/6 GB; workers 4 CPU/8 GB, ≥2; API 1–10 RPS, router 50–100 QPS; 1 worker per partition or 1M rows scanned).
    • Kubernetes: only community Helm charts (gadsme/charts, OpstimizeIcarus/cubejs-helm-charts-kubernetes).
  • Availability: CORE. Evidence: Core docs and image.
  • Core building blocks to use: as listed.
  • To build on Core: Helm/Terraform for your platform. S–M.
  • Gotchas: no official Helm chart; "Cube Cloud ballpark performance numbers can differ as it has different Cube runtime".

Cube Core: running Cube Store in production (storage, HA, GC, security) ​

  • Docs: pages/cube-core/running-in-production.md
  • What it does:
    • Cube Store must run as a separate process in production; cluster of router + workers; optimal when partitions per query ≤ workers; EXPLAIN [ANALYZE] shows partitions.
    • CUBESTORE_WORKERS/CUBESTORE_META_ADDR need stable addresses.
    • No replication in OSS: one instance per node; any node down = full outage; HA by running ≥2 fully independent clusters (own Cube Store, refresh worker, storage path) behind a LB using /readyz; set CUBEJS_ROLLUP_ONLY=true or fail-open so a data-source outage doesn't mark all clusters unhealthy; each cluster's refresh worker hits the warehouse separately.
    • Persistent storage: S3, GCS, Azure Blob (docs), or local path if single machine; only one remote type; strong consistency required; separate bucket from export bucket; MinIO community-supported (consistency errors).
    • Scratch storage CUBESTORE_DATA_DIR, local SSD advised.
    • AWS instance metadata creds (CUBESTORE_AWS_CREDS_REFRESH_EVERY_MINS, default 180) and web identity (CUBESTORE_AWS_WEB_IDENTITY_TOKEN_FILE, CUBESTORE_AWS_ROLE_ARN).
    • GC of orphaned tables after 1 day; needs file creation time (XFS unsupported).
    • No built-in auth on Cube Store; network-restrict it. Runs as UID/GID 10001; chowns data dirs on start.
    • Data-at-rest Parquet encryption marked Enterprise / Cloud-managed keys.
    • Troubleshooting: heavy pre-aggs (CUBEJS_DB_QUERY_TIMEOUT, export bucket, partitions, incremental, build range, fewer dimensions, original_sql pre-agg).
  • Availability: CORE, except Cube Store replication/HA, Azure Blob persistent storage and Parquet encryption which are CLOUD-ONLY. Evidence: page itself ("consider using Cube Cloud" for replication; Enterprise badges on storage/encryption notes); OSS cubestored binary contains CUBESTORE_S3_*, CUBESTORE_GCS_*, CUBESTORE_MINIO_*, CUBESTORE_AWS_WEB_IDENTITY_TOKEN_FILE, CUBESTORE_AWS_ROLE_ARN but no Azure or encryption variables; CUBEJS_ROLLUP_ONLY in shared/dist/src/env.js.
  • Core building blocks to use: as listed.
  • To build on Core: redundant-cluster HA pattern (M); Cube Store replication would be a Rust fork (XL).
  • Gotchas: the "Available on Enterprise plan" note sits under Persistent storage but S3/GCS work in OSS — it applies to Azure Blob / encryption; don't run multiple replicas of the same router/worker.

Cube Core: verifying images (provenance + SBOM) ​

  • Docs: pages/cube-core/verifying-images.md
  • What it does:
    • cubejs/cube (release, -jdk, dev) and cubejs/cubestore (release, -non-avx, -arm64v8, edge) carry GitHub artifact attestations: SLSA v1 provenance + SPDX 2.3 SBOM, signed keylessly via Sigstore, logged in Rekor.
    • Verify with gh attestation verify oci://... --repo cube-js/cube --signer-workflow .../publish.yml --source-ref refs/tags/vX.Y.Z (pin workflow/ref because PR CI also signs); SBOM via --predicate-type https://spdx.dev/Document/v2.3; cosign verify-attestation alternative; air-gapped: export trusted root, oras cp -r, --bundle-from-oci --custom-trusted-root.
    • Multi-arch tags: tag-level SBOM describes amd64; verify per-platform digests.
  • Availability: CORE. Evidence: applies to public Docker Hub images.
  • Core building blocks to use: n/a.
  • To build on Core: add verification step to CI/admission controller (e.g. Kyverno/sigstore policy-controller). S.
  • Gotchas: older images have no attestations and fail verification.

Summary table ​

Counts: 38 features. CORE 11, CORE+CLOUD 12, CLOUD-ONLY 15, UNCLEAR 0.

FeatureAvailabilityPlanEffort to build on CoreDepends on
Connect to data overviewCOREnot statedS (none)-
Multiple data sources (Settings → Data Sources UI)CORE+CLOUDnot statedMCUBEJS_DATASOURCES, CUBEJS_DS_<NAME>_*, driverFactory, restart
Querying concurrency / query queueCOREnot statedS (config)CUBEJS_CONCURRENCY, CUBEJS_DB_MAX_POOL, contextToOrchestratorId, Cube Store
Query tracing (trace_id SQL comment)CORE (Query History correlation is Cloud)not statedSCUBEJS_SQL_INCLUDE_TRACE_ID, x-request-id/traceparent
Per-user OAuth to data sources (OAuth apps, Connected accounts)CORE+CLOUDbeta, by requestM–LdriverFactory, contextToOrchestratorId, checkAuth, OAuth client + token store
Data source drivers (24 of 26 documented sources covered by 23 Core packages; Fabric and SingleStore Cloud-only) + Cloud connection wizard/formsCORE+CLOUDall (Fabric/SingleStore/ksqlDB pages: Enterprise)M (connection-management UI + test-connection + secret store)CUBEJS_DB_*, driver_factory, decorated env vars, process restart
Microsoft Fabric connectorCLOUD-ONLYEnterpriseM (generic JDBC + MS JDBC jar + JVM image, or validate mssql driver)jdbc-driver, cubejs/cube:jdk
SingleStore connectorCLOUD-ONLYEnterpriseS–M (try mysql driver; verify SQL dialect)mysql-driver
Snowflake auth: password/key-pair/OAuth token file, queryTagCOREnot stated–snowflake-driver
Snowflake OIDC workload identity (Cube-minted JWT, Admin → OIDC)CORE+CLOUDnot statedS–M (OIDC issuer + token-file refresher)CUBEJS_DB_SNOWFLAKE_OAUTH_TOKEN_PATH
Databricks OAuth M2M service principalCORE+CLOUDnot statedSdatabricks-jdbc-driver, JDK image
Databricks Metric Views publishingCLOUD-ONLY (preview)not statedM/v1/meta, Databricks SQL
ksqlDB / Kafka streams mode / lambda streaming pre-aggsCOREEnterprise (Cloud)S (ops)ksql-driver, Cube Store, rollup_lambda
OIDC workload identity for AWS/GCP driversCORE+CLOUDnot statedS on K8s (IRSA/GKE WI); M for own issuerAWS/GCP SDK default credential chains
Query attribution (ClickHouse query_id, BigQuery label, Trino/Presto trace token, Snowflake QUERY_TAG, Pinot clientQueryId)CORE (Query History UI that shows the ID is Cloud)not stated–request ID propagation
Driver custom headers / Pinot workload options via driver_factoryCOREnot stated–driver_factory, securityContext
Postgres connection-string parsing formCLOUD-ONLYnot statedSUI only
Deployments: registry, wizard, demo, status page, env-var UICLOUD-ONLYall (free: 2 deployments)L–XLcontrol plane, K8s/compose, /readyz, secret store
Cube version management (channels, auto-upgrade)CLOUD-ONLYnot statedS–Mpinned image tags, rolling updates
Deployment types, Multi-cluster routing, multi-router Cube StoreCORE+CLOUDDedicated: paid plans; Multi-cluster: Premium+M–LcontextToAppId, contextToOrchestratorId, contextToCubeStoreRouterId, tenant-aware proxy
Infrastructure options, egress IPs, Cube Cloud regionsCLOUD-ONLYEnterprise add-ons (single-tenant, CSPS, BYOC)n/a when self-hosting-
Environments (prod / staging per branch / dev per user)CLOUD-ONLYnot statedLrepositoryFactory, contextToAppId, preAggregationsSchema, Git service, scale-to-zero
Continuous deployment (Git remote, GitHub App, cube deploy)CLOUD-ONLYnot statedS (plain CI) / L (in-product Git flow)CI, image registry
Custom domainsCLOUD-ONLYPremium+Sreverse proxy + certs
Encryption keys (CMK, Parquet encryption in Cube Store)CLOUD-ONLYEnterprise + Performance M worker tierS (bucket SSE-KMS instead) / XL (Cube Store fork)S3/GCS SSE
Limits and quotas (tier limits, 100 rps API quota)CLOUD-ONLYall plansS–M (gateway rate limit)API gateway
Scalability (API autoscaling, Cube Store worker sizing/hibernation)CORE+CLOUDnot statedS (HPA) – M (worker changes)stateless API, CUBESTORE_WORKERS
Deployment warm-up (model + pre-aggs)CORE+CLOUDStarter+S–MOrchestration API, /v1/meta, /readyz
Dedicated infrastructure and BYOC (AWS/Azure/GCP)CLOUD-ONLYEnterprise add-onsM (own Terraform + Helm)Core images
Backend private connectivity (PrivateLink / Private Link / PSC)CLOUD-ONLYEnterprise (Dedicated Infrastructure)S (own networking)cloud networking
Frontend private API connectivity + path-based routingCLOUD-ONLYEnterprise (Dedicated/BYOC on AWS)S (internal LB/DNS)internal LB, DNS
Bring-your-own pre-aggregation storage (CSPS)CORE+CLOUDEnterpriseS (S3/GCS) / L (Azure Blob)CUBESTORE_S3_*, CUBESTORE_GCS_*, web identity
OIDC workload identity (Cube-hosted issuer, token configs, per-user tokens)CORE+CLOUDEnterprise; per-user tokens previewS (K8s workload identity) / M (own issuer + per-user)SDK default credential chains, driverFactory, contextToOrchestratorId
Time zones (account / personal / dashboard / exploration)CORE+CLOUDnot statedS–Mtimezone in queries, CUBEJS_DEFAULT_TIMEZONE, settings store
Cube Core getting started, Playground, dev modeCOREn/anoneCore image
Cube Core production architecture and Docker deploymentCOREn/aS–M (Helm/Terraform)Core + Cube Store images
Cube Store production ops (storage, GC, HA via redundant clusters)CORE (replication, Azure Blob, Parquet encryption are CLOUD-ONLY)Enterprise for Cloud-only partsM (redundant clusters) / XL (replication)Cube Store, /readyz, CUBEJS_ROLLUP_ONLY
Verifying images (SLSA provenance, SBOM)COREn/aSgh / cosign

Pages read (69) ​

  • pages/admin/connect-to-data/concurrency.md
  • pages/admin/connect-to-data/data-sources/aws-athena.md
  • pages/admin/connect-to-data/data-sources/aws-redshift.md
  • pages/admin/connect-to-data/data-sources/clickhouse.md
  • pages/admin/connect-to-data/data-sources/databricks-jdbc.md
  • pages/admin/connect-to-data/data-sources/druid.md
  • pages/admin/connect-to-data/data-sources/duckdb.md
  • pages/admin/connect-to-data/data-sources/firebolt.md
  • pages/admin/connect-to-data/data-sources/google-bigquery.md
  • pages/admin/connect-to-data/data-sources/hive.md
  • pages/admin/connect-to-data/data-sources/index.md
  • pages/admin/connect-to-data/data-sources/ksqldb.md
  • pages/admin/connect-to-data/data-sources/materialize.md
  • pages/admin/connect-to-data/data-sources/mongodb.md
  • pages/admin/connect-to-data/data-sources/ms-fabric.md
  • pages/admin/connect-to-data/data-sources/ms-sql.md
  • pages/admin/connect-to-data/data-sources/mysql.md
  • pages/admin/connect-to-data/data-sources/oracle.md
  • pages/admin/connect-to-data/data-sources/pinot.md
  • pages/admin/connect-to-data/data-sources/postgres.md
  • pages/admin/connect-to-data/data-sources/presto.md
  • pages/admin/connect-to-data/data-sources/questdb.md
  • pages/admin/connect-to-data/data-sources/risingwave.md
  • pages/admin/connect-to-data/data-sources/singlestore.md
  • pages/admin/connect-to-data/data-sources/snowflake.md
  • pages/admin/connect-to-data/data-sources/sqlite.md
  • pages/admin/connect-to-data/data-sources/trino.md
  • pages/admin/connect-to-data/data-sources/vertica.md
  • pages/admin/connect-to-data/index.md
  • pages/admin/connect-to-data/multiple-data-sources.md
  • pages/admin/connect-to-data/oauth-authentication.md
  • pages/admin/connect-to-data/query-tracing.md
  • pages/admin/deployment/continuous-deployment.md
  • pages/admin/deployment/custom-domains.md
  • pages/admin/deployment/dedicated/aws/byoc.md
  • pages/admin/deployment/dedicated/aws/index.md
  • pages/admin/deployment/dedicated/aws/private-api-connectivity.md
  • pages/admin/deployment/dedicated/aws/private-link.md
  • pages/admin/deployment/dedicated/azure/byoc.md
  • pages/admin/deployment/dedicated/azure/index.md
  • pages/admin/deployment/dedicated/azure/private-link.md
  • pages/admin/deployment/dedicated/gcp/byoc.md
  • pages/admin/deployment/dedicated/gcp/index.md
  • pages/admin/deployment/dedicated/gcp/private-service-connect.md
  • pages/admin/deployment/dedicated/index.md
  • pages/admin/deployment/dedicated/pre-aggregation-storage.md
  • pages/admin/deployment/deployment-types.md
  • pages/admin/deployment/encryption-keys.md
  • pages/admin/deployment/environments.md
  • pages/admin/deployment/index.md
  • pages/admin/deployment/infrastructure.md
  • pages/admin/deployment/limits.md
  • pages/admin/deployment/oidc/aws.md
  • pages/admin/deployment/oidc/azure.md
  • pages/admin/deployment/oidc/gcp.md
  • pages/admin/deployment/oidc/index.md
  • pages/admin/deployment/scalability.md
  • pages/admin/deployment/warm-up.md
  • pages/admin/time-zones.md
  • pages/cube-core/architecture.md
  • pages/cube-core/deployment.md
  • pages/cube-core/getting-started/add-a-pre-aggregation.md
  • pages/cube-core/getting-started/create-a-project.md
  • pages/cube-core/getting-started/index.md
  • pages/cube-core/getting-started/learn-more.md
  • pages/cube-core/getting-started/query-data.md
  • pages/cube-core/index.md
  • pages/cube-core/running-in-production.md
  • pages/cube-core/verifying-images.md