Esc
Documentation
On this page

dsui.yaml declares the adapters DSUI loads, the services that use them, the plugins that extend it, and a few installation settings. This page lists every key. For task-focused steps, see connect a service and plugins.

Where DSUI finds the file#

DSUI reads the file named by the DSUI_CONFIG environment variable. If it isn’t set, the npx launcher uses dsui.yaml in the current directory when it exists, and the Docker image uses /etc/dsui/dsui.yaml when it exists. If no file is configured, DSUI starts with no services and no adapters. If DSUI_CONFIG points to a file that doesn’t exist, DSUI stops with Configuration file was not found.

A relative DSUI_CONFIG is looked up from the current directory, then from each parent directory.

A complete example#

yaml
adapters:
  postgresql:
    source: git
    repository: "git+https://github.com/northgraindata/dsui"
    ref: main
    path: packages/adapter-postgresql

services:
  - id: app-database
    adapter: postgresql
    name: Application database
    connection:
      host: postgres
      database: app
      username: ${POSTGRES_USER}
      password: ${POSTGRES_PASSWORD}

plugins:
  health:
    package: "@northgraindata/dsui-plugin-health"

settings:
  name: Analytics production
  environment: production
  timeZone: UTC

telemetry:
  enabled: false

Environment variables in values#

Any string value can contain ${NAME}. DSUI replaces it with the value of the environment variable NAME when it reads the file. A name uses uppercase letters, digits, and underscores, and starts with a letter or an underscore. If the variable isn’t set, DSUI stops with Configuration requires environment variable NAME.

Top-level keys#

KeyMeaning
servicesThe services that DSUI connects to
adaptersWhere DSUI gets each adapter
pluginsThe plugins that DSUI loads
settingsInstallation settings that you want to manage in the file
telemetryWhether DSUI sends anonymous usage data
authAccepted for compatibility. auth.mode can be none, local, or enterprise, but DSUI doesn’t read it

DSUI ignores any other top-level key. Inside adapters and plugins, an entry that has an unknown key is an error.

services#

A list. Each entry describes one service.

FieldRequiredMeaning
idYesLowercase letters, digits, and hyphens, starting with a letter. Must be unique
adapterYesA key under adapters
nameNoDisplay name, 1 to 120 characters
connectionNoThe fields that the adapter defines. Defaults to an empty object

Any value in connection can be a reference to a secret manager instead of a string:

yaml
connection:
  password:
    $secret:
      provider: aws
      reference: prod/app-database#password

DSUI reads the secret when it calls the service. See credentials from a secret manager.

An adapter with several connection methods needs method in connection. The page for each integration lists its fields. A service ID can’t also belong to a service that you added in the workspace.

adapters#

A map from adapter ID to a source. The key must equal the ID that the adapter declares. DSUI builds every adapter from source, so only these two sources load:

source: git#

Builds an adapter from a GitHub repository.

FieldRequiredDefaultMeaning
sourceYesgit
repositoryYesgit+https://github.com/owner/repository
refNomainA branch, tag, or commit SHA. It can contain letters, digits, ., _, /, and -
pathNoRepository rootDirectory of the adapter package

To pin an adapter, set ref to a commit SHA that you reviewed. The schema also accepts commit together with integrity, but DSUI uses the commit as the ref and doesn’t verify the digest.

source: local#

Builds an adapter from a directory on the machine that runs DSUI.

FieldRequiredMeaning
sourceYeslocal
pathYesAbsolute, or relative to the directory where DSUI started

Entries that don’t load#

  • package: a bare package name, or a package with version and integrity. The schema accepts these, but DSUI can’t load them
  • name, description, iconUrl: a presentation override. The schema accepts it, but nothing reads it

plugins#

A map from plugin ID to a source. The key must equal the ID that the plugin declares. Every entry also takes enabled, critical, and config.

FieldDefaultMeaning
enabledtruefalse keeps the entry without loading the plugin
criticalOfftrue makes DSUI refuse to start if the plugin can’t load. A plugin that declares security: true must set it
config{}Options that the plugin defines

Choose one source:

SourceFieldsMeaning
Installed packagepackage, optional browserBundleA package name. The first-party plugins are bundled with the npm package and the Docker image. browserBundle names the plugin’s browser module
source: localpathBuilds from a directory
source: gitrepository, optional ref, path, tokenBuilds from a GitHub repository, as owner/name or git+https://github.com/owner/name. ref defaults to main, and token is for private repositories

settings#

Installation settings that you manage in the file. Each one is read-only in the workspace while it’s set. See workspace settings.

KeyValues
name1 to 80 characters
environmentlocal, development, staging, or production
timeZonebrowser, or an IANA time zone such as Europe/Warsaw

telemetry#

KeyMeaning
enabledfalse turns telemetry off. See telemetry

When a change takes effect#

  • services, adapters, settings: DSUI re-reads the file when the workspace loads its services, so these apply without a restart. When the adapters section changes, DSUI builds the adapters again
  • plugins: DSUI loads plugins once, when it starts, so restart DSUI
  • telemetry: DSUI reads it at startup, so restart DSUI