Skip to main content
Version: v0.21.0

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​

ComponentSource information
Control planeDataset/distribution metadata and opaque { sourceId, path } private asset config; no source locations or credentials
Orchestration appRole-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​

KeyRequiredTypeDescriptionDefault
OrganizationConfig
organizationsYesOrganizationConfig[]Organizations hosted by this application. All records use the shared database; connector configuration and source bindings are organization-scoped.
organizations[].idYesStringundefined
organizations[].nameYesStringundefined
organizations[].slugYesStringundefined
DataspaceConfig
organizations[].dataspaceYesDataspaceConfigundefined
organizations[].dataspace.canonicalTenantIdStringCanonical tenant UUID used for managed workload authorization
organizations[].dataspace.controlPlaneBaseUrlYesStringBase URL of the control plane this application drives
organizations[].dataspace.tenantSlugStringTenant slug to address on the control plane and wallet (sent as X-Tenant-Slug on every request)
organizations[].dataspace.controlPlaneTenantSlugStringControl plane tenant slug, when it differs from tenantSlug
organizations[].dataspace.walletTenantSlugStringWallet tenant slug, when it differs from tenantSlug
organizations[].dataspace.controlPlaneAudienceStringAudience requested for control plane workload tokens
organizations[].dataspace.walletAudienceStringAudience requested for wallet workload tokens
organizations[].dataspace.ssoBridgeBaseUrlStringBase URL of the SSO bridge issuing management tokens
organizations[].dataspace.walletBaseUrlYesStringBase 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.authDataspaceAuthConfigManagement API authentication
organizations[].dataspace.auth.methodStringOAuth client authentication method"client_secret_post"
organizations[].dataspace.auth.clientIdStringOAuth client identifier
organizations[].dataspace.auth.clientSecretStringClient secret, for the client_secret_post method
organizations[].dataspace.auth.privateKeyJwkObjectPrivate key in JWK format, for the private_key_jwt method
organizations[].dataspace.auth.privateKeyJwkFileStringPath 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.accessTokenStringPre-obtained access token, for the access_token method
DataspaceAuthConfig
organizations[].dataspace.walletAuthDataspaceAuthConfigSeparate wallet credentials or audience-bound bearer token
organizations[].dataspace.walletAuth.methodStringOAuth client authentication method"client_secret_post"
organizations[].dataspace.walletAuth.clientIdStringOAuth client identifier
organizations[].dataspace.walletAuth.clientSecretStringClient secret, for the client_secret_post method
organizations[].dataspace.walletAuth.privateKeyJwkObjectPrivate key in JWK format, for the private_key_jwt method
organizations[].dataspace.walletAuth.privateKeyJwkFileStringPath 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.accessTokenStringPre-obtained access token, for the access_token method
organizations[].dataspace.pollingIntervalMsNumberDelay between DSP negotiation/transfer status checks, milliseconds1000
organizations[].dataspace.pollingMaxRetriesNumberMaximum DSP status checks before a negotiation or transfer times out20
DataSourcesConfig
organizations[].datasourcesYesDataSourcesConfigundefined
SourceConfig
organizations[].datasources.sourcesYesSourceConfig[]Role-local sources available for dataset inspection; local paths resolve from this configuration file
SourceExecutionScopeConfig
organizations[].datasources.sources[].executionScopeSourceExecutionScopeConfigOwner required by analytics executors: issuer, controlPlaneId and tenantId
organizations[].datasources.sources[].executionScope.issuerYesStringVerified issuer that grants this execution ownership
organizations[].datasources.sources[].executionScope.controlPlaneIdYesStringLogical control-plane identity that owns this execution scope
organizations[].datasources.sources[].executionScope.tenantIdYesStringCanonical tenant UUID that owns this execution scope
organizations[].datasources.sources[].sourceIdYesStringStable logical source identifier shared across components
organizations[].datasources.sources[].typeYes"local" | "http" | "s3"Source type: local, http or s3
organizations[].datasources.sources[].rootStringlocal: root directory visible to this component
organizations[].datasources.sources[].baseUrlStringhttp: base URL under which dataset paths are resolved
organizations[].datasources.sources[].bucketStrings3: bucket containing the datasets
organizations[].datasources.sources[].keyPrefixStrings3: configured object-key prefix containing this owner's datasets
organizations[].datasources.sources[].endpointStrings3: endpoint URL for an S3-compatible service
organizations[].datasources.sources[].regionStrings3: region
organizations[].datasources.sources[].forcePathStyleBooleans3: use path-style addressing
organizations[].datasources.sources[].authorizationStringhttp: upstream Authorization header value
organizations[].datasources.sources[].accessKeyIdStrings3: access key ID
organizations[].datasources.sources[].secretAccessKeyStrings3: secret access key
ChannelConfig
organizations[].channelChannelConfigundefined
organizations[].channel.serviceTypeStringDID service type under which orchestration inboxes are advertised and discovered. Every participant of a dataspace must agree on this value."AnalyticsOrchestration"
organizations[].channel.serviceIdStringIdentifier of the DID service entry this application registers for itself"#analytics-orchestration"
organizations[].channel.registerDidServiceBooleanRegister the inbox as a DID service on the wallet at startup. Disable when the DID document is managed out of band.true
organizations[].channel.tokenTtlSecondsNumberLifetime of an outgoing request envelope, seconds. Inbound envelopes living longer than this are rejected.300
organizations[].channel.maxBodyBytesNumberMaximum accepted size of an inbound governance message, bytes262144
organizations[].channel.requestTimeoutMsNumberTimeout of a single outgoing governance request, milliseconds10000
organizations[].channel.maxRetriesNumberNumber of times an outgoing governance request is retried before it fails3
organizations[].channel.retryDelayMsNumberDelay before the first retry of an outgoing request, milliseconds. Doubles with every further attempt.500
organizations[].channel.allowedParticipantsStringParticipants whose messages are accepted. Leave empty to accept any participant the wallet can verify; set it to close the deployment.
DirectoryConfig
organizations[].directoryDirectoryConfigundefined
organizations[].directory.cacheTtlMsNumberHow long a resolved counterparty endpoint is reused before the registry is consulted again, milliseconds300000
DirectoryEntryConfig
organizations[].directory.staticEndpointsDirectoryEntryConfig[]Static counterparty endpoints, taking precedence over discovery[]
organizations[].directory.staticEndpoints[].idYesStringParticipant identifier (DID) this entry applies to
organizations[].directory.staticEndpoints[].orchestrationEndpointStringBase URL of the counterparty's orchestration inbox
organizations[].directory.staticEndpoints[].dspAddressStringBase address of the counterparty's DSP endpoints
OrchestrationDatasetConfig
organizations[].orchestrationDatasetOrchestrationDatasetConfigundefined
organizations[].orchestrationDataset.datasetIdStringCatalog identifier of this participant's orchestration dataset"analytics-orchestration"
organizations[].orchestrationDataset.titleStringCatalog title of that dataset"Analytics orchestration"
organizations[].orchestrationDataset.descriptionStringCatalog description of that dataset"Submit federated analytics algorithms to this participant"
SeedConfig
organizations[].seedSeedConfigundefined
organizations[].seed.enabledBooleanSeed the datasets and projects below at bootstrapfalse
PublishDataDatasetDto
organizations[].seed.datasetsPublishDataDatasetDto[]Data datasets to publish idempotently at bootstrap[]
organizations[].seed.datasets[].sourceIdYesStringSource ID from this orchestration app's configured sources
organizations[].seed.datasets[].pathYesStringPath within the source; no bytes are uploaded
organizations[].seed.datasets[].mediaTypeYesStringMedia type of the object the dataset points at
organizations[].seed.datasets[].metadataDatasetMetadataDtoOperator-reviewed metadata, optionally suggested from the data
organizations[].seed.datasets[].datasetIdYesStringCatalog identifier of the dataset
organizations[].seed.datasets[].titleYesStringCatalog title of the dataset
organizations[].seed.datasets[].descriptionStringCatalog description of the dataset
SeedProjectConfig
organizations[].seed.projectsSeedProjectConfig[]Project agreements to create (or receive), sign and link the datasets above to[]
organizations[].seed.projects[].idYesStringBusiness identifier of the seeded project agreement
organizations[].seed.projects[].titleYesStringTitle of the seeded project agreement
ProjectAgreementParticipant
organizations[].seed.projects[].participantsYesProjectAgreementParticipant[]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[].titleYesStringundefined
organizations[].seed.projects[].participants[].didIdYesStringundefined
organizations[].seed.projects[].autoSignBooleanSign 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[].linkDatasetsStringIds of this participant's own seeded datasets to link to the project once it reaches finalized[]
organizations[].seed.intervalMsNumberDelay between sweeps that resume seeding while a peer or a project is not yet ready, milliseconds5000
organizationSsoBaseUrlYesStringSSO bridge base URL for live organization discovery and authorization in a shared deployment
DatabaseConfig
dbYesDatabaseConfigDatabase configuration
db.retryAttemptsNumberConnection attempts during application startup, three seconds apart10
db.typeYes"sqlite" | "postgres"Type of database
db.databaseYesStringName of the database
db.synchronizeBooleanSynchronize database schemafalse
db{type=sqlite}YesSQLiteConfigDatabase configuration
db{type=sqlite}.retryAttemptsNumberConnection attempts during application startup, three seconds apart10
db{type=sqlite}.type"sqlite" | "postgres"Type of database"sqlite"
db{type=sqlite}.databaseYesStringName of the database
db{type=sqlite}.synchronizeBooleanSynchronize database schemafalse
db{type=postgres}YesPostgresConfigDatabase configuration
db{type=postgres}.hostYesStringHost of the database
db{type=postgres}.portYesNumberPort of the database
db{type=postgres}.usernameYesStringUsername of the database
db{type=postgres}.passwordYesStringPassword of the database
db{type=postgres}.sslObjectSSL configuration of the databasefalse
db{type=postgres}.retryAttemptsNumberConnection attempts during application startup, three seconds apart10
db{type=postgres}.type"sqlite" | "postgres"Type of database"postgres"
db{type=postgres}.databaseYesStringName of the database
db{type=postgres}.synchronizeBooleanSynchronize database schemafalse
ServerConfig
serverServerConfigServer configuration
server.listenStringIP address the server listens on"0.0.0.0"
server.portNumberPort the server listens on3000
server.publicDomainStringPublic domain of the server"localhost"
server.publicAddressStringPublic address of the server"http://localhost:3000"
server.subPathStringSub path of the server
ExecutionPlaneConfig
executionPlaneExecutionPlaneConfigOptional operator observation of this participant's analytics data plane. Run execution and event polling use negotiated flow authorization
executionPlane.baseUrlYesStringBase URL of this participant's optional analytics data plane operator API for local execution observation
OperatorAuthConfig
executionPlane.authYesOperatorAuthConfigExplicit operator authentication. The data plane requires an allowlisted human operator; dataspace workload credentials are never reused
executionPlane.auth.methodObjectOperator authentication method, always access_token"access_token"
executionPlane.auth.accessTokenYesStringAccess token issued to an allowlisted human operator
AuthConfig
authYesAuthConfigManagement API authentication configuration
auth.signalingIdStringReceiving plane identity for signaling tokens. Defaults to clientId.
auth.expectedIssuerStringExpected API token issuer; defaults to the discovered OpenID issuer
auth.expectedAudienceStringExpected API token audience; defaults to clientId.
auth.enabledBooleanEnable authenticationtrue
auth.openIdConfigurationURLStringOpenID configuration URL
auth.callbackURLURLCallback URL the auth service will redirect users
auth.redirectURLURLRedirect URL to UI after login/logout
auth.clientIdStringClient ID
auth.clientSecretStringClient 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.privateKeyJwkObjectPrivate key in JWK format for private_key_jwt authentication. Alternative to privateKeyJwkFile.
auth.privateKeyJwkFileStringPath to file containing private key JWK for private_key_jwt authentication. Alternative to privateKeyJwk.
auth.permissionPathStringJSON path to extract permissions from the token"$.permissions[*]"
PollingConfig
pollingPollingConfigEvent polling configuration
polling.intervalMsNumberDelay between two poll cycles of a participant, milliseconds1000
polling.pageSizeNumberMaximum number of events fetched per poll100
polling.waitMsNumberLong-poll window offered to the data plane, milliseconds10000
polling.runTimeoutMsNumberMaximum run duration from start through completion, milliseconds21600000
ProjectsPollerConfig
projectsPollerProjectsPollerConfigProject-agreement protocol recovery sweep
projectsPoller.intervalMsNumberDelay between sweeps that retry non-terminal project agreements, milliseconds45000
AuditModuleConfig
auditAuditModuleConfigAudit logging configuration
audit.enabledBooleanEnable audit loggingtrue
audit.minSeverity"debug" | "info" | "warning" | "error" | "critical"Minimum severity level to log"info"
audit.logDeniedBooleanAlways log denied access attempts regardless of action typetrue
audit.logDelegatedBooleanLog delegated access attempts when enabled, while still respecting action-specific success filterstrue
audit.logMutationsBooleanLog successful mutation actions (create, update, delete, manage)true
audit.logExecuteBooleanLog successful execute actionsfalse
audit.logReadsBooleanLog successful read actions — disabled by default as reads are frequent and rarely relevant for auditingfalse
audit.sensitiveResourcesArrayResources logged regardless of minimum severity, while still respecting action-specific success filters["w.key","w.credential","sso.user"]
AuditHandlersConfig
audit.handlersAuditHandlersConfigHandler configuration
audit.handlers.consoleBooleanEnable console audit log handlerfalse
audit.handlers.databaseBooleanEnable database audit log handlertrue
audit.handlers.otlpBooleanEnable OTLP audit log handlerfalse
OtlpAuditHandlerConfig
audit.otlpOtlpAuditHandlerConfigOTLP audit log handler configuration
audit.otlp.urlStringOTLP HTTP logs endpoint URL"http://localhost:4318/v1/logs"
audit.otlp.headersObjectAdditional HTTP headers to include in OTLP requests
audit.otlp.timeoutMillisNumberOTLP export timeout in milliseconds5000
audit.otlp.concurrencyLimitNumberMaximum number of concurrent OTLP export requests1
audit.otlp.serviceNameStringService name included on OTLP log attributes"tsg-dsp-api"
audit.otlp.serviceVersionStringOptional service version included on OTLP log attributes