Skip to content

Third-Party Boundaries & NocoBase 2.2.50 ​

LatticeDX enforces a strict architectural separation between its Apache-2.0 first-party source tree and external runtime dependencies. The nocobase/nocobase:2.2.50 host runtime and all third-party infrastructure services execute inside isolated OCI containers, interacting with LatticeDX strictly over network protocols or runtime host SDK bindings.

External OCI Runtime Boundary and Zero .gitmodules ​

The CTU-OpenPaw/lattice-dx Git repository and the latticedx-0.4.2-src.tar.gz source archive contain zero upstream/nocobase/ directories, zero Git submodules, and zero .gitmodules manifests. First-party code neither copies, modifies, nor redistributes any upstream NocoBase source files.

Upstream License Scope ​

Upstream NocoBase is governed by the NocoBase License Agreement (updated 2026-02-24: Apache-2.0 supplemented by Clauses 4.2 and 5.1–5.4):

  • Clause 4.2 gives the supplementary clauses precedence whenever they conflict with standard Apache-2.0 terms.
  • Clause 5.2 prohibits removing or obscuring NocoBase brand attribution in the running interface.
  • Clause 5.4 restricts offering public SaaS/PaaS services functioning as no-code, low-code, or AI platforms.
  • Specific upstream core source files (such as packages/core/server/src/application.ts) carry AGPL-3.0 and NocoBase Commercial License headers.

Because these supplementary restrictions fall outside standard OSI terms, the entire NocoBase host is isolated as an external OCI container image outside the Git repository:

text
nocobase/nocobase:2.2.50@sha256:04b75164936e7314ef74d82844bc56c9f34ed7ff1ca976ca53ffac2d3c88d777

Read-Only Runtime Plugin Mounts (infra/compose/*.yml) ​

The digest-pinned nocobase/nocobase:2.2.50 image is referenced in infra/compose/nocobase.yml, infra/compose/native-rehearsal.yml, and infra/compose/prod.yml. At startup, all seven Apache-2.0 plugins under plugins/nocobase/ are mounted read-only (:ro) into /app/nocobase/node_modules/@latticedx/*:

yaml
volumes:
  - nocobase-storage:/app/nocobase/storage
  - ../../plugins/nocobase/action-bridge:/app/nocobase/node_modules/@latticedx/plugin-action-bridge:ro
  - ../../plugins/nocobase/plugin-lattice-foundation:/app/nocobase/node_modules/@latticedx/plugin-lattice-foundation:ro
  - ../../plugins/nocobase/plugin-enterprise-auth:/app/nocobase/node_modules/@latticedx/plugin-enterprise-auth:ro
  - ../../plugins/nocobase/plugin-dxos-para:/app/nocobase/node_modules/@latticedx/plugin-dxos-para:ro
  - ../../plugins/nocobase/plugin-dxos-blocks:/app/nocobase/node_modules/@latticedx/plugin-dxos-blocks:ro
  - ../../plugins/nocobase/plugin-dxos-studio:/app/nocobase/node_modules/@latticedx/plugin-dxos-studio:ro
  - ../../plugins/nocobase/plugin-dxos-ai:/app/nocobase/node_modules/@latticedx/plugin-dxos-ai:ro

Host SDK Contract (sdkProvidedByHost: true) ​

All seven LatticeDX plugins bind to host APIs at runtime rather than bundling host SDK packages. Every plugin package.json declares the identical nocobase contract metadata:

json
{
  "name": "@latticedx/plugin-lattice-foundation",
  "version": "0.4.2",
  "license": "Apache-2.0",
  "nocobase": {
    "supportedVersions": [
      "2.2.x"
    ],
    "testedRuntime": "2.2.50",
    "sdkProvidedByHost": true
  }
}

The build helper at scripts/lib/nocobase-externals.mjs exports externalVersionSource(names, { version }) to emit dist/externalVersion.js during plugin builds, guaranteeing that host packages are excluded from plugin bundles:

Host-External Modules Provided at Runtime by NocoBase 2.2.50
ParameterTypeDefaultDescription
@nocobase/serverrequired
2.2.50—Server application lifecycle, HTTP middleware, gateway, and resourceManager.
@nocobase/databaserequired
2.2.50—Sequelize ORM adapter, collection registry, migration runner, and repository hooks.
@nocobase/authrequired
2.2.50—Token signer, base authenticator class, and request user context.
@nocobase/plugin-authrequired
2.2.50—Authenticator registry consumed by @latticedx/plugin-enterprise-auth.
@nocobase/clientrequired
2.2.50—Client v1 plugin base, UI schema components, and pluginSettingsManager.
@nocobase/client-v2required
2.2.50—FlowEngine v2 client supporting all 12 Native BlockModels, ShellModel, and /v/mobile.
@nocobase/plugin-workflowrequired
2.2.50—Host workflow integration surface for @latticedx/plugin-lattice-foundation.
react / react-dom / antdrequired
18.2.0 / 5.24.2—Shared UI vendor globals supplied by the host to preserve a single React context.

externalVersionSource validates every requested package against the allowlist and throws Unverified host dependency if any plugin references an unapproved host external.

esbuild Bundling and Host External Exclusion ​

When compiling client UMD bundles (dist/client/index.js), @latticedx/plugin-dxos-studio and @latticedx/plugin-dxos-blocks invoke esbuild@0.28.2 to bundle graph (@xyflow/react, @dagrejs/dagre) and WebGIS (maplibre-gl) libraries while keeping shared runtime dependencies external:

js
const HOST_EXTERNALS = [
  'react',
  'react-dom',
  'antd',
  '@nocobase/client',
  '@nocobase/client-v2',
  '@nocobase/server',
  '@nocobase/database',
];

This configuration ensures plugin bundles resolve React, antd, and @nocobase/client directly from the NocoBase 2.2.50 host runtime context, avoiding duplicate React instances and keeping host code out of build artifacts.

NocoBase 2.2.50 Clause 5.2 Attribution ​

LatticeDX preserves all attribution elements required under Clause 5.2 of the NocoBase License Agreement (Powered by NocoBase, runtime version v2.2.50, link target https://www.nocobase.com, and host License settings navigation) across the application UI and technical documentation:

Source File / LocationRendered SurfacePreservation Rule
plugin-lattice-foundation/src/client/native-builder-navigation.js.ldx-clause52-attribution portal footerKeep Powered by NocoBase and link to https://www.nocobase.com intact
plugin-lattice-foundation/src/client/native-portal-settings.jsMulti-Portal settings console footerKeep LatticeDX Open-Core (Apache-2.0) · Powered by NocoBase visible
plugin-dxos-ai/src/client/index.jsExported constant CLAUSE_52_ATTRIBUTIONPreserve attribution string in AI Studio client bundle
.vitepress/config.tsGlobal VitePress documentation footerKeep Powered by NocoBase 2.2.50 link on both VI and EN locales

Custom themes and portal layouts must never hide (display: none), strip, or alter the Powered by NocoBase text or https://www.nocobase.com link. Automated repository checks scan plugins/nocobase/plugin-lattice-foundation/src/client/ for Powered by NocoBase or nocobase.com and fail verification if the attribution marker is removed.

External Containerized Infrastructure Inventory (Network Boundary) ​

All third-party infrastructure services listed below execute in separate OCI containers defined under infra/compose/*.yml and communicate strictly over standard network protocols (SQL, HTTP/REST, OIDC, NGSI-LD, MQTT, clamd TCP, OTLP). None are copied into first-party packages, statically linked, or relicensed as Apache-2.0.

Container ImageVersion & Digest (@sha256:)LicenseNetwork Boundary & Compose Files
nocobase/nocobase2.2.50 (04b75164936e...8d777)NocoBase License AgreementExternal host OCI runtime (nocobase.yml, native-rehearsal.yml, prod.yml)
postgres16.16-alpine (f2f98726820d...afb6d)PostgreSQLTCP SQL (core.yml, prod.yml)
pgvector/pgvector0.8.1-pg16 (33198da2828a...20337)PostgreSQLTCP SQL + HNSW vector (nocobase.yml, native-rehearsal.yml, prod.yml)
valkey/valkey8.1-alpine (9971099af41c...fc3fc)BSD-3-ClauseRESP TCP cache/PubSub (nocobase.yml, prod.yml)
rustfs/rustfs1.0.6 (ee717072290b...5044a)Apache-2.0HTTP S3 API (prod.yml)
caddy2.10-alpine (4c6e91c6ed0e...18e530d)Apache-2.0HTTPS/TLS ingress (prod.yml)
quay.io/keycloak/keycloak26.8.2 (7e66a96e4739...ba38b3)Apache-2.0OIDC / HTTPS (core.yml, prod.yml)
adorsys/keycloak-config-cli6.5.1-26 (1b22dfaa9ae0...b1411)Apache-2.0HTTP Admin API oneshot (prod.yml)
apache/apisix3.19.0-debian (9a7e45dc943f...61141)Apache-2.0HTTP API gateway (core.yml, prod.yml)
otel/opentelemetry-collector-contrib0.123.0 (e39311df1f3d...aee4d2)Apache-2.0OTLP HTTP/gRPC (prod.yml)
prom/prometheusv3.3.0 (339ce86a5941...fb2f1)Apache-2.0HTTP /api/dxos:metrics (prod.yml)
nodered/node-red4.0.9 (0b295b3a14c5...db4b5)Apache-2.0HTTP webhook + MQTT (iiot.yml, prod.yml)
eclipse-mosquitto2.0.21 (94f5a3d7deaf...4d353)EPL-2.0 OR BSD-3-ClauseMQTT TCP on iiot-net (iiot.yml, prod.yml)
gotenberg/gotenberg8.20.1 (cda4386c7ed3...29bac)MITOptional HTTP PDF renderer (prod.yml, profile pdf)
clamav/clamav1.5.5 (12177441d1b4...a6dd8)GPL-2.0-onlyclamd TCP via apps/file-scanner (core.yml, prod.yml)
fiware/orion-ld1.12.0 (f562a93ed84c...bd613b)AGPL-3.0-onlyHTTP NGSI-LD (integration.yml, prod.yml)
grafana/grafana-oss11.5.8 (b8121de93047...6a48)AGPL-3.0-onlyStandalone HTTP dashboard (prod.yml, profile observability)
mongo8.0 (479e85ced54f...575d01)SSPL-1.0Private wire protocol for orion-ld (integration.yml, prod.yml)
n8nio/n8n2.48.1 (5e022f23ef9e...009f)Sustainable Use LicenseOptional external REST v1 + OAuth2 PKCE bridge (integration.yml, prod.yml, profile n8n)

Opt-In Profile and Network Isolation ​

Service GroupLicenseCompose Profile / NetworkIntegration Surface
n8nio/n8n:2.48.1Sustainable Use Licensen8n profile (app, data)External REST API v1 + OAuth2 PKCE bridge via dxosN8n
grafana/grafana-oss:11.5.8AGPL-3.0-onlyobservability profile (app, data)Queries internal Prometheus over HTTP
fiware/orion-ld:1.12.0 & mongo:8.0AGPL-3.0-only / SSPL-1.0Default (app, data)NGSI-LD HTTP updates drained from latticeContextOutbox
clamav/clamav:1.5.5GPL-2.0-onlyInternal scanner networkTCP port 3310 accessed solely by apps/file-scanner

Upstream Compatibility Verification ​

Before adopting a new 2.2.x patch release of NocoBase, verify compatibility against an isolated host instance:

StepVerification StageExecution & Acceptance Check
1Override external version metadataSet NOCOBASE_VERSION=<semver> (validated by resolveNocoBaseVersion() against strict MAJOR.MINOR.PATCH semver format; defaults to '2.2.50').
2Validate externals contractRun node --test tests/nocobase-externals.test.mjs to check declared host bindings and dist/externalVersion.js generation.
3Run isolated rehearsal stackLaunch infra/compose/native-rehearsal.yml (Compose project lattice-native-rehearsal, bound to 127.0.0.1:13001) to test fresh database bootstrap, plugin migrations, and Clause 5.2 attribution before updating the pinned @sha256: digest in prod.yml.
sh
NOCOBASE_VERSION=2.2.50 node --test tests/nocobase-externals.test.mjs
docker compose -f infra/compose/native-rehearsal.yml config --quiet

Apache-2.0 · LatticeDX v0.4.2 · Powered by NocoBase · v2.2.50 · Apache-2.0 (Clause 5.2)