Configuration
The Analytics Orchestration application is configured through a config.yaml
placed next to the application, or at the path named by CONFIG_PATH. Values
are type checked at startup, and every field can be overridden by an
environment variable of the form TSG__<PATH> (for example
TSG__ORGANIZATIONS__0__DATASPACE__WALLET_BASE_URL).
Shared deployment
Configure one application database under db and an explicit organizations
array. Each organization has a canonical UUID id, a slug, a display name,
and its own dataspace and datasources configuration. Application records
share tables and are isolated by tenantId. Requests, caches and background
work use the selected organization context.
Initialize a fresh database for this schema. The migrations reject populated single-organization tables; existing data requires an explicit import with organization ownership assigned.
Wallet
Each organization needs a reachable wallet. It is not optional: the wallet holds the identity every governance message is signed with, verifies the messages peers send, and publishes the DID service entry through which those peers find this application in the first place.
Governance channel
organizations[].channel covers how each organization talks to its counterparties. The defaults
are safe for a dataspace whose participants all run this application; the two
settings worth revisiting are tokenTtlSeconds (shorter is stricter, at the
cost of tolerating less clock skew) and allowedParticipants, which turns the
inbox from "any participant the wallet can verify" into a closed list.
Discovery
organizations[].directory controls how counterparty addresses are resolved. In a normal
deployment nothing needs to be configured here: endpoints come from the
registry's DID documents. staticEndpoints exists for local development and
for peers whose DID document does not yet carry an orchestration service.
Participant identity and authorization
Project agreements and registry/DID discovery determine the participating organizations. Each run supplies explicit participant roles. The application has no static participant fallback list.
For each organization, bind dataspace.canonicalTenantId to its id, the local tenant slug and the exact receiving
controlPlaneAudience and walletAudience. Supply dataspace.auth for Control
Plane and dataspace.walletAuth for Wallet explicitly. The SDK never reuses a
Control Plane token for another service. Imported services may use separate
controlPlaneTenantSlug and walletTenantSlug values. Tokens are specific to
the principal, canonical organization and receiving audience.
Browser operator access
Enable auth with a dedicated public SSO client, S256 PKCE and no client secret.
Set organizationSsoBaseUrl to the SSO bridge and register auth.callbackURL
as the application root URL with a trailing slash. server.publicAddress is
the application root URL without /api.
The browser signs in, discovers permitted organizations and obtains a token
for the selected organization. Management requests send that bearer token and
X-Organization-Id. The application checks live SSO membership, the canonical
organization, client, receiving audience and required management permissions on
every request. The organization switcher shows only configured organizations
the signed-in user can access.
Anonymous management access and the previous cookie login are unsupported.
Outbound connector credentials remain private within each organization's
dataspace configuration. The application README contains a complete shared
deployment example.
Inspection sources
The orchestration app declares its read-only inspection sources directly in its
normal configuration. The analytics data plane declares execution access in
its own configuration. A shared sourceId connects them; their physical paths
and least-privilege credentials may differ. The control plane receives neither
configuration.
# Inside an entry in organizations
datasources:
sources:
- sourceId: research-lake
type: s3
endpoint: https://s3.internal.example
bucket: research
region: eu-west-1
local sources require root; http sources require baseUrl; s3 sources
require bucket. Local roots resolve relative to config.yaml. With Helm, put
the list under config.organizations[index].datasources.sources and credentials
under the matching organization and source indexes in
configFromSecrets.organizations[index].datasources.sources. This uses the chart's
existing ConfigMap and Secret environment projection without another mounted
file.
The private execution asset contains only { sourceId, path }. The media type
belongs to the catalog distribution and the orchestration database. In a
DMZ/LAN deployment, put the orchestration app and execution runner in the LAN;
the DMZ data-plane server needs neither source configuration nor credentials.
Component ownership
| Component | Source information |
|---|---|
| Control plane | Dataset/distribution metadata and opaque { sourceId, path } private asset config; no source locations or credentials |
| Orchestration app | Role-local source locations and inspection credentials, catalog media type and inferred metadata |
| Analytics data plane (LAN runner) | Role-local execution locations and credentials for the same logical source IDs |
Configuration parameters
| Key | Required | Type | Description | Default |
|---|---|---|---|---|
OrganizationConfig | ||||
organizations | Yes | OrganizationConfig[] | Organizations hosted by this application. All records use the shared database; connector configuration and source bindings are organization-scoped. | |
organizations[].id | Yes | String | undefined | |
organizations[].name | Yes | String | undefined | |
organizations[].slug | Yes | String | undefined | |
DataspaceConfig | ||||
organizations[].dataspace | Yes | DataspaceConfig | undefined | |
organizations[].dataspace.canonicalTenantId | String | Canonical tenant UUID used for managed workload authorization | ||
organizations[].dataspace.controlPlaneBaseUrl | Yes | String | Base URL of the control plane this application drives | |
organizations[].dataspace.tenantSlug | String | Tenant slug to address on the control plane and wallet (sent as X-Tenant-Slug on every request) | ||
organizations[].dataspace.controlPlaneTenantSlug | String | Control plane tenant slug, when it differs from tenantSlug | ||
organizations[].dataspace.walletTenantSlug | String | Wallet tenant slug, when it differs from tenantSlug | ||
organizations[].dataspace.controlPlaneAudience | String | Audience requested for control plane workload tokens | ||
organizations[].dataspace.walletAudience | String | Audience requested for wallet workload tokens | ||
organizations[].dataspace.ssoBridgeBaseUrl | String | Base URL of the SSO bridge issuing management tokens | ||
organizations[].dataspace.walletBaseUrl | Yes | String | Base URL of this participant's wallet. Required: the governance channel signs and verifies every message with it, and the application advertises its own inbox as a DID service through it. | |
DataspaceAuthConfig | ||||
organizations[].dataspace.auth | DataspaceAuthConfig | Management API authentication | ||
organizations[].dataspace.auth.method | String | OAuth client authentication method | "client_secret_post" | |
organizations[].dataspace.auth.clientId | String | OAuth client identifier | ||
organizations[].dataspace.auth.clientSecret | String | Client secret, for the client_secret_post method | ||
organizations[].dataspace.auth.privateKeyJwk | Object | Private key in JWK format, for the private_key_jwt method | ||
organizations[].dataspace.auth.privateKeyJwkFile | String | Path to a file holding that private key. Alternative to privateKeyJwk, and the one to use when the key arrives as a mounted Secret. | ||
organizations[].dataspace.auth.accessToken | String | Pre-obtained access token, for the access_token method | ||
DataspaceAuthConfig | ||||
organizations[].dataspace.walletAuth | DataspaceAuthConfig | Separate wallet credentials or audience-bound bearer token | ||
organizations[].dataspace.walletAuth.method | String | OAuth client authentication method | "client_secret_post" | |
organizations[].dataspace.walletAuth.clientId | String | OAuth client identifier | ||
organizations[].dataspace.walletAuth.clientSecret | String | Client secret, for the client_secret_post method | ||
organizations[].dataspace.walletAuth.privateKeyJwk | Object | Private key in JWK format, for the private_key_jwt method | ||
organizations[].dataspace.walletAuth.privateKeyJwkFile | String | Path to a file holding that private key. Alternative to privateKeyJwk, and the one to use when the key arrives as a mounted Secret. | ||
organizations[].dataspace.walletAuth.accessToken | String | Pre-obtained access token, for the access_token method | ||
organizations[].dataspace.pollingIntervalMs | Number | Delay between DSP negotiation/transfer status checks, milliseconds | 1000 | |
organizations[].dataspace.pollingMaxRetries | Number | Maximum DSP status checks before a negotiation or transfer times out | 20 | |
DataSourcesConfig | ||||
organizations[].datasources | Yes | DataSourcesConfig | undefined | |
SourceConfig | ||||
organizations[].datasources.sources | Yes | SourceConfig[] | Role-local sources available for dataset inspection; local paths resolve from this configuration file | |
SourceExecutionScopeConfig | ||||
organizations[].datasources.sources[].executionScope | SourceExecutionScopeConfig | Owner required by analytics executors: issuer, controlPlaneId and tenantId | ||
organizations[].datasources.sources[].executionScope.issuer | Yes | String | Verified issuer that grants this execution ownership | |
organizations[].datasources.sources[].executionScope.controlPlaneId | Yes | String | Logical control-plane identity that owns this execution scope | |
organizations[].datasources.sources[].executionScope.tenantId | Yes | String | Canonical tenant UUID that owns this execution scope | |
organizations[].datasources.sources[].sourceId | Yes | String | Stable logical source identifier shared across components | |
organizations[].datasources.sources[].type | Yes | "local" | "http" | "s3" | Source type: local, http or s3 | |
organizations[].datasources.sources[].root | String | local: root directory visible to this component | ||
organizations[].datasources.sources[].baseUrl | String | http: base URL under which dataset paths are resolved | ||
organizations[].datasources.sources[].bucket | String | s3: bucket containing the datasets | ||
organizations[].datasources.sources[].keyPrefix | String | s3: configured object-key prefix containing this owner's datasets | ||
organizations[].datasources.sources[].endpoint | String | s3: endpoint URL for an S3-compatible service | ||
organizations[].datasources.sources[].region | String | s3: region | ||
organizations[].datasources.sources[].forcePathStyle | Boolean | s3: use path-style addressing | ||
organizations[].datasources.sources[].authorization | String | http: upstream Authorization header value | ||
organizations[].datasources.sources[].accessKeyId | String | s3: access key ID | ||
organizations[].datasources.sources[].secretAccessKey | String | s3: secret access key | ||
ChannelConfig | ||||
organizations[].channel | ChannelConfig | undefined | ||
organizations[].channel.serviceType | String | DID service type under which orchestration inboxes are advertised and discovered. Every participant of a dataspace must agree on this value. | "AnalyticsOrchestration" | |
organizations[].channel.serviceId | String | Identifier of the DID service entry this application registers for itself | "#analytics-orchestration" | |
organizations[].channel.registerDidService | Boolean | Register the inbox as a DID service on the wallet at startup. Disable when the DID document is managed out of band. | true | |
organizations[].channel.tokenTtlSeconds | Number | Lifetime of an outgoing request envelope, seconds. Inbound envelopes living longer than this are rejected. | 300 | |
organizations[].channel.maxBodyBytes | Number | Maximum accepted size of an inbound governance message, bytes | 262144 | |
organizations[].channel.requestTimeoutMs | Number | Timeout of a single outgoing governance request, milliseconds | 10000 | |
organizations[].channel.maxRetries | Number | Number of times an outgoing governance request is retried before it fails | 3 | |
organizations[].channel.retryDelayMs | Number | Delay before the first retry of an outgoing request, milliseconds. Doubles with every further attempt. | 500 | |
organizations[].channel.allowedParticipants | String | Participants whose messages are accepted. Leave empty to accept any participant the wallet can verify; set it to close the deployment. | ||
DirectoryConfig | ||||
organizations[].directory | DirectoryConfig | undefined | ||
organizations[].directory.cacheTtlMs | Number | How long a resolved counterparty endpoint is reused before the registry is consulted again, milliseconds | 300000 | |
DirectoryEntryConfig | ||||
organizations[].directory.staticEndpoints | DirectoryEntryConfig[] | Static counterparty endpoints, taking precedence over discovery | [] | |
organizations[].directory.staticEndpoints[].id | Yes | String | Participant identifier (DID) this entry applies to | |
organizations[].directory.staticEndpoints[].orchestrationEndpoint | String | Base URL of the counterparty's orchestration inbox | ||
organizations[].directory.staticEndpoints[].dspAddress | String | Base address of the counterparty's DSP endpoints | ||
OrchestrationDatasetConfig | ||||
organizations[].orchestrationDataset | OrchestrationDatasetConfig | undefined | ||
organizations[].orchestrationDataset.datasetId | String | Catalog identifier of this participant's orchestration dataset | "analytics-orchestration" | |
organizations[].orchestrationDataset.title | String | Catalog title of that dataset | "Analytics orchestration" | |
organizations[].orchestrationDataset.description | String | Catalog description of that dataset | "Submit federated analytics algorithms to this participant" | |
SeedConfig | ||||
organizations[].seed | SeedConfig | undefined | ||
organizations[].seed.enabled | Boolean | Seed the datasets and projects below at bootstrap | false | |
PublishDataDatasetDto | ||||
organizations[].seed.datasets | PublishDataDatasetDto[] | Data datasets to publish idempotently at bootstrap | [] | |
organizations[].seed.datasets[].sourceId | Yes | String | Source ID from this orchestration app's configured sources | |
organizations[].seed.datasets[].path | Yes | String | Path within the source; no bytes are uploaded | |
organizations[].seed.datasets[].mediaType | Yes | String | Media type of the object the dataset points at | |
organizations[].seed.datasets[].metadata | DatasetMetadataDto | Operator-reviewed metadata, optionally suggested from the data | ||
organizations[].seed.datasets[].datasetId | Yes | String | Catalog identifier of the dataset | |
organizations[].seed.datasets[].title | Yes | String | Catalog title of the dataset | |
organizations[].seed.datasets[].description | String | Catalog description of the dataset | ||
SeedProjectConfig | ||||
organizations[].seed.projects | SeedProjectConfig[] | Project agreements to create (or receive), sign and link the datasets above to | [] | |
organizations[].seed.projects[].id | Yes | String | Business identifier of the seeded project agreement | |
organizations[].seed.projects[].title | Yes | String | Title of the seeded project agreement | |
ProjectAgreementParticipant | ||||
organizations[].seed.projects[].participants | Yes | ProjectAgreementParticipant[] | Participants of the agreement, in order. The first entry's participant creates it; every deployment seeding this project id must configure the same participants in the same order. | |
organizations[].seed.projects[].participants[].title | Yes | String | undefined | |
organizations[].seed.projects[].participants[].didId | Yes | String | undefined | |
organizations[].seed.projects[].autoSign | Boolean | Sign the agreement automatically on receipt instead of waiting for an operator. Only applies to a participant seeded with this project id. | false | |
organizations[].seed.projects[].linkDatasets | String | Ids of this participant's own seeded datasets to link to the project once it reaches finalized | [] | |
organizations[].seed.intervalMs | Number | Delay between sweeps that resume seeding while a peer or a project is not yet ready, milliseconds | 5000 | |
organizationSsoBaseUrl | Yes | String | SSO bridge base URL for live organization discovery and authorization in a shared deployment | |
DatabaseConfig | ||||
db | Yes | DatabaseConfig | Database configuration | |
db.retryAttempts | Number | Connection attempts during application startup, three seconds apart | 10 | |
db.type | Yes | "sqlite" | "postgres" | Type of database | |
db.database | Yes | String | Name of the database | |
db.synchronize | Boolean | Synchronize database schema | false | |
db{type=sqlite} | Yes | SQLiteConfig | Database configuration | |
db{type=sqlite}.retryAttempts | Number | Connection attempts during application startup, three seconds apart | 10 | |
db{type=sqlite}.type | "sqlite" | "postgres" | Type of database | "sqlite" | |
db{type=sqlite}.database | Yes | String | Name of the database | |
db{type=sqlite}.synchronize | Boolean | Synchronize database schema | false | |
db{type=postgres} | Yes | PostgresConfig | Database configuration | |
db{type=postgres}.host | Yes | String | Host of the database | |
db{type=postgres}.port | Yes | Number | Port of the database | |
db{type=postgres}.username | Yes | String | Username of the database | |
db{type=postgres}.password | Yes | String | Password of the database | |
db{type=postgres}.ssl | Object | SSL configuration of the database | false | |
db{type=postgres}.retryAttempts | Number | Connection attempts during application startup, three seconds apart | 10 | |
db{type=postgres}.type | "sqlite" | "postgres" | Type of database | "postgres" | |
db{type=postgres}.database | Yes | String | Name of the database | |
db{type=postgres}.synchronize | Boolean | Synchronize database schema | false | |
ServerConfig | ||||
server | ServerConfig | Server configuration | ||
server.listen | String | IP address the server listens on | "0.0.0.0" | |
server.port | Number | Port the server listens on | 3000 | |
server.publicDomain | String | Public domain of the server | "localhost" | |
server.publicAddress | String | Public address of the server | "http://localhost:3000" | |
server.subPath | String | Sub path of the server | ||
ExecutionPlaneConfig | ||||
executionPlane | ExecutionPlaneConfig | Optional operator observation of this participant's analytics data plane. Run execution and event polling use negotiated flow authorization | ||
executionPlane.baseUrl | Yes | String | Base URL of this participant's optional analytics data plane operator API for local execution observation | |
OperatorAuthConfig | ||||
executionPlane.auth | Yes | OperatorAuthConfig | Explicit operator authentication. The data plane requires an allowlisted human operator; dataspace workload credentials are never reused | |
executionPlane.auth.method | Object | Operator authentication method, always access_token | "access_token" | |
executionPlane.auth.accessToken | Yes | String | Access token issued to an allowlisted human operator | |
AuthConfig | ||||
auth | Yes | AuthConfig | Management API authentication configuration | |
auth.signalingId | String | Receiving plane identity for signaling tokens. Defaults to clientId. | ||
auth.expectedIssuer | String | Expected API token issuer; defaults to the discovered OpenID issuer | ||
auth.expectedAudience | String | Expected API token audience; defaults to clientId. | ||
auth.enabled | Boolean | Enable authentication | true | |
auth.openIdConfigurationURL | String | OpenID configuration URL | ||
auth.callbackURL | URL | Callback URL the auth service will redirect users | ||
auth.redirectURL | URL | Redirect URL to UI after login/logout | ||
auth.clientId | String | Client ID | ||
auth.clientSecret | String | Client secret (required for client_secret_post authentication) | ||
auth.tokenEndpointAuthMethod | "client_secret_post" | "private_key_jwt" | Token endpoint authentication method: client_secret_post (default) or private_key_jwt | "client_secret_post" | |
auth.privateKeyJwk | Object | Private key in JWK format for private_key_jwt authentication. Alternative to privateKeyJwkFile. | ||
auth.privateKeyJwkFile | String | Path to file containing private key JWK for private_key_jwt authentication. Alternative to privateKeyJwk. | ||
auth.permissionPath | String | JSON path to extract permissions from the token | "$.permissions[*]" | |
PollingConfig | ||||
polling | PollingConfig | Event polling configuration | ||
polling.intervalMs | Number | Delay between two poll cycles of a participant, milliseconds | 1000 | |
polling.pageSize | Number | Maximum number of events fetched per poll | 100 | |
polling.waitMs | Number | Long-poll window offered to the data plane, milliseconds | 10000 | |
polling.runTimeoutMs | Number | Maximum run duration from start through completion, milliseconds | 21600000 | |
ProjectsPollerConfig | ||||
projectsPoller | ProjectsPollerConfig | Project-agreement protocol recovery sweep | ||
projectsPoller.intervalMs | Number | Delay between sweeps that retry non-terminal project agreements, milliseconds | 45000 | |
AuditModuleConfig | ||||
audit | AuditModuleConfig | Audit logging configuration | ||
audit.enabled | Boolean | Enable audit logging | true | |
audit.minSeverity | "debug" | "info" | "warning" | "error" | "critical" | Minimum severity level to log | "info" | |
audit.logDenied | Boolean | Always log denied access attempts regardless of action type | true | |
audit.logDelegated | Boolean | Log delegated access attempts when enabled, while still respecting action-specific success filters | true | |
audit.logMutations | Boolean | Log successful mutation actions (create, update, delete, manage) | true | |
audit.logExecute | Boolean | Log successful execute actions | false | |
audit.logReads | Boolean | Log successful read actions — disabled by default as reads are frequent and rarely relevant for auditing | false | |
audit.sensitiveResources | Array | Resources logged regardless of minimum severity, while still respecting action-specific success filters | ["w.key","w.credential","sso.user"] | |
AuditHandlersConfig | ||||
audit.handlers | AuditHandlersConfig | Handler configuration | ||
audit.handlers.console | Boolean | Enable console audit log handler | false | |
audit.handlers.database | Boolean | Enable database audit log handler | true | |
audit.handlers.otlp | Boolean | Enable OTLP audit log handler | false | |
OtlpAuditHandlerConfig | ||||
audit.otlp | OtlpAuditHandlerConfig | OTLP audit log handler configuration | ||
audit.otlp.url | String | OTLP HTTP logs endpoint URL | "http://localhost:4318/v1/logs" | |
audit.otlp.headers | Object | Additional HTTP headers to include in OTLP requests | ||
audit.otlp.timeoutMillis | Number | OTLP export timeout in milliseconds | 5000 | |
audit.otlp.concurrencyLimit | Number | Maximum number of concurrent OTLP export requests | 1 | |
audit.otlp.serviceName | String | Service name included on OTLP log attributes | "tsg-dsp-api" | |
audit.otlp.serviceVersion | String | Optional service version included on OTLP log attributes |