Skip to content

Configuration

syncd has two programs, and each is configured in its own way:

Program Configured by Where (package install)
syncd, the engine One YAML document: connectors, views, rules and publications, plus the engine's own settings. Secrets are never written in it; it names environment variables, files or (since 0.5.0) a vault that hold them. /etc/syncd/engine/engine.yaml, with the secrets in /etc/syncd/engine.env
syncd-console, the web console Environment variables (or the matching command-line flags). /etc/syncd/console.env

The container images and the Helm chart configure the same two programs; see Container images and Helm for what differs there.

This page is the reference for both: every key, one line each. The guide pages explain how and why:

Topic Guide
Sources and targets (REST and HR services included), the Active Directory conveniences, initial passwords on create Connectors
The rule language, effective dates, rule packages Computed attributes and rules
Change windows, thresholds, canaries, report mode, held changes, the staged leaver policy, group lifecycle Change safety and lifecycle
Captured passwords, capture agents, self-service, initial passwords Password synchronisation
Semantic diff, environments, Git sync, promotion, golden tests Configuration as code
Reconciliation reports, lineage, history retention, data-quality checks, correlation assistance Reports, lineage and data quality
High availability, backups and recovery Sizing, availability and recovery
The license, managed identities, and which connectors and features need which pack Licensing

Files

Path What Owner and mode
/etc/syncd/engine/engine.yaml The engine configuration. Publishing a configuration in the console, or syncd apply-config, replaces it. syncd:syncd, 0640
/etc/syncd/engine.env Secrets the engine configuration refers to (password: { env: NAME }), SYNCD_FIPS_MODE, SYNCD_PASSWORD_KEY_PASSPHRASE_FILE, where the engine finds a vault or a KMS, and the other engine variables. A systemd EnvironmentFile. root:syncd, 0640
/etc/syncd/console.env The console's settings: database URL, listen address, its own HTTPS certificate, proxies, single sign-on (OpenID Connect, SAML, certificates), the sign-in policy, the audit trail's outputs, API tokens, webhooks, reports and mail, the pre-publish hook, Git sync and the license file. A systemd EnvironmentFile. root:syncd-console, 0640
/etc/syncd/pki/ The control API's CA, the engine's certificate, and the client certificates of the console (syncd console) and the command line (syncd command line). Issued by the installer. syncdctl api-access signing-key adds the console's configuration signing key here (console-signing.pub).
/etc/syncd/license.lic The license, when installed with sudo syncdctl license install FILE, which also sets CONSOLE_LICENSE_FILE. See Licensing.
/etc/syncd-keys/ Where the runbook keeps the password keys' passphrase file, apart from /etc/syncd: since 0.5.0 syncdctl backup --to leaves a passphrase file inside /etc/syncd out of its archives, with a warning, so that a backup never carries the passphrase beside the keys it opens.

syncdctl install writes each file only if it does not exist yet, so an upgrade keeps your changes. The release's own copies are in /opt/syncd/current/share/config/, so you can see what a new release added to the templates. The .env files are KEY=value lines with no quotes needed. After changing one, restart the service it belongs to:

sudo systemctl restart syncd           # after engine.env
sudo systemctl restart syncd-console   # after console.env

No comments after a value

systemd reads everything after the = as the value, a # included. Since 0.4.1 the templates put every explanation on a line of its own, but syncdctl install never rewrites an existing file, so a console.env or engine.env written by an earlier release still has comments after some commented-out values. Before you uncomment such a line, move its comment to a line of its own: CONSOLE_PUBLISH_HOOK_ON_ERROR=refuse # or allow sets the value refuse # or allow, and the console refuses to start. Since 0.4.1 the console follows such an error with a line naming the setting: CONSOLE_PUBLISH_HOOK_ON_ERROR holds ` #` (a comment at the end of the line becomes part of the value). The engine has no such hint: a secret in engine.env with a comment after it is just the wrong value.

The engine configuration file

Structure

A configuration is one YAML document. Unknown keys are refused everywhere, so a misspelt key is an error, not a silently ignored setting.

Key Type Default What
version integer required Must be 1.
engine map see Engine Data directory, shards, intervals, history, cache, backups, high availability, signed configurations, the license file of an engine without a console, limits on custom functions.
api map see Control API The engine's control API (gRPC), used by the console and the syncd command line, and who may do what on it.
attributes map empty Schema hints shared by every view and connector.
connectors list empty The systems syncd reads and writes, and the objects it reads from each.
views list empty Merged views: which sources feed them, how records join, attribute flows, precedence, computed attributes, correlation hints, data-quality checks.
publications list empty What each view writes to a directory, a SCIM application, Entra ID or (since 0.6.0) DSML files.
passwords map see Passwords The engine's password key, how long a captured change may wait, the capture agents' listener, self-service.
packages list empty Rule packages: shared functions and lookup tables; see Packages.
version: 1
engine: { ... }
api: { ... }
attributes: { ... }
packages: [ ... ]
connectors: [ ... ]
views: [ ... ]
publications: [ ... ]
passwords: { ... }

Names of connectors, views and publications must be unique. Object types must be unique within a connector. Attribute names ignore case (uid and UID are one attribute), so since 0.5.1 two computed attributes of a view, two flows of one source, or two attributes of a publication whose names differ only in case are refused as duplicates: they would overwrite each other's values.

Secret references

A password or token is never written in the configuration. A secret setting names where to read it:

Form Reads
{ env: NAME } The environment variable NAME.
{ file: /path/to/file } The file's contents, with a trailing newline (\n or \r\n) removed.
{ vault: { path, key } } A field of a secret in HashiCorp Vault (KV version 1 or 2). Since 0.5.0.
{ aws_secret: { id, key } } A secret in AWS Secrets Manager; key names a field of a JSON secret, and without it the whole secret string is the value. Since 0.5.0.
{ azure_keyvault: { vault, name } } A secret in Azure Key Vault. Since 0.5.0.
password: { env: CORP_LDAP_PASSWORD }
token: { file: /etc/syncd/bridge-token }
password: { vault: { path: secret/data/syncd/corp-ldap, key: password } }
password: { aws_secret: { id: prod/syncd/corp-ldap, key: password } }
password: { azure_keyvault: { vault: https://corp.vault.azure.net, name: corp-ldap-password } }

On a package install, define the variables in /etc/syncd/engine.env. The syncd service reads that file, and so does the syncd command on the host when it uses the packaged configuration, so syncd test-connection finds the same passwords. Variables already set in the environment win; --env-file (or SYNCD_ENV_FILE) names another file. A file named in { file: ... } must be readable by the syncd user.

Secrets in a store (vault, aws_secret, azure_keyvault) are read by the engine when a connector connects, over HTTPS through the engine's own TLS provider (the FIPS module in a FIPS build), without a vendor SDK. Where the store is and how the engine signs in to it belong to the engine's host: they come from the reference or, more usually, from the engine's environment.

Reference Keys
vault path: the secret's path in Vault's API below /v1/ (secret/data/<name> for the KV version 2 engine mounted at secret, <mount>/<name> for version 1). key: the field holding the value. Optional: address (else VAULT_ADDR), namespace (else VAULT_NAMESPACE), ca_file (else VAULT_CACERT, else the Mozilla root set), auth (else from the environment): { token_file: PATH }, { approle: { role_id, secret_id_file, mount } } or { kubernetes: { role, token_file, mount } }.
aws_secret id: the secret's name or ARN. Optional: key, region (else AWS_REGION or AWS_DEFAULT_REGION), endpoint (a VPC endpoint, instead of https://secretsmanager.<region>.amazonaws.com). Credentials come from the environment: access keys, a web identity token (IRSA, EKS Pod Identity), the shared credentials file, or the EC2 instance's role.
azure_keyvault vault: the vault's URL. name: the secret's name. Optional: version (the current one by default), client_id (a user-assigned managed identity, when the VM has several). The engine signs in with a federated token (AKS workload identity: AZURE_FEDERATED_TOKEN_FILE, AZURE_CLIENT_ID, AZURE_TENANT_ID), else as the VM's managed identity.

Each also takes cache_secs: how long a value read is reused before it is read again (300 by default; 0 reads it every time). A connection that fails with a value from a store (a refused LDAP bind, a source that restarts) drops it, so the next attempt reads it again and a rotated credential is picked up without a restart. The configuration, its diffs, simulations, exports, the status and the logs only ever show the reference, never the value. Secret stores are part of the Core pack.

Tested against stand-ins only

The Vault, AWS and Azure clients have been tested against doubles of the three services written in the syncd repository, never against a real Vault, AWS account or Azure tenant. Not built: Google Secret Manager, Vault's dynamic secret leases and certificate auth, binary AWS secrets. SCIM's bearer token and basic password are not read again after a 401, and database connections already open keep the credential they were opened with.

Secret settings are:

  • password (databases, LDAP, Active Directory, MongoDB, JDBC);
  • token (Debezium, JDBC bridge, SCIM bearer token);
  • auth.basic.password, auth.oauth2.client_secret and auth.oauth2.private_key_jwt.private_key (SCIM);
  • auth.client_secret and auth.private_key (Entra ID);
  • auth.token, auth.basic.password, auth.api_key.value, the auth.oauth2 secrets (client_secret, refresh_token, private_key_jwt.private_key, jwt_bearer.private_key, saml_bearer.assertion, saml_bearer.idp.private_key) and tls.client_key (REST and the HR connectors);
  • engine.ha.lease.url (the lease database's URL, which carries its password).

The JDBC connector refuses a URL or driver property that carries a password in plain text. syncd config diff never prints a secret setting's value, nor any *_file path, nor (since 0.5.0) a key ending in _token or named assertion.

Environment placeholders

A string value anywhere in the configuration may hold {{ env.<name> }}, or {{ env.<name> | default "x" }}, filled from an environment file. One base configuration then serves several installations. The engine renders the file with --env FILE (SYNCD_ENVIRONMENT) at every start, and syncd config render prints the result. The console fills the placeholders from its own Environments when it publishes.

Since 0.5.1 rendering keeps the configuration as written: only the values that hold {{ }} change, so comments, quoting, and values such as NO, on, yes or 0100 that a YAML reader could take for a boolean or a number stay as they were. An environment file is read strictly: an unquoted value is a boolean only as true or false, a null only as null (or ~), and a number only in plain decimal (no leading zero, no +); NO, on, 0100 and +33 are text. A placeholder that is a whole value takes the environment value's type (port: "{{ env.hr_port }}" renders as port: 5433).

Since 0.4.1 only administrators and auditors, or an API token with the environments:read scope (or admin), read an environment's values (GET /api/v1/environments); every role reads the names (GET /api/v1/environment-names). See Environments.

The packaged configuration

The packages install this /etc/syncd/engine/engine.yaml:

version: 1

engine:
  # systemd passes --data-dir /var/lib/syncd/engine, which takes precedence.
  data_dir: /var/lib/syncd/engine

# Control API, on loopback with mutual TLS. The installer issued these certificates
# from a CA of its own (/etc/syncd/pki) and registered this engine in the console.
api:
  listen: 127.0.0.1:7443
  # Uncomment for administration on this host without certificates: `syncd` commands
  # run as root (or as syncd) use the socket, which only the engine's own user and root
  # can open. An engine that delivers passwords needs it for `syncd backup` (and
  # `syncdctl backup --to`): its backups carry the password keys, which strict access
  # gives only to the socket and to certificates listed under `passwords`.
  # control_socket: /run/syncd/control.sock
  tls:
    cert_file: /etc/syncd/pki/engine.crt
    key_file: /etc/syncd/pki/engine.key
    client_ca_file: /etc/syncd/pki/ca.crt
  # Who may do what (docs/INSTALL.md, "Control API access"). Strict: a client
  # certificate has the tier its common name is listed under, and nothing otherwise.
  # The console's certificate (console-client.crt, "syncd console") applies
  # configurations; the command line's (cli.crt, "syncd command line"), which the
  # syncd group can read, reads and operates (runs, approvals, dead letters, and backups
  # until the engine holds password keys) and cannot apply a configuration, so the
  # console's approval and publish gates hold. An engine installed before 0.5.0 has no
  # `access` section: every certificate of the CA may do everything until it is added.
  access:
    mode: strict
    configure: [syncd console]
    operate: [syncd command line]
    # Who may set passwords through the API (`syncd password set`, adding and binding
    # capture agents, rotating the password keys), on top of `operate`. Nobody by
    # certificate: those commands are run with sudo on this host, through the control
    # socket. With an HA pair that delivers passwords, list the certificate the passive
    # engine reaches the active one with: its snapshot pulls carry the password keys
    # (docs/INSTALL.md, "High availability").
    passwords: []

The access section is new in 0.5.0, and only a new install gets it: an upgrade keeps engine.yaml as it was, so an engine installed before 0.5.0 stays compatible (every certificate the CA signed may do everything), with a warning at every start, in syncd status and on the console's engine page, until sudo syncdctl api-access strict adds the section. See Control API.

and this /etc/syncd/engine.env, which defines nothing until you add your secrets:

# Environment for the syncd engine (systemd EnvironmentFile; KEY=value, no quotes needed).
# Everything after `=` is the value, a `#` included: comments go on lines of their own.
#
# Configurations refer to secrets by name, e.g. `password: { env: LDAP_BIND_PASSWORD }`;
# define them here. This file is readable by root and the syncd group only.
#
# LDAP_BIND_PASSWORD=...
#
# Only with a FIPS build of syncd:
# SYNCD_FIPS_MODE=true
#
# Secrets in a vault (INSTALL.md, "Secrets from a vault or a KMS"): where the engine
# finds the store a configuration's `vault`, `aws_secret` or `azure_keyvault`
# references name.
# HashiCorp Vault, with a token file (a Vault Agent's sink) or AppRole:
# VAULT_ADDR=https://vault.example.gov:8200
# VAULT_CACERT=/etc/syncd/vault-ca.pem
# SYNCD_VAULT_TOKEN_FILE=/run/vault-agent/token
# SYNCD_VAULT_ROLE_ID=...
# SYNCD_VAULT_SECRET_ID_FILE=/etc/syncd-keys/vault-secret-id
# AWS: the usual AWS_REGION and credentials; off EC2, skip the wait for the instance
# metadata service:
# AWS_EC2_METADATA_DISABLED=true
#
# The password keys' passphrase (RUNBOOK.md): a file outside /etc/syncd, which off-host
# backups of /etc/syncd leave out. With a KMS key, the file holds the passphrase
# wrapped by it (`syncd secrets wrap`): awskms:..., azurekv:... or vaulttransit:...
# SYNCD_PASSWORD_KEY_PASSPHRASE_FILE=/etc/syncd-keys/password-key.passphrase
# SYNCD_PASSWORD_KEY_PASSPHRASE_KMS=vaulttransit:transit/syncd
#
# An active/passive pair: `syncdctl ha init` and `ha join` write the SYNCD_HA_* settings
# here. How long a submitted password change waits for the passive engine to have it
# (milliseconds; 0: never wait):
# SYNCD_HA_PASSWORD_REPLICATION_WAIT_MS=2000
#
# In FIPS mode, load custom functions in WebAssembly anyway (refused by default):
# SYNCD_FIPS_ALLOW_WASM_FUNCTIONS=true

The syncd unit starts the engine as syncd -c /etc/syncd/engine/engine.yaml --data-dir /var/lib/syncd/engine run, so the data directory is fixed whatever a configuration says.

Changing the configuration

  • From the console. Designers edit configuration versions, which the console checks with the engine's own compiler and whose rule test cases it runs. Publishing sends the version to the engine, which validates it, writes it over engine.yaml and reloads. See the user guide. With Git sync, versions can also come from commits; see Configuration as code.
  • From the command line. syncd apply-config new.yaml does the same through the control API, when the caller may: applying a configuration is the configure tier of api.access, which a strict engine gives the console's certificate only, so on a new install syncd apply-config is refused and configurations go through the console. An engine with engine.require_signed_config takes only configurations the console signed for it. syncd simulate new.yaml shows what applying it would send each target, without applying it. syncd config diff old.yaml new.yaml (or --running) says what changed, by meaning.
  • Host-only settings. engine.data_dir, engine.ha, the whole api section, since 0.5.0 engine.require_signed_config, engine.config_signing_keys and engine.license_file, and since 0.5.1 passwords.key_file can only be changed in the file on the engine host. The engine refuses a configuration sent through the control API that changes them, so a mistake there cannot leave the engine unreachable, and an applied configuration cannot say who may apply the next one. Start a configuration in the console by importing the running one, which copies them; an exported configuration file leaves them out.
  • The license. From 0.5.0 the console (or an engine without a console, at ApplyConfig) checks a configuration against the license when it is validated, saved and published: once the evaluation and its grace period are over without a license, or for a connector or feature whose pack the license leaves out, publishing a changed configuration is refused. Running configurations are never stopped. See Licensing.
  • Checks. syncd validate -c file.yaml checks structure and compiles every expression. syncd test -c file.yaml runs the test cases of every computed attribute and every rule package, and the golden-file tests in --golden DIR (by default tests/golden next to the configuration): its *.yaml files and, since 0.4.1, those one directory level down. A configuration whose tests fail can be saved in the console but not published. With Git sync the golden tests beside the configuration in the repository count too, for every publish: the editor's, the API's, Git auto-publish and promotion (in 0.4.0 only the editor ran them). Since 0.5.0 they are read at the version's own Git commit, not at the branch head. The engine refuses to apply a configuration whose test cases fail.
  • Warnings. A rule that reads an attribute nothing in its view sets (a misspelt e.departmnet), or a lookup table the view does not have, is reported as a warning by syncd validate, in the reply to apply-config, in the log at start and in the console. It is not an error: the rule reads the attribute as absent. Since 0.5.0 the same goes for a computed group of class groupOfNames or groupOfUniqueNames with on_expiry: empty or when_empty: keep and no placeholder_member (it will be an error in a later release; see Computed groups). Since 0.5.1 it also goes for a join rule's entity, a reference's match, a precedence.attributes entry or a correlation.suggest hint's entity that names an attribute no flow or computed attribute of the view sets (for match, of the referenced view; for a hint, of the view or its other_views): nothing then joins on it, the reference finds nothing, the order is never used or the hint scores nothing. A name that differs from a flow's only in case is the same attribute and is not warned about. Since 0.5.4 two more are warned about, both of which left a rule that reads other entities without values (see Validation rules). Since 0.5.5 a computed group's filter is checked as a publication's is, and an attribute listed only in attributes.multi_valued no longer counts as set. At start, a PostgreSQL stream whose publication does not publish TRUNCATE, and since 0.5.1 a streamed query whose watched table's replica identity leaves out the watched column, are warned about in the log; see Connectors.
  • Rolling back. 0.6.1 changes nothing in the configuration: a configuration it accepts works on 0.6.0. 0.6.0 adds the dsml connector type and its settings, and renames or removes nothing; 0.5.5 refuses a configuration with a dsml connector, so before rolling back to 0.5.5 with the store kept, publish a configuration without it (and run syncd reconcile first on an engine with a dsml target, which writes out the exports it keeps waiting; see Air-gapped synchronisation). 0.5.5 adds one setting, allow_empty on a CSV connection, and refuses a little more (the items marked "since 0.5.5" in Validation rules): publish a configuration without allow_empty before rolling back to 0.5.4. 0.5.2 and 0.5.4 add no settings and refuse nothing new: a configuration 0.5.4 accepts works on 0.5.2 and 0.5.1. 0.5.1 adds no settings either: a configuration 0.5.1 accepts works on 0.5.0 (0.5.1 only refuses more; see Validation rules). A rollback from 0.5.0 to 0.4.1 cannot keep the store, which 0.5.0 migrates to a format 0.4.1 refuses: syncdctl rollback restores the backup taken before the upgrade. 0.4.1 added no settings, so a configuration for 0.4.1 works on 0.4.0.

Spans of time

Settings that take a span of time as text (soak, max_delay, the leaver stages, expires_after, review_every, unmatched_alert_after) are written in whole units: 0d, 7d, 90d, 12h, 30m, 45s, or combined, larger units first, each once (1d12h). 0d means at once.

Engine (engine)

Key Type Default What
data_dir path ./data The engine's store. Overridden by --data-dir (or SYNCD_DATA_DIR); the packaged unit passes /var/lib/syncd/engine. Host-only.
shards integer 0 Worker shards for recompute and export planning. 0 means one per CPU.
scrape_interval_secs integer 3600 Seconds between full reads of scrape-mode objects, and between full export reconciliations unless reconcile_interval_secs is set. Also the default drift check interval.
reconcile_interval_secs integer scrape_interval_secs Seconds between full export reconciliations, which plan every entity of every publication against what was exported. At least 1. On a large store this is the engine's longest routine work, so it can run less often than full reads.
source_retry_max_secs integer 60 Longest wait before restarting a source that failed. Waits double from one second up to this.
history.keep_days integer 30 Days of entity history to keep: what changed, what caused it, what was exported. 0 records no history.
history.keep_per_entity integer 100 History entries kept per entity (the newest).
history.min_per_entity integer 10 The newest entries of each entity kept past keep_days, so no entity's story is empty. See History retention.
cache_mb integer 256 MiB of memory caching the store's decompressed blocks. At most 32768. Takes effect when syncd restarts. See Availability and sizing.
backup map unset Scheduled backups of the running engine; below.
ha map unset An active/passive pair; below. Host-only.
require_signed_config boolean false Since 0.5.0. Apply a configuration through the control API only when the console signed exactly that configuration for this engine (an ECDSA P-256 signature bound to the engine's current challenge); anything else, syncd apply-config included, is refused. Needs config_signing_keys. Host-only.
config_signing_keys list of paths empty Since 0.5.0. Files holding the public keys (PEM PUBLIC KEY; one file may hold several, for a rotation) whose signatures are accepted: the console's configuration signing key (syncd-console admin config-signing-key). Read at each apply, so a key is added or removed without a restart. sudo syncdctl api-access signing-key installs it on a package host. Host-only.
license_file path unset Since 0.5.0. The license of an engine without a console, relative to the configuration's directory; read at start and every few minutes. An engine the console manages takes the console's license instead. See Licensing. Host-only.
wasm_functions.fuel integer 10000000 Since 0.5.0. Fuel per call of a custom function in WebAssembly (a rule package's wasm): about one unit per instruction run; a call that uses it up fails. 1,000 to 1,000,000,000.
wasm_functions.memory_mb integer 16 Since 0.5.0. The most memory one instance of a module may hold, in MiB; a call that needs more fails. 1 to 1024.

Every entry of an entity with an open held change or a dead letter is kept until it clears, past both keep_days and keep_per_entity (0.4.0 still cut such an entity's entries at keep_per_entity).

engine:
  data_dir: /var/lib/syncd/engine
  shards: 0
  scrape_interval_secs: 3600
  reconcile_interval_secs: 86400
  history: { keep_days: 30, keep_per_entity: 100, min_per_entity: 10 }
  cache_mb: 256
  # Host settings: only configurations the console signed for this engine.
  require_signed_config: true
  config_signing_keys: [/etc/syncd/pki/console-signing.pub]

Scheduled backups (engine.backup)

The engine takes a consistent checkpoint of its store while it runs, archives it with its configuration, its password key and the capture agents' CA, and writes it to a directory or to S3. syncd backup takes one on request; since 0.5.1, on an engine that holds password keys in strict access mode, it needs the control socket or a certificate listed under api.access.passwords. See Backups.

Key Type Default What
to text required A directory, or s3://bucket/prefix.
every_secs integer 86400 Seconds between backups. At least 60.
keep integer 14 Backups kept at to; older ones are removed after each success. At least 1.
endpoint URL unset An S3-compatible endpoint (MinIO): https://minio.example.gov:9000. Path-style addressing is used with it.
region text AWS_REGION, else us-east-1 The bucket's region.
sse text unset Server-side encryption: AES256, aws:kms or aws:kms:<key id>.
ca_file path public roots PEM CA certificates for an endpoint without a public certificate.

S3 credentials come from the engine's environment, never from the configuration; see the AWS_* variables. The status and the metrics say when the last backup succeeded, and the SyncdBackupStale alert fires when none has for two intervals. The password keys go into the archive as they are on disk: sealed when the engine has a passphrase (SYNCD_PASSWORD_KEY_PASSPHRASE_FILE, see Passwords), and then a restore needs that passphrase; in the clear otherwise, so protect the destination like a secret.

engine:
  backup:
    to: s3://idm-backups/syncd/prod
    every_secs: 21600
    keep: 28
    sse: aws:kms

High availability (engine.ha)

Two engines run the same configuration and share a lease. The holder runs the sources and the exports. The other serves its control API, keeps a warm copy of the store from the active engine's snapshots, and takes over when the lease expires. See High availability.

Key Type Default What
name text required The pair's name: the lease's key, the same on both engines. 1 to 64 letters, digits, ., _ or -.
member text the host name This engine's name in the pair, up to 64 characters without spaces. SYNCD_HA_MEMBER, when set and not empty, overrides it.
role auto, active, passive auto auto competes for the lease. passive never takes it: a standby that only follows. active is auto by another name.
lease.backend postgres, kubernetes, file required Where the lease is. kind is accepted for the same key. kubernetes is new in 0.5.0.
lease.url secret postgres: the database URL. The console's database works.
lease.tls_verify boolean false postgres: check the server's certificate. Without it TLS encrypts only.
lease.ca_file path postgres: PEM CA certificates for tls_verify.
lease.path path file: the lease file, on a file system both engines share.
lease.name text the pair's name kubernetes: the coordination.k8s.io/v1 Lease object, a DNS subdomain name (lower-case letters, digits, - and .). Set it when the pair's name does not fit. Since 0.5.0.
lease.namespace text the pod's own kubernetes: the Lease's namespace. Since 0.5.0.
lease.ttl_secs integer 15 How long the lease holds without a renewal; renewed every third of it. At least 3. A failover takes at most this, plus the new engine's reconciliation.
advertise host:port api.listen (an unspecified address as the host name) Where the other engine reaches this one's control API, recorded in the lease. SYNCD_HA_ADVERTISE, when set and not empty, overrides it.
snapshot_every_secs integer 60 Seconds between the store snapshots the active engine takes for the passive one. At least 10. The failover window: what was exported since the last snapshot is found again by the reconciliation after a takeover. The default was 300 before 0.5.0, when every snapshot was sent whole; a value that is set is kept on upgrade.
peer.address host:port the address in the lease The other engine's control API, for snapshot pulls.
peer.ca_file, peer.cert_file, peer.key_file path api.tls's files The CA the peer's certificate chains to, and this engine's client certificate and key. cert_file and key_file go together. With a strict api.access, the peer's certificate needs operate for snapshot pulls, and passwords too when the passive engine forwards capture agents' changes or, since 0.5.1, when the engines hold password keys, which snapshots and the followed password queue carry.
password_replication_wait_ms integer 2000 Since 0.5.0. How long a password change a capture agent or a person submits waits for the passive engine to have it too before it is answered. A change the passive engine does not acknowledge in time (or with the passive engine down) is accepted all the same, logged and counted in syncd_ha_password_changes_unreplicated_total. 0 does not wait.

engine.ha can also come from SYNCD_HA_* variables, for hosts whose configuration file the console publishes (the Helm chart does this). A file with an engine.ha of its own keeps it, and SYNCD_HA_NAME is then ignored with a warning. SYNCD_HA_MEMBER and SYNCD_HA_ADVERTISE are different: since 0.4.1 they override member and advertise whichever way engine.ha was given (0.4.0 used the file's values first). With sealed password keys, both engines need the same passphrase.

Since 0.5.0:

  • A Kubernetes Lease (lease.backend: kubernetes) keeps the pair's lease in the cluster's API, read and written with the pod's service-account token, which needs get, create and update on leases in its namespace (the Helm chart's engine.ha.lease.kind: kubernetes makes the Lease and a Role for it). A freshly started engine waits one lease duration before it takes over a lease whose holder is gone. Changing a running pair's lease kind needs both engines stopped first.
  • Snapshots are incremental: a manifest of the store's files with their SHA-256, and only the files the passive engine lacks are sent. A pair with one engine still on 0.4.1 falls back to whole archives.
  • Password changes survive a failover: the passive engine follows the queue of password changes between snapshots, and answers on the password ingest port too, forwarding to the active engine.
  • syncdctl ha init, ha join, ha register and ha status set up a pair on two hosts and write the SYNCD_HA_* settings to engine.env.

Limits

There is no etcd backend. The Kubernetes Lease backend has been tested against a fake API server only, never a real one. Snapshots were measured at 3,000 people. A capture agent enrolled, or a password key rotated, after the last snapshot is lost with the active engine. See High availability.

Control API (api)

The console and the syncd command line talk to the engine through its control API (gRPC). The whole section is host-only.

Key Type Default What
enabled boolean true Serve the control API.
listen host:port 127.0.0.1:7443 Where it listens. Plain text is only allowed on a loopback address; any other address needs tls. The engines of an HA pair reach each other here.
tls.cert_file path PEM certificate chain the API presents.
tls.key_file path Its private key.
tls.client_ca_file path PEM CA certificates that client certificates must chain to. With tls, every client needs a certificate (mutual TLS).
local_control boolean false Allow commands that change something (runs, approvals, dead-letter actions) on the plain-text loopback listener. With tls they are always allowed, to clients whose certificate's tier allows them.
local_reveal boolean false Allow requests for sensitive values (reveal in the object explorer, previews and simulations) on the plain-text loopback listener, where any local account can call. With tls they are always allowed, to clients whose certificate's tier allows them. Since 0.5.1 backups, HA snapshot pulls and following the password queue, which hand out the whole store and the password keys, need local_control as well on that listener (0.5.0 served them with local_reveal alone).
control_socket path unset A Unix socket where the engine also serves the API to its own user only (the socket is mode 0600): everything in compatible mode, everything but applying a configuration in strict mode. syncd commands on the host use it when it exists.
metrics_listen host:port unset Serve Prometheus metrics over plain HTTP at GET /metrics (127.0.0.1:9464). Off unless set. Counters and states only, no attribute values. See the operator guide.
access map unset (compatible) Since 0.5.0. Who may do what; below.

With tls set, the engine logs each command with the client certificate's name. The packaged configuration uses mutual TLS on loopback with certificates from the installer's own CA; sudo syncdctl cli-cert issues a command-line certificate on a host that lacks one.

Who may do what (api.access)

Every call of the control API belongs to one of three tiers, each including the one before, and is checked in one place before it runs:

Tier Covers
read The status, lists, the running configuration, simulations.
operate Runs, approving held changes, dead-letter actions, joins, password operations, backups, connector checks, asking for sensitive values; an HA pair's snapshot pulls.
configure Applying a configuration.
Key Type Default What
mode compatible, strict compatible compatible: every certificate the client CA signed may do everything, as before 0.5.0. strict: a certificate gets the tier its identity is listed under, and nothing when it is listed nowhere; the control socket and the plain-text loopback listener stop at operate.
configure list empty Identities that may do everything.
operate list empty Identities that may read and operate.
read list empty Identities that may only read.
passwords list empty Identities that may, on top of operate or above, set passwords and decide who else can: syncd password set, adding and binding capture agents, rotating the password keys, and an HA pair's passive engine forwarding agents' changes. Since 0.5.1, on an engine that holds password keys (a password key or an agent CA), also backups, snapshot pulls and following the password queue (Backup, PullSnapshot, PullSnapshotFiles, FollowPasswordQueue), which carry the keys: list the certificate the passive engine of a pair pulls with, and run syncd backup through the control socket. In strict mode nobody else may, except the control socket (the engine's own user).

An identity is a client certificate's subject common name (syncd console), or one of its URI subject alternative names written with a uri: prefix (uri:spiffe://prod/syncd/console); * is every certificate the client CA signed. The four lists need mode: strict. A new install (the packaged engine.yaml, the image's initial configuration) is strict; an upgraded one keeps its file and stays compatible, with a warning, until sudo syncdctl api-access strict (or, on Kubernetes, an edit of the engine's file on its volume: the chart cannot set api.access). See the packaged configuration.

A control socket on a package install

The packaged configuration has control_socket: /run/syncd/control.sock commented out. The syncd unit creates /run/syncd for it (RuntimeDirectory=syncd, mode 0750) and removes it when the engine stops, so uncommenting the line and restarting the engine is enough. The rest of the file system stays read-only to the engine apart from /var/lib/syncd/engine and /etc/syncd/engine (ProtectSystem=strict); a socket anywhere else needs that directory given to the service with systemctl edit syncd. The console can also register an engine at its socket, as unix:/run/syncd/control.sock, when both run on the same host.

Attribute hints (attributes)

Key Type Default What
multi_valued list of names empty Attributes diffed as sets on export (LDAP add and delete of values) instead of replaced, and always read as a list in rules: one value is a one-element list, an absent attribute an empty list. Matched ignoring case. proxyAddresses is added by itself when a publication's exchange.proxy_addresses keeps existing values.
sensitive list of names empty Attributes whose values the console's object explorer, previews and simulations hide unless the user may reveal them (each reveal is audited). Names of view attributes, source fields or target attributes. What derives from them is hidden too: computed attributes that read them, source fields that flow into them, and target attributes built from them. DNs are not masked, so do not build DNs from sensitive attributes. List an initial password read from a source here.
attributes:
  multi_valued: [memberOf, mail, member]
  sensitive: [birthDate, nationalId, initialPassword]

Who may reveal is set in the console by CONSOLE_REVEAL_ROLES.

Packages (packages)

Rule packages hold functions, lookup tables and their tests, versioned and shared between configurations. Rules call <namespace>.<function>(...), the namespace being the name with - as _. See Rule packages for the file format and how calls work.

Key Type Default What
name text required Letters, digits and - (or _), starting with a letter. A namespace is used once: a-b and a_b clash. e, source and group are reserved.
version text required The version the configuration expects (semantic versioning, 1.2.0). A file read from from must declare the same. One version of each package per configuration.
from path unset A package file, relative to the configuration file's directory.
pin text unset sha256: and the file's 64 hex digits, in either case (since 0.5.1; 0.5.0 refused an upper-case pin when it read the file): a file with other content is refused. Only with from.
description, functions, lookups, tests, requires The package written inline, as in a package file, instead of from.
wasm map unset Since 0.5.0, inline or in the package file: custom functions in a WebAssembly module, which rules call like the package's own functions. sha256 (required): the module's SHA-256 (sha256:<hex> or the hex), so a module with other bytes is refused. from: the module file, relative to the package file's directory (the configuration's for a package written inline); without it the console fills the module in from its module store, by sha256, once it is approved there. 1 MiB at most. Calls are limited by engine.wasm_functions. Since 0.5.1 the console refuses the module's bytes written into the YAML (wasm.module): upload it in the module store, or name its file with from.
packages:
  - name: gov-naming
    version: 1.2.0
    from: packages/gov-naming.yaml
    pin: "sha256:3f2a..."

A package file with a module (examples/packages/checksum.yaml in the source repository):

name: checksum
version: 1.0.0
wasm:
  from: ../wasm-functions/checksum.wasm
  sha256: 66671f4139a1260cefc07746952e2497b74233539c002b4972d49d257c1258a8
functions:
  employee_id:
    params: [n: string]
    expr: n + luhn_digit(n)

The module travels inside the configuration (its bytes, in base64), so a signed configuration carries it, and the configuration differ shows its size and the function signatures its manifest declares rather than the bytes. Modules get no host functions. The runtime is an interpreter (wasmi). In FIPS mode the engine and the console refuse modules unless SYNCD_FIPS_ALLOW_WASM_FUNCTIONS=true. Custom functions are the Extensibility pack. The source repository's docs/CUSTOM-FUNCTIONS.md describes writing and building a module.

Connectors (connectors)

A connector is one system syncd reads, writes, or both. Each has a type, connection settings that match the type, the objects it reads, and an optional deletion threshold.

Key Type Default What
name text required Unique; views and publications refer to it.
type enum required postgres, mysql (MySQL 8 and MariaDB 10.5+), sql_server (SQL Server 2016+ and Azure SQL Managed Instance), mongodb, ldap, active_directory, debezium, jdbc, csv (a delimited file), scim (a SCIM 2.0 application, as a target), entra (Microsoft Entra ID through Microsoft Graph); since 0.5.0, as sources, rest (a REST or OData service), workday, successfactors (SAP SuccessFactors) and ukg (UKG Pro); since 0.6.0 dsml (DSML v2 files in a directory or on an SFTP server, across an air gap: a target on one side, a source on the other).
connection map required The settings for the type, below. Settings of another type are refused.
objects list empty The object types read from it. A connector used only as a target needs none; a scim connector takes none.
deletion_threshold map unset Safety limit for deletes detected in one import run: percent and/or count. A run that deletes more than either is held until an operator approves it. Since 0.5.1 one without either ({}), or with a percent outside 0 to 100, is refused.
deletion_threshold:
  percent: 5      # more than 5% of the source's records
  count: 500      # or more than 500 records

Publication targets are ldap, active_directory, scim, entra and (since 0.6.0) dsml connectors. See Connectors for what each does, and for which license pack each type belongs to.

Database connections (postgres, mysql, sql_server)

Key Type Default What
host text required Server host name or address.
port integer 5432 PostgreSQL, 3306 MySQL, 1433 SQL Server
user text required
password secret unset
dbname text required The database.
tls disable, require, verify_full disable require encrypts without verifying the server (as in libpq). verify_full checks the certificate chain and host name.
ca_file path Mozilla root set PEM CA certificates trusted for verify_full. Refused with any other tls mode.

LDAP and Active Directory connections (ldap, active_directory)

Key Type Default What
url text required ldap:// or ldaps://.
failover_urls list empty Other servers holding the same data (replicas, other domain controllers), tried in order when url does not answer.
bind_dn text required The bind identity (a DN, or user@domain for Active Directory).
password secret required
starttls boolean false Upgrade an ldap:// connection to TLS. An Active Directory target that takes passwords needs ldaps:// or starttls; since 0.5.0 so does any other directory that takes passwords on another host, unless passwords.allow_cleartext (see Passwords).
ca_file path the system trust store Since 0.5.0. PEM CA certificates the server's certificate must chain to, for ldaps:// and starttls: a directory with a private CA, an Active Directory domain's own. With it, only these CAs are trusted for this connector. Read at each connection, so a renewed file counts from the next one. Used for reads, exports, password delivery and self-service alike. Refused when no URL is ldaps:// and starttls is off.
max_inflight integer 32 Operations in flight per connection: the ceiling of the writer's adaptive limit. 1 to 256.
operation_timeout_secs integer 60 Seconds a bind, search or write may take before it fails and the connection counts as down. 1 to 3600.
idle_timeout_secs integer 900 Seconds a persistent search (syncrepl) may stay silent before the session is reconnected. A quiet session is probed every minute. Must be at least operation_timeout_secs.
profile generic, openldap, 389ds (alias rhds), unboundid (aliases ping, pingdirectory) generic ldap connectors only: the directory server, for what LDAP leaves to each server, such as how deprovision: disable disables an account. Refused on active_directory connectors. See Target profiles.

Without ca_file the server's certificate is checked against the system's trust store, as before 0.5.0.

MongoDB connections (mongodb)

Key Type Default What
url text required mongodb://host1,host2/?replicaSet=rs0 or mongodb+srv://cluster.example.com, without credentials. Other options, such as authSource, stay in the URL.
user text unset
password secret unset
dbname text required The database holding the collections.
tls disable, require, verify_full disable A mongodb+srv:// URL refuses disable. Since 0.5.1 disable leaves TLS to the URL: one with tls=true stays encrypted (0.5.0 turned it off).
ca_file path Mozilla root set For verify_full only.

Debezium connections (debezium)

Key Type Default What
listen host:port required Where syncd listens for the Debezium Server HTTP sink (127.0.0.1:8085).
token secret unset A shared secret the sink puts in its URL path (http://127.0.0.1:8085/<token>). Required unless listen is a loopback address.

JDBC bridge connections (jdbc)

Key Type Default What
bridge URL required The bridge: http://127.0.0.1:50071, or https://host:port when it serves TLS. A bridge beyond loopback needs https:// and a token, because the database password travels to it.
token secret unset The bridge's token (its --token-file). Required unless the bridge is on loopback.
ca_file path Mozilla root set CA certificates trusted for an https:// bridge.
url text required The JDBC URL the bridge connects with: jdbc:db2://db2.example.com:50000/HR. Must start with jdbc: and must not carry a password.
user text unset
password secret unset
operation_timeout_secs integer 900 Seconds one call to the bridge (the next batch of rows, a describe) may take before it fails. 1 to 86400.
properties map empty Driver properties (sslConnection: "true", currentSchema: HR). A password or pwd property is refused.

CSV files (csv)

A delimited file read in full; each object is one file and its anchor the key column. See CSV and flat files.

Key Type Default What
path path or glob required The file, or a glob over its directory (/in/contractors-*.csv): the newest match is read. An object's file replaces it for that object.
delimiter text , One character (",", ";", "|", "\t" for TSV), or auto to sniff among those four.
encoding utf-8, latin1, utf-16 utf-8 utf-8 strips a byte order mark. latin1 (aliases iso-8859-1, windows-1252, cp1252). utf-16 by its byte order mark, little-endian without one.
header boolean true The first row names the columns. Without it, columns names them in order.
columns list empty Names, or { name, type } with string, int, bool, date, timestamp or multi:<separator>. With header, the names must match the header's.
quote text " The quote character.
watch boolean false Read the file again two seconds after it stops changing, or when its done file appears, on top of the object's interval_secs or schedule. (0.4.1 could miss a done file that appeared just after a read had found it missing.)
done_file text unset Read only when this file exists (.done for <file>.done, or an absolute path), and delete it once the read is committed (since 0.5.5; before, as soon as the file was read). Without one, since 0.5.5 a file is read only once its modification time is 3 seconds old and its size and time stay the same for a second.
max_bytes integer 1073741824 (1 GiB) A larger file is refused.
allow_empty boolean false Since 0.5.5. A file with a header and no rows empties the source: every record it had is deleted. Off, such a read deletes nothing and says so (the file has no rows: nothing was deleted), since it is far more often a failed export than an empty population. 0.5.4 took it for every record gone.
on_error fail, skip fail What a bad row does: fail the whole read, or skip the row, counted and reported. Since 0.5.1 a skipped row whose key can still be read keeps its record as it was, and when any skipped row's key cannot be read, that read deletes nothing (0.5.0 deleted the records of skipped rows).

DSML files (dsml)

New in 0.6.0. A directory of DSML v2 files (OASIS, urn:oasis:names:tc:DSML:2:0:core) on the engine's host or on an SFTP server, for synchronisation between networks that are not connected. As a publication's target, the changes the engine exports are written as one file of LDAP changes per interval; as a source, such files are read in the order they were written. Each side has its own connector; settings marked write are for a target, read for a source, and the rest for both. Air-gapped synchronisation shows the two sides together, and DSML files what each side does with the files.

Key Type Default What
location text required The directory: a path on this host, which must exist (an unmounted transfer volume is an error, not a new directory), or sftp://user@host[:port]/path (port 22 by default; /~/path for a path under the login directory), with sftp.
sftp map unset How to sign in to an sftp:// location and which server to trust; below. Required for an sftp:// location, refused for a local one.
prefix text syncd Write: files are named <prefix>-<sequence>-<UTC time>.dsml.xml (a snapshot <prefix>-<sequence>-<UTC time>.full.dsml.xml), each with a <file>.sha256 written before it. Letters, digits, -, _ and ., not starting with ..
done_files boolean false Write: a <file>.done after each file, for a transfer that waits for one. Read: a file is read only once its .done is there; without this, once it has not changed for three seconds.
pattern glob *.xml Read: the file names read, a glob over names (no /).
after_read keep, delete, move keep Read: what becomes of a file, with its .sha256 and .done, once every object of the connector has read it: left in place (the checkpoint records it), deleted, or moved into processed/ beside it.
poll_secs integer 30 Read: seconds between looks for new files. At least 1.
require_checksums boolean false Read: every file needs its .sha256 and must match it; the source waits for one. Without this a checksum is checked when there is one.
on_gap wait, continue wait Read: a file missing from a writer's sequence holds the files after it until it arrives, or until a snapshot of the same writer arrives after it (wait; the status names the missing file), or is passed over with a warning (continue).
allow_empty boolean false Read: a snapshot with no entries for an object empties it. Off, such a snapshot, or one whose search failed, deletes nothing, with a warning.
max_bytes integer 1073741824 (1 GiB) The largest file read or written. Write: an interval's changes larger than this are split over several files, a file is written before the interval ends once this much is waiting, and a snapshot larger than this is not written (a warning says so). Read: a larger file stops the source with an error naming it. At least 1.
batch_secs integer 900 Write: seconds of exports gathered into one file, the intervals counted from midnight UTC (so every 15 minutes, on the quarter hour, by default). Exports wait in the engine's store meanwhile and count as exported once there; a full reconciliation writes them out at once. 0 writes each batch of exports as soon as the engine makes it.
full_snapshots boolean false Write: once every publication to the target has been reconciled in full (the first start, syncd reconcile, a configuration change's full sync), also a snapshot of every entry exported, which the far side reads as a full read.
profile generic, openldap, 389ds (alias rhds), unboundid (aliases ping, pingdirectory) generic Write: how the directory the files are for disables accounts, as a modification of pwdAccountLockedTime (openldap), nsAccountLock (389ds) or ds-pwp-account-disabled (unboundid). With generic, a publication that disables (disable, disable_and_move_to, disable_after) is refused.

sftp:

Key Type Default What
host_keys list required The server's host keys, as a known_hosts line or a .pub file holds them (ssh-ed25519 AAAA..., as ssh-keyscan -t ed25519 <host> prints them), or their SHA-256 fingerprints (SHA256:..., as ssh-keygen -lf prints them). The server must present one of them: no key is trusted on first use, and a refusal names the key the server presented.
password secret unset A password. Exactly one of password and private_key is set.
private_key secret unset A private key in OpenSSH format, Ed25519 or ECDSA (RSA keys are not taken).
private_key_passphrase secret unset The key's passphrase, when it has one. Only with private_key.
timeout_secs integer 30 Seconds a connection or an operation may take. At least 1.
  • Objects (a source) are mode: stream, each with a base, and optionally scope (sub by default), filter ((objectClass=*) by default) and attributes: an object reads what that search would find in the directory the files describe. The filter is matched without the directory's schema: values compare without case, >= and <= compare numbers as numbers, and an extensible match (:dn:, a matching rule) is refused. A target needs no objects.
  • A publication to a dsml target cannot read the directory back, so validation refuses drift, unmanaged, writeback, adopt, create_containers, remove_empty_containers, strip_unmanaged_groups and passwords on it.
  • FIPS mode refuses an sftp:// location when the connector starts: the SSH transport's ciphers are not the validated module's. Use a mounted directory there.
  • dsml belongs to the Core license pack.
connectors:
  - name: outbox                       # the connected side: a target
    type: dsml
    connection:
      location: sftp://syncd@transfer.example.com/~/outbox
      sftp:
        host_keys: ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."]
        private_key: { file: /etc/syncd/airgap_ed25519 }
      prefix: hq-people
      done_files: true
      full_snapshots: true
      profile: openldap
  - name: inbox                        # the far side: a source
    type: dsml
    connection:
      location: /var/lib/syncd/airgap/in
      pattern: "*.dsml.xml"
      done_files: true
      require_checksums: true
      after_read: move
    objects:
      - type: person
        anchor: employeeNumber
        mode: stream
        base: ou=People,dc=example,dc=com
        filter: (objectClass=inetOrgPerson)

The two connectors run on different engines, one on each side of the gap; the source repository's examples/airgap-export.yaml and examples/airgap-import.yaml are whole configurations for them.

SCIM (scim)

A SCIM 2.0 application, as a publication target. See SCIM targets.

Key Type Default What
base_url URL required The provider's base, https://app.example.com/scim/v2. https:// unless on loopback.
auth.token secret A bearer token.
auth.basic map { username, password }; password is a secret.
auth.oauth2 map OAuth 2.0 client credentials: token_url (https:// unless on loopback), client_id, optional scope, and exactly one of client_secret (a secret) and, since 0.5.0, private_key_jwt.
auth.oauth2.private_key_jwt map Since 0.5.0. A client assertion (RFC 7523) signed with a key, in place of a client secret: private_key (a secret: PEM, RSA or P-256), key_id (the kid the provider knows the key by) or certificate_file (a certificate whose thumbprint names it), algorithm (PS256, the default for an RSA key, RS256, or ES256 for a P-256 key), audience (the token URL unless set).
tls.ca_file path unset PEM CA certificates trusted besides the Mozilla root set.
rate_limit integer 20 Requests per second at most. At least 1.
page_size integer 100 Resources per page when listing. 1 to 1000.
timeout_secs integer 30 Seconds one request may take. 1 to 3600.

auth takes exactly one of token, basic and oauth2. The client secret or the assertion's key is read where its reference says with every token request, so a rotated one is used from the next token.

Entra ID (entra)

Microsoft Entra ID through Microsoft Graph: a target for users, groups, licences and app roles, and a source of users and groups. See Microsoft Entra ID.

Key Type Default What
tenant text required The tenant's domain (contoso.onmicrosoft.com) or id.
auth.client_id text required, except as below The application registered in the tenant. With workload_identity, AZURE_CLIENT_ID when unset; not used with managed_identity, which has its own.
auth.client_secret secret A client secret.
auth.certificate_file path Since 0.5.0. A certificate registered on the application (PEM). Each token request carries a client assertion signed with its private key. Needs one of the next two.
auth.private_key_file, auth.private_key path, secret Since 0.5.0. The certificate's private key (PEM, RSA), in a file or as a secret reference.
auth.assertion_algorithm PS256, RS256 PS256 Since 0.5.0, with certificate_file: PS256 with the certificate's SHA-256 thumbprint, or RS256 with its SHA-1 thumbprint, for tenants that still want it.
auth.federated_token_file path Since 0.5.0. A token another issuer gave this workload, accepted through a federated credential of the application; the file is read for every token request.
auth.workload_identity boolean false Since 0.5.0. The federated token file from AZURE_FEDERATED_TOKEN_FILE, and the client id from AZURE_CLIENT_ID when client_id is unset: what AKS workload identity sets in a pod. Not with federated_token_file.
auth.managed_identity map Since 0.5.0. The managed identity of the Azure VM the engine runs on: {} for the system-assigned one, { client_id: ... } for a user-assigned one.
cloud global, usgov, usgovdod, china global The national cloud, which picks the Graph and sign-in hosts.
endpoint URL the cloud's (https://graph.microsoft.com/v1.0) Another Graph endpoint, for a test double.
token_endpoint URL the cloud's Another token endpoint, for a test double.
tls.ca_file path unset PEM CA certificates trusted besides the Mozilla root set.
timeout_secs integer 30 Seconds one request may take. 1 to 3600.

auth takes exactly one way of signing in: client_secret; certificate_file with private_key_file or private_key; federated_token_file or workload_identity; or managed_identity. Only the client secret has run against a real tenant; the other three are tested against syncd's fake Microsoft Graph. See Microsoft Entra ID.

REST and HR services (rest, workday, successfactors, ukg)

Since 0.5.0. Sources only, read page by page as JSON. rest is the generic reader; workday, successfactors and ukg are presets of it that fill in their service's paths, paging, delta filter and token endpoint, and what the configuration sets wins. See REST and HR services for how they read, and for what they have been tested against (fakes only).

Key Type Default What
url URL required The service's base; object paths are relative to it. https:// unless on loopback. Workday: the services host; SuccessFactors: the API server; UKG Pro: the service host.
auth map required One of token (a secret), basic ({ username, password }) and oauth2, with or without api_key ({ header, value }: header is X-API-Key unless set, US-Customer-Api-Key for ukg) beside it; or {} when a client certificate alone signs in.
auth.oauth2 map client_id, grant (client_credentials by default, refresh_token, jwt_bearer, saml2_bearer), token_url (required for rest; the preset's for workday and successfactors), client_secret or private_key_jwt (as for SCIM), client_auth (form by default, or basic), refresh_token, jwt_bearer ({ private_key, subject, audience, algorithm, key_id }), saml_bearer ({ assertion } or { idp: { url, user_id, private_key } }), scope, params (more form fields).
tenant text workday, required: the tenant name in its URLs.
company_id text successfactors, required: the company id, added to the basic user name (<user>@<company id>) and to the token request.
tls.ca_file path PEM CA certificates trusted besides the Mozilla root set.
tls.client_certificate_file, tls.client_key path, secret Mutual TLS: the client certificate (PEM, its chain after it) and its key. They go together.
headers map empty Headers sent with every request; not secrets, and not Authorization.
rate_limit integer 10 Requests per second at most, over every object of the connector; 0 for no ceiling.
max_concurrency integer 2 Requests in flight at once, over every object of the connector. 1 to 64.
timeout_secs integer 60 Seconds one request may take. 1 to 3600.
max_retries integer 5 How often a request answered 429 or 503, or not answered, is tried again (after Retry-After or a growing pause) before the read fails.

ukg needs auth.api_key (the customer API key). An object of these types takes a rest block:

Key What
path The path under url (or a full URL). The presets derive it from report (Workday RaaS: <owner>/<report>), resource (Workday: workers; UKG Pro: person-details, employment-details, ...) or entity (SuccessFactors: PerPerson, EmpJob, ...). Required for rest.
query Query parameters of every request.
records JSON path to the array of records in a page ($.data, $.value; $ when the page is the array).
fields Attribute name to a JSON path relative to the record, or { path, type, format, zone, flatten }: type is string (default), int, bool, timestamp or list; format a strftime pattern for a timestamp, read in zone (UTC by default); flatten first or all. Empty: every top-level field, as text. With fields, the object's anchor must be one of them.
paging style: none (default), next_link, link_header, offset, page, odata or cursor; with next (a JSON path; required for next_link and cursor), page_size, size_param, offset_param, page_param, first_page, cursor_param, total.
delta For mode: delta, required: query with {since} in a value ({ updated_since: "{since}" }), or style: odata (the service's delta links). format writes {since} (a strftime pattern, epoch, epoch_ms; RFC 3339 in UTC by default); server_time_header (Date by default) or server_time (a JSON path) says where the service's own time is read; overlap_secs (60) reaches back; modified (a JSON path) drops records read again unchanged.
deletes For mode: delta: tombstone ({ path, equals }, equals true by default) or endpoint ({ path, query, records, anchor, paging }, a "deleted since" listing whose query has {since}).
- name: hr
  type: rest
  connection:
    url: https://api.example.com/v1
    auth: { token: { env: HR_TOKEN } }
  objects:
    - type: person
      anchor: id
      mode: delta
      interval_secs: 60
      full_interval_secs: 86400
      rest:
        path: /people
        records: $.data
        paging: { style: next_link, next: $.links.next }
        fields:
          id: $.id
          givenName: $.name.first
          mail: $.emails[?(@.type=='work')].value
          hired: { path: $.hireDate, type: timestamp }
        delta:
          query: { updated_since: "{since}" }
          modified: $.updatedAt
        deletes:
          tombstone: { path: $.deleted }

JSON paths are a subset of JSONPath: $, .name, ['odd name'], [n], [*], and [?(@.field=='value')] (or !=).

Objects

Each entry of objects is one object type the connector reads. The keys that apply depend on the connector type:

Key Applies to Default What
type all required The object type name views refer to (person, group). For entra, user or group.
anchor all required The source attribute or column holding the immutable identifier. For csv, the key column; for entra, id.
mode all scrape scrape, delta or stream; see Read modes.
table databases, Debezium, JDBC A table or view (dbo.people, HR.EMPLOYEE). For Debezium, the captured table whose events are this object's.
query databases, JDBC A SQL query instead of a table; its columns become attributes.
cdc postgres, mysql, sql_server Change capture for mode: stream; see Change capture.
base LDAP, AD, DSML Search base DN.
filter LDAP, AD, DSML, MongoDB (objectClass=*) for LDAP and DSML LDAP and DSML: a search filter. MongoDB: a query document in extended JSON ('{"status": "active"}').
scope LDAP, AD, DSML sub base, one or sub.
attributes LDAP, AD, DSML, MongoDB, Entra empty (all user attributes, or whole documents) Attributes or fields to read. For entra, the properties selected.
collection MongoDB The collection to read.
file csv the connection's path The file or glob this object reads, so one connector can read several files of one inbox.
rest rest, workday, successfactors, ukg What to read; see REST and HR services. Required for rest. Since 0.5.0.
changelog ldap with mode: stream Follow the directory's change log instead of syncrepl; see LDAP change logs.
poll_interval_secs streams that poll 10 (DirSync), 5 (change logs), 30 (Entra delta queries) Seconds between polls. Only for Active Directory streams, changelog streams and entra objects.
interval_secs scrape, delta engine.scrape_interval_secs Seconds between reads (delta: between reads of what changed). Not for streams.
schedule scrape, delta unset When full reads start, as a cron schedule. Replaces interval_secs (scrape) or full_interval_secs (delta); setting both is refused. Not for streams.
schedule_zone with schedule UTC The schedule's time zone, an IANA name (Europe/Paris).
full_interval_secs delta one day Seconds between full reads, which also find deletes.
container_check_secs ldap, active_directory with mode: stream or delta 60 Seconds between checks for containers renamed under base, whose entries are then read again; 0 turns the check off. Only objects with scope: sub are checked. See Containers renamed in a source.
watermark delta modifyTimestamp (LDAP), uSNChanged (AD); required for databases and MongoDB What marks a change: a column or field that grows with every change, or a directory attribute. Since 0.5.1 a directory's mark is taken before the read (Active Directory's highestCommittedUSN, elsewhere a search for the marks alone first), so a change made during the read is read again next time.
binary all empty Attributes or columns that hold binary data beyond those the connector recognises by type: LDAP attributes the built-in list misses, and Debezium columns, which arrive as base64 text.
timestamps all empty Attributes or columns to send as timestamps instead of text. Listed values are read as rules' timestamp() reads text, so rules get a timestamp and LDAP targets GeneralizedTime. A value that does not read as one stays text.

An object sets exactly one of table, query (databases, JDBC, Debezium table only), base (LDAP, Active Directory and, since 0.6.0, DSML) or collection (MongoDB), and only the options that belong to it. A csv object sets none of them (or file); an entra object sets only type, anchor: id, mode: stream, attributes and poll_interval_secs; an object of a REST connector sets none of them and has a rest block instead.

Read modes

Mode What it does Allowed for
scrape A full read every interval_secs (or on schedule), diffed against what is staged. Records not seen are deleted. Every type except debezium, entra and dsml. The only mode for csv.
delta Every interval_secs, reads what changed since the last read by the watermark (REST connectors: by rest.delta); every full_interval_secs (or on schedule) reads everything, which finds deletes. Every type except debezium, csv, entra and dsml.
stream Follows changes as they happen, from a checkpoint committed with the changes. PostgreSQL, MySQL, SQL Server (with cdc), MongoDB, LDAP (syncrepl or changelog), Active Directory (DirSync), Debezium (required), Entra ID (delta queries, required), DSML (the files as they arrive, required; a snapshot file is a full read). Not jdbc, csv or the REST connectors.

Anchor rules for streams, checked by validation:

  • an ldap object streamed with syncrepl needs anchor: entryUUID;
  • an active_directory object streamed with DirSync needs anchor: objectGUID;
  • a MongoDB object streamed with a change stream needs anchor: _id;
  • an entra object needs anchor: id.

How each type reads, and what it needs on the source side, is in Connectors.

Change capture (cdc)

Key Database Default What
slot PostgreSQL (required) The logical replication slot, created if missing.
publication PostgreSQL (required) The PostgreSQL publication, created if missing. Tables the object follows that an existing publication lacks are added to it, or the stream fails naming them.
server_id MySQL (required) The replica id this stream uses, unique among the server's replicas and other binlog readers.
poll_ms SQL Server 1000 How often the change tables are read, in milliseconds. At least 1.
change_tracking SQL Server false Follow change tracking instead of change data capture.
watch all three, query objects empty The base tables a query reads, and how a changed row maps to the anchors of the query rows it affects. Required for a streamed query object; refused on a table object.

A setting that belongs to another database is refused (slot on a MySQL object, for example). SQL Server needs no required settings: write cdc: {}.

Each watch entry maps a table name to either:

  • a column name: that column of the changed row is the query's anchor (people: employee_id); or
  • { key: <column>, anchors: <SQL> }: SQL returning the affected anchors, with the changed row's key column as $1 (text; cast it, such as $1::int).

An update that changes the watched column, and a delete, carry its old value only when the table's replica identity holds the column (its primary key, or REPLICA IDENTITY FULL). Since 0.5.1 a PostgreSQL stream warns at its start for each watched table where it does not.

- type: dept
  anchor: emp
  query: SELECT p.employee_id AS emp, d.code FROM people p JOIN departments d ON d.name = p.department
  mode: stream
  cdc:
    slot: syncd_dept
    publication: syncd_dept_pub
    watch:
      people: employee_id
      departments: { key: name, anchors: "SELECT employee_id FROM people WHERE department = $1" }

LDAP change logs (changelog)

For ldap objects with mode: stream, as an alternative to syncrepl:

Key Default What
format required changelog: numbered entries under cn=changelog (389 Directory Server and Red Hat Directory Server Retro Changelog, ForgeRock / OpenDJ, Ping Directory, Oracle DSEE and Oracle Unified Directory). accesslog: OpenLDAP's access log overlay.
base cn=changelog or cn=accesslog Where the log's entries are.

Active Directory objects stream with DirSync and do not take changelog. The same changelog map is used by a publication's writeback.

Views (views)

A view merges records from one or more sources into entities.

Key Type Default What
name text required Unique.
sources list required (at least one) Which connector objects feed the view; below. At least one must project.
precedence map source order Which source wins for each attribute; below.
computed list empty Computed attributes; below and in rules.
lookups map empty Inline lookup tables: table name to key to value.
references map empty Attributes whose values identify other entities; below.
correlation map unset How records that joined no entity are scored for suggestions, and when waiting ones are alerted on; below and the guide.
quality list empty Data-quality checks run on every entity; below and the guide.

Sources

Key Type Default What
connector text required A connector name.
object text required One of its object types. Each connector and object pair appears once per view.
project boolean false Whether a record that joins no entity creates a new one. Authoritative sources (the HR database) project; others usually only join.
join list empty Ordered join rules. The first that yields exactly one candidate wins; several candidates are an ambiguous join, held for review. A source must project, join, or both.
flows map empty View attribute to a CEL expression over source, the staged record.

A join rule is either one condition or several that must all match the same entity:

Key Default What
entity View attribute to match against (one condition).
source CEL over source producing the value to look up (one condition).
case_insensitive true Compare ignoring case.
normalize false Compare transliterated, lower-cased letters and digits only (Zoë O'Neil matches zoe oneil); implies case-insensitive.
all Instead of entity and source: a list of conditions, each with entity, source, case_insensitive and normalize.
when CEL over source: the rule only applies to records for which it holds.
sources:
  - connector: hr_db
    object: person
    project: true
    flows:
      employeeId: source.employee_id
      givenName: source.given
      sn: source.sn
  - connector: corp_ldap
    object: person
    join:
      - entity: employeeId
        source: source.employeeNumber
      - all:
          - { entity: givenName, source: source.givenName, normalize: true }
          - { entity: sn, source: source.sn, normalize: true }
        when: '!has(source.employeeNumber)'
    flows:
      uid: source.uid
      mail: source.mail

A flow whose input attribute is absent gives the view attribute no value from that source. unique() is refused in flows and join rules: it belongs in computed attributes. Two flows of one source whose names differ only in case are refused (since 0.5.1).

One connector object in several views. A connector object may feed more than one view: each view keeps its own link from each record to its entity, and its own joins made by hand (the store's format 2, to which 0.5.0 migrates the store at its first start). In 0.4.1 a second view reading the same object stopped the engine. Since 0.5.1:

  • a view added on a source another view already reads gets entities for every record of it at the full sync that follows the publish, not only for records that changed since;
  • a source taken out of a view leaves its entities at that full sync: they are computed again without its records, and an entity left with no projecting source is deleted (its other records wait as unjoined), under the deletion thresholds;
  • at the end of every full sync, records that joined no entity are correlated again with the join rules as they are now, so changed join rules join or project records that waited, even from a source read as a stream, which has no full read of its own to retry them.

Joining at scale (since 0.5.2). An all: rule finds its candidates by its rarest condition and checks the others for those only, so a condition many people share (a department) next to a unique one (an employee id) costs no more than the unique one alone; alone, it finds a crowd and the record waits for review. A record waiting for review is matched again at a full read only when the entities its keys find, or its source's joins, changed. When two records of one source wait for the same entity and it appears, the first in order of source and record joins it and the other waits for review (in 0.5.1 either could). How a first read joins, and what keeps it fast, is in Joins and first reads.

Precedence

Key Type What
precedence.default list of sources Source priority for attributes without their own entry: connector names, or (since 0.5.5) connector/object. When empty, the order of sources.
precedence.attributes map Attribute to its own list of sources. Since 0.5.5 an attribute listed twice (names ignore case) is refused.

For each attribute, the highest-ranked source that has a value wins. Sources a list leaves out follow, in sources order. Every name must be a source of the view. Since 0.5.5 a connector's name ranks every object of it the view reads, in the order of sources, and connector/object names one; 0.5.4 ranked only the connector's first object and put its others behind every source listed.

precedence:
  default: [hr_db, corp_ldap]
  attributes:
    title: [corp_ldap, hr_db]

Note

Precedence is a priority list only. Other survivorship policies described in the product plan (most recent, union, a custom reducer) are not built.

Computed attributes

Key Type Default What
name text required The attribute it sets. Unique within the view, ignoring case since 0.5.1.
mode recompute, assign_once, only_if_empty recompute Value lifecycle; see Value modes.
steps list empty let and when steps before the output; see Multi-step transforms.
output CEL required The final value. May read e and step variables.
on_error skip, default, quarantine skip What a failed evaluation does; see Error policies.
default text unset The fallback for on_error: default, which requires it.
permanent map unset { key: <attribute> }: the values belong to that key for good, are never given to another entity, and come back to an entity that returns with the same key. Needs mode: assign_once; the key is another attribute of the view. See Permanent values.
tests list empty Test cases: input, optional lookups, expect; see Test cases.

Computed attributes are evaluated in dependency order; a cycle is refused.

Lookup tables

lookups:
  dept_codes:
    Engineering: ENG
    Sales: SLS

Rules read them with lookup("dept_codes", e.department, "GEN"), and a package's tables as lookup("gov_naming.titles", ...). See Lookup tables.

References

references maps an attribute of the view to how its values find other entities. Publications export a reference as the DN of the referenced entity in the target, and computed attributes can follow it with ref() and friends.

Key Type Default What
view text the declaring view The view holding the referenced entities.
match text required The attribute of the referenced entity that a reference value equals (employeeId, or a source DN flowed into the view for LDAP manager or member values).
case_insensitive boolean false Compare ignoring case.
references:
  manager: { match: employeeId }                 # within the same view
  member: { view: people, match: employeeId }    # a group view pointing at people

A reference only finds entities when a flow or a computed attribute of the view sets it (a group's member: source.member); since 0.5.4 validation warns when none does (see Validation rules).

To compute each person's groups (memberOf), see Computing memberOf from groups.

Correlation assistance (correlation)

Records that joined no entity get scored suggestions, which an operator accepts in bulk. Nothing joins without an operator. See Correlation assistance.

Key Type Default What
suggest list empty Conditions scored beside the join rules' own, each { entity, source, weight, similar }: an entity attribute, CEL over source giving the record's value, a weight above 0 and at most 10 (default 1), and whether a value within a Jaro-Winkler similarity of 0.92 also counts, at 0.7. A hint on an attribute a join rule matches replaces that condition's weight and similarity.
accept_at number 0.95 The score from which syncd correlation accept --above and the console's Accept all at or above take a suggestion by default. Above 0, at most 1.
unmatched_alert_after span unset Unjoined records older than this are counted as ageing: in the status, the metric, the SyncdUnmatchedRecordsAgeing alert and the correlation.unmatched-ageing event.
other_views list of view names empty Since 0.5.0. Views whose entities an unjoined record of this view is also looked for in, by the same conditions on attributes of the same name. What is found there is shown beside the suggestions, with its view: a pointer to a look-alike, which cannot be accepted as a join. Not the view itself, each view once.
correlation:
  suggest:
    - { entity: mail, source: lower(source.mail), weight: 2 }
    - { entity: sn, source: source.lastName, similar: true }
  unmatched_alert_after: 3d
  other_views: [contractors]

Since 0.5.0 similar also counts two values of at least five characters that one typo (a character replaced, dropped or added) turns into each other, wherever the typo is, so syncd correlation accept --above may take records it left before: review its dry run.

Data-quality checks (quality)

Checks run as each entity is computed, so they run again exactly when its inputs change. Failures are kept per entity. See Data-quality checks.

Key Type Default What
name text required Letters, digits, - and _; unique within the view.
check CEL over e A condition that holds for a good entity. An error evaluating it counts as a failure.
unique CEL over e Instead of check: a value no two entities of the view may share, compared as text ignoring case. Entities without a value are not compared.
severity info, warning, error warning
on_error report, quarantine, { skip_publication: [names] } report report only records the failure. quarantine holds the entity's exports until the check passes. skip_publication keeps the entity out of those publications of this view while it fails, so their leaver policy applies to an entry already in the target. A unique check can only report.
message text the check's name What a failure says. Shown in syncd quality and the console, so keep attribute values out of it.
quality:
  - name: mail-format
    check: e.mail.matches("^[^@]+@[^@]+$")
    severity: error
    message: mail is not an address
  - name: unique-mail
    unique: e.mail
    severity: error

Publications (publications)

A publication writes a view's entities to a target: an LDAP directory, Active Directory, a SCIM application, Entra ID or, since 0.6.0, DSML files for a directory across an air gap (as to a directory, without what needs to read it back; see DSML files).

Key Type Default What
name text required Unique.
view text required The view to publish.
target text required An ldap, active_directory, scim, entra or (since 0.6.0) dsml connector.
filter CEL over e all entities Which entities are in scope. Entities leaving scope are deprovisioned. Since 0.5.5 a filter that fails on an entity (an error, not an absent attribute) leaves its entry as it is; 0.5.4 deprovisioned it.
dn template required for directories The entry's DN; see DN template. Not used for SCIM and Entra targets.
object_classes list required for directories The entry's object classes. Not used for SCIM and Entra targets.
resource text User SCIM and Entra targets: the resource type (User, Group, or for SCIM one of the provider's resource types). See below.
external_id CEL over e SCIM and Entra targets, required: the value that names the resource, in place of dn.
key userPrincipalName, employeeId userPrincipalName Entra targets: the user property external_id gives.
licenses map unset Entra targets: the Microsoft 365 licences each user holds.
attributes map required Target attribute to a CEL expression over e. For SCIM, SCIM paths; for Entra, Graph property names. Since 0.5.5 a mapping that fails keeps the value exported before; 0.5.4 cleared it in the target.
dn_attributes map empty Values only the DN template uses, not exported: name to CEL over e.
references map empty Target attribute to a reference attribute of the view. Each value is exported as the DN (or resource name) the referenced entity has in this target; values whose entity is not exported there are left out.
deprovision see below delete What happens to an entry whose entity leaves scope or is deleted; see Deprovisioning and the staged leaver policy.
deletion_threshold map unset percent and/or count, as for connectors, for the deletes this publication makes. Since 0.5.1 an empty one, or a percent outside 0 to 100, is refused.
modification_threshold map unset percent and/or count: a pass that modifies or moves more existing entries has its modifications held. See Thresholds.
add_threshold map unset The same for adds, as a share of the entries exported. See Thresholds.
canary map unset A few entities first, the rest after a soak. See Canary publishing.
change_window map unset When changes may be applied; held outside it. See Change windows.
mode apply, report apply report plans every pass and writes nothing. See Report mode.
create_containers boolean false Create the missing parents of an entry, as many levels as are missing, instead of failing the export. Directories only.
remove_empty_containers boolean false Delete a container this publication created once the last entry has left it, and its parents in turn when syncd created them too. Needs create_containers.
groups list empty Computed groups; below.
group_policy map unset Defaults for the computed groups' lifecycle; see Group lifecycle and the guide.
adopt map unset Take over entries already in the target; below. Directories only: SCIM and Entra adopt by themselves.
drift map unset Read the target back and act on changes made there; below.
unmanaged map unset Since 0.5.0. The unmanaged-entries pass: entries of the target nobody exported, and members of privileged groups nothing accounts for; below.
writeback map unset After a target outage, write changes made in the target back to an LDAP source; below.
passwords map unset Passwords this publication delivers: captured ones and the initial password of new entries; see Publication passwords.
exchange, account_control, home, user_principal_name, sam_account_name map unset Active Directory conveniences; see below.

A publication's references need exactly one publication of the referenced view to the same target, since that is where the referenced entity's DN comes from. A target attribute cannot be both in attributes and in references.

Publication expressions read only the entity e; ref() and the other cross-entity functions are for computed attributes. Values of attributes listed in attributes.multi_valued are diffed value by value; other attributes are replaced.

DN template

  • {attr} is replaced by the value of an exported attribute or a dn_attributes entry, escaped for an RDN (RFC 4514). Since 0.5.5 a number or a time is written as text, as it would be exported (0.5.4 took only text, and left such an entity without a DN, unexported without a word), and a placeholder matches an attribute's name without case.
  • {dn:attr} is replaced by a value that is itself a DN, or the RDNs of one, as it is. The value is checked to be a DN; one that is not leaves the entity unexported and counts as a rule error. The dn: prefix ignores case.
  • Every placeholder must name an exported attribute or a dn_attributes entry. A name cannot be both.
dn: uid={uid},{dn:container}
dn_attributes:
  container: '"ou=" + escapeRdn(e.department) + ",ou=People,dc=example,dc=com"'
create_containers: true

A changed DN value moves the entry (a modify DN), so it keeps its identity. With create_containers, the missing parents are created with the class their RDN calls for:

RDN Object class
ou= organizationalUnit
o= organization
l= locality
dc= domain
c= country
cn= container (Active Directory targets only)

Up to 16 levels are created. Any other RDN type fails the export with a dead letter.

syncd records every container it creates, per target, whether or not remove_empty_containers is set. With it set, a container is deleted once an entry that syncd moves or deletes leaves it empty, deepest first and after the rest of the batch is written, so a container another entry moves into is kept. A container syncd did not create, or one that still holds anything (entries syncd does not manage, or those of other publications), is never deleted. A failure to delete one is logged and fails no export. It is off by default because an empty OU can still matter: delegated rights on it, or Group Policy linked to it on Active Directory.

  • Containers created before 0.3.0, or by an export that then failed, are not recorded, so they are never removed.
  • Containers left empty by someone else moving or deleting entries in the target stay.
  • syncd simulate does not show container removals.

Deprovisioning

Value What happens to an entry whose entity leaves scope or is deleted
delete The entry is deleted.
{ move_to: <DN> } The entry is moved under this fixed container.
disown The entry is left in place and no longer managed.
disable The account is disabled and the entry kept and managed. An entity that comes back into scope is enabled again.
{ disable_and_move_to: <DN> } The account is disabled and moved under this fixed container.
{ disable_after, strip_groups_after, move_to, delete_after } A staged policy, below.

The containers must be fixed DNs (no placeholders). disable, disable_and_move_to and a staged disable_after need a target that knows how to disable an account: an active_directory connector, an ldap connector with a profile, a scim target (active: false) or an entra target (accountEnabled: false). See Target profiles. SCIM and Entra targets cannot move entries, so move_to and disable_and_move_to are refused for them.

deprovision: { disable_and_move_to: "OU=Disabled,OU=Synced,DC=corp,DC=example,DC=com" }

Staged leaver policy

Each stage is a span after the entity left scope or was deleted. The clocks are kept in the engine's store, never written to the target. An entity that comes back cancels what is still to come and is moved back, enabled and put back in its groups. See Staged leaver policy.

Key What
disable_after Disable the account, the way the target does it.
strip_groups_after Take the entry out of every group syncd manages: the publication's computed groups, and the reference attributes of other publications that list it.
move_to Move the entry under this fixed container, with the first of the two stages above, or at once when neither is set.
delete_after Delete the entry. The deletion threshold still applies. Must not come before disable_after or strip_groups_after.
strip_unmanaged_groups Since 0.5.0, with strip_groups_after: also take the entry out of the groups in the target that syncd does not manage (made by hand, by another tool), except keep_groups and the computed groups of the publications to the same target. LDAP and Active Directory targets. Off by default: those memberships stay. A group that cannot lose its last member (a groupOfNames) is left as it is, with a warning.
keep_groups Since 0.5.0, with strip_unmanaged_groups: groups it never touches, each a group's DN or a container whose groups are all kept.

At least one stage is required.

deprovision:
  disable_after: 0d
  strip_groups_after: 7d
  strip_unmanaged_groups: true
  keep_groups: ["OU=Distribution Lists,DC=corp,DC=example,DC=com"]
  move_to: "OU=Leavers,DC=corp,DC=example,DC=com"
  delete_after: 90d

Since 0.5.0, an entity added at the DN of a leaver's disabled entry (a person who comes back under a new HR record) takes the entry over and enables it; 0.4.1 converged onto it and left it disabled. A leaver moved aside is not taken over. Stripping unmanaged groups was tested on OpenLDAP only.

Change safety

Changes that wait are held. A held change is never replayed: when its hold ends, the entity is planned again from its current state. See Change safety and lifecycle for how holds end and how to approve them.

Key Type Default What
change_window.allow list empty (always open) Change windows: when changes may be applied: entries such as "Mon-Fri 18:00-06:00", "Sat", "22:00-04:00". Days are English names or their first three letters; a range of days may wrap the week. Times are HH:MM or HH:MM:SS; 24:00 ends a day; a time range past midnight runs into the next day.
change_window.timezone IANA name UTC The time zone of allow. The window keeps its local times across clock changes.
change_window.immediate list [disable, password] Kinds of change applied at once even outside the window: add, modify, move, delete, disable, strip_groups, password. Captured passwords are never held, whatever this says.
change_window.max_delay span unset A change held longer than this is overdue.
change_window.on_overdue apply, hold apply An overdue change is applied anyway, or held for syncd approve. hold needs max_delay.
modification_threshold { percent, count } unset Thresholds: a pass (or a stream of small batches) that modifies or moves more existing entries than this has its modifications held until syncd approve or a pass under the threshold. percent is 0 to 100.
add_threshold { percent, count } unset The same for adds, as a share of the entries exported.
canary.count, canary.percent integer, number Canary publishing: how many entities go first, in order of entity id: a count, or a share of the publication's exported entries (whichever is larger when both are set). At least one is required.
canary.soak span required How long the first entities are watched (dead letters, drift) before the rest follow. Longer than 0s. If any goes wrong, the rest becomes canary_failed and needs an approval.
canary.on { percent, count } every pass Only a pass that changes more than this gets a canary.
mode apply, report apply Report mode: the publication is planned on every pass and nothing is written. Each plan is recorded as a would-do; switching to apply makes the next reconciliation apply them.
change_window:
  timezone: Europe/London
  allow: ["Mon-Fri 18:00-06:00", "Sat", "Sun"]
  max_delay: 2d
modification_threshold: { percent: 10, count: 500 }
add_threshold: { count: 200 }
canary: { count: 10, soak: 30m, on: { count: 100 } }

Since 0.5.0 held changes are kept in the engine's store and only counted in memory per publication (40 MiB less at 475,000 held changes; passes over such a publication 18 to 35 % slower, measured on a debug build). A canary's drift check follows the publication's drift policy, reverts included.

Computed groups (groups)

A group entry kept in the target with every exported entry of the publication that matches a predicate as a member.

Key Type Default What
name text required Unique within the publication.
filter CEL over e required Who is a member: e.department == "Engineering". Since 0.5.5 a filter that fails on an entity keeps its membership as it was, and an attribute it reads that the view never sets is warned about.
dn DN required The group entry's fixed DN (no placeholders). For SCIM and Entra targets, displayName=<name>.
object_classes list [groupOfNames]
member_attribute text member The attribute holding member DNs. members for SCIM and Entra targets.
attributes map empty Other attributes of the group entry, with literal values. Must not set the member attribute, objectClass or the owner attribute.
when_empty delete, keep delete delete removes an empty group and adds it again with its first member (groupOfNames must have a member). keep keeps it with no members, for classes that allow that, such as Active Directory's group, or with placeholder_member.
manual_members revert, keep, report group_policy's, else revert A member added in the target that the filter does not give: removed, kept (and counted), or kept and counted as drift.
owner DN unset The group's owner, written with the members.
owner_from CEL over group unset Instead of owner: an expression over group.name, group.dn and group.members. No lookup tables.
owner_attribute text group_policy's, else owner The attribute the owner is written to. Not the member attribute or objectClass.
expires date unset When the group expires: 2027-01-01 (midnight UTC) or an RFC 3339 timestamp.
expires_after span group_policy's Instead of expires: this long after syncd created the group, or after its last review.
on_expiry report, empty, delete group_policy's, else report At expiry: report it, remove every member, or delete the entry. Needs an expiry. delete needs a deprovision that deletes (delete, or a staged delete_after) and is subject to the deletion threshold.
review_every span group_policy's, else never A review is due this long after creation or the last review (syncd group review, the console's Review button).
reviewers list of mail addresses group_policy's Since 0.5.0. Who the console mails when the group's review falls due (with its mail settings, to domains in CONSOLE_REPORTS_RECIPIENT_DOMAINS). Needs review_every.
placeholder_member DN group_policy's Since 0.5.0. A member written to the group while it has no other, when its entry is kept (an expired group with on_expiry: empty, an empty one with when_empty: keep), for classes that must have a member (groupOfNames, groupOfUniqueNames). Taken out again with the first real member. A fixed DN. LDAP and Active Directory targets only: a SCIM or Entra group may be empty.
groups:
  - name: engineering
    filter: e.department == "Engineering"
    dn: cn=engineering,ou=Groups,dc=example,dc=com
    attributes: { description: Everyone in engineering }
    owner: uid=jlee,ou=People,dc=example,dc=com
    expires_after: 365d
    on_expiry: empty
    placeholder_member: cn=nobody,ou=Service,dc=example,dc=com
    review_every: 90d
    reviewers: [idm-team@example.com]

Groups whose members come from a group view in the source are published as an ordinary publication of that view, with the member attribute as a reference.

Group lifecycle

group_policy sets defaults for every computed group of the publication; a group's own setting wins. See Group lifecycle.

Key What
manual_members revert, keep or report.
owner_attribute The attribute owners are written to.
expires_after Span after creation or the last review.
on_expiry report, empty or delete.
review_every Span between reviews.
reviewers Mail addresses told when a review falls due. Since 0.5.0.
placeholder_member The member a kept group without members holds. Since 0.5.0.

Since 0.5.0 a due review reaches a person: a timer brings it due on time, the console mails the reviewers and sends the group.review-due webhook event (whether or not anyone is named), and the SyncdGroupReviewsDue alert fires; it also shows in the status, the metric and the console as before. Reviews are per group.

An on_expiry: empty or when_empty: keep group whose object class needs a member (groupOfNames, groupOfUniqueNames) and that has no placeholder_member is warned about at validation and at engine start, and dead-letters when the directory refuses to empty it. It is not refused yet; it will be an error in a later release.

Adopting existing entries (adopt)

Before adding the entry of an entity it has not exported yet, the writer looks under base for an entry whose match attributes have the values the entity exports. One found is moved to the entity's DN if it is elsewhere, given the publication's missing object classes and updated, and is managed like any exported entry from then on. More than one found fails the export (a dead letter naming them). Attributes the publication does not map are left as they are. Not for SCIM and Entra targets, which adopt a resource that already exists by themselves.

Key Type What
match list, required Exported target attributes that identify an existing entry (employeeNumber, sAMAccountName); all must match. Attributes the Active Directory conveniences write count.
base DN, required Where existing entries are looked for (subtree). A fixed DN.
filter LDAP filter Candidates must also match it, such as (objectClass=person).

Drift detection (drift)

The engine reads each exported entry back from the target and compares the attributes it manages with what it last wrote.

Key Type Default What
interval_secs integer engine.scrape_interval_secs Seconds between checks. syncd check-drift and the console check on demand.
default flag, revert, accept flag The policy for attributes not listed, and for missing entries (where accept counts as flag).
attributes map empty Exported target attribute to its policy. Attributes the Active Directory conveniences write count.
Policy What it does
flag Reports the change (status, entity history) and leaves it until the engine next writes the attribute.
revert Writes the engine's value back; a missing entry is added back.
accept Keeps the target's value until the value the engine computes changes. Attributes the DN is built from cannot be accepted and count as flag.
drift:
  interval_secs: 3600
  default: flag
  attributes: { title: revert, mail: accept }

Unmanaged entries (unmanaged)

Since 0.5.0. The engine lists the entries of the publication's object classes under its base (the fixed end of its dn, or the containers its entries are in) and reports those that no publication of the same target has exported: accounts made by hand, accounts older than syncd, service accounts. It also reports members of privileged groups that no rule accounts for. It reads the target and never writes to it. It runs after each scheduled drift check of a publication that has drift (with or without an unmanaged block), and on demand (syncd unmanaged); syncd adopt takes an entry over. LDAP and Active Directory targets, and the users of SCIM and Entra targets. See Reports, lineage and data quality. Running and adopting them is in the Operator guide.

Key Type Default What
scheduled boolean true false keeps the pass out of the drift check's schedule; syncd unmanaged --publication still runs it.
bases list of DNs what dn gives Subtrees to look in instead. Fixed DNs. LDAP and Active Directory only.
ignore list empty Entries left out of the findings (counted, not listed), and left out of privileged groups' members too: an LDAP filter in parentheses ((description=service account*)), or a DN pattern with * for any text (cn=svc-*,ou=People,dc=example,dc=com), compared without case. A SCIM or Entra target takes patterns only, for the user's name (svc-*@example.com).
privileged_groups list of DNs empty Groups of the target whose members must be accounted for: a member is accounted for when a computed group of this target puts it there, or when a publication of this target exports the group with that member. Every computed group with manual_members: report is looked at as well. In Active Directory, members through nested groups count. LDAP and Active Directory only.
unmanaged:
  ignore: ["(description=service account*)", "*,OU=Service Accounts,DC=corp,DC=example,DC=com"]
  privileged_groups: ["CN=Domain Admins,CN=Users,DC=corp,DC=example,DC=com"]

389 Directory Server and Ping were unit-tested only for this pass, and Entra ID and SCIM only against syncd's fakes.

Write-back (writeback)

After an outage of the target, the changes applications made in the target meanwhile are written back to an LDAP source, once the engine reaches the target again. Only modifies of the listed attributes are replayed, on the source entry each target entry came from. Adds, deletes and renames are reported, not replayed. An attribute the source also changed meanwhile keeps the source's value and is reported as a conflict.

Key Type What
source text, required An LDAP source connector of the publication's view.
object text Its object type, when the view reads more than one object from it.
attributes map, required Target attribute to source attribute. Not objectClass or dn.
changelog map, required The target's change log: { format: accesslog } or { format: changelog }, with optional base.

The target must have a change log, so write-back is refused for Active Directory, SCIM and Entra targets. See Connectors.

writeback:
  source: corp_ldap
  attributes:
    telephoneNumber: telephoneNumber
    mobile: mobile
  changelog: { format: accesslog }

Publication passwords

A publication's passwords says which passwords it delivers to its entries' accounts. See A publication's passwords block and Initial passwords, and for Active Directory accounts created with a password, Initial passwords on Active Directory.

Key Type Default What
from list empty Connectors of the view whose captured password changes this target receives. Never the publication's own target. May be empty when only initial is wanted.
write password_modify, replace password_modify How a directory other than Active Directory takes a password: the RFC 3062 Password Modify operation, or a userPassword replace. Active Directory always takes unicodePwd.
initial.from CEL over e The password a new entry is created with, read from the entity. An entity without a value is created without one.
initial.generate { length, classes } Instead of from: a random password, length 8 to 256 (default 16), with at least one character of each of the first classes of lower case, upper case, digits and other characters (1 to 4, default 4).
initial.must_change boolean false Active Directory only: pwdLastSet 0, so the person changes the password at the next logon.

passwords needs from or initial, and initial exactly one of from and generate. On an Active Directory target the connection must be ldaps:// or use starttls; a passwords block over plain ldap:// is refused when the configuration is validated. Since 0.5.0 the same holds for any other LDAP directory reached over ldap:// without starttls on another host (a loopback address and ldapi:// are exempt), unless the engine's passwords.allow_cleartext is true; Active Directory never takes passwords in the clear, whatever that says.

An initial password the directory refuses is tried again, up to three attempts with the add's, and then the entry is held in the dead-letter queue, where syncd retry tries once more (0.4.1 only logged it). See Initial passwords.

passwords:
  from: [corp_ad]
  initial:
    generate: { length: 16, classes: 4 }
    must_change: true

Active Directory conveniences

Publications to an active_directory target can say what they mean, and the engine writes the attributes. Each block stands for the target attributes it names; mapping the same attribute in attributes too is refused. See Active Directory conveniences.

Key Writes
exchange.proxy_addresses proxyAddresses from { primary, aliases, keep_existing }: CEL for the primary address and the aliases; one SMTP: primary and smtp: aliases. With keep_existing (default true) the attribute is diffed as a set, so addresses other tools put there stay.
exchange.mail_nickname, exchange.target_address mailNickname, targetAddress, from CEL.
account_control.flags userAccountControl: a list of flag names ([NORMAL_ACCOUNT, DONT_EXPIRE_PASSWORD]) or CEL giving an int. NORMAL_ACCOUNT when unset.
account_control.password_never_expires CEL giving a bool: sets or clears DONT_EXPIRE_PASSWORD.
account_control.must_change_password CEL giving a bool: pwdLastSet 0 when true, -1 when false.
home.directory, home.profile_path, home.script_path homeDirectory, profilePath, scriptPath, from CEL. No share is created.
home.drive homeDrive: a drive letter and a colon (H:), the same for everyone.
user_principal_name userPrincipalName from { from, suffix }: CEL for the part before the @, and a domain of the forest.
sam_account_name sAMAccountName from { from, max_length, on_conflict }: CEL for the login, cut to max_length (at most and by default 20).
sam_account_name.on_conflict Since 0.5.0. fail (the default): a duplicate is refused by the directory and dead-letters. unique: the second holder of a name gets a counter from 2, in place of the name's last characters when both do not fit in max_length (jsmith, jsmith2). Needs a max_length of at least 2. See Unique sAMAccountName.

With on_conflict: unique the engine keeps each name in its store, as the entity attribute <publication>.sAMAccountName (a view's own computed attribute must not have that name), and claims it in one scope per target, so names are unique among the publications to one directory that use the option. A name stays while from gives the same value, and stays taken while its entry is in the directory, after the entity has gone (a disabled leaver's account) too. Names already written are claimed by their entries first, so turning the option on renames nobody who has one. Uniqueness is among what syncd claims: accounts syncd does not manage are not searched. Without the option, mint the login once as a computed attribute with unique(), as before.

SCIM and Entra ID publications

A SCIM or Entra target names resources, not entries in a tree. See SCIM targets and Microsoft Entra ID.

  • external_id names the resource and replaces dn. dn, object_classes, create_containers, a deprovision that moves, writeback and adopt are refused.
  • resource is User or Group (SCIM also takes the provider's other resource types).
  • Entra: key is userPrincipalName or employeeId. licenses takes assign (CEL giving SKU part numbers, such as ["ENTERPRISEPACK"]) and disabled_plans (service plan names turned off in each); it writes assignedLicenses, which must not also be in attributes.
  • Computed groups are named displayName=<name> and their member attribute is members.
  • resource, external_id, key and licenses are refused on directory targets.
- name: contractors_to_entra
  view: contractors
  target: entra
  external_id: e.upn
  attributes:
    displayName: e.cn
    usageLocation: '"US"'
    accountEnabled: e.active
  licenses: { assign: '["ENTERPRISEPACK"]', disabled_plans: [YAMMER_ENTERPRISE] }
  deprovision: disable

Passwords (passwords)

The engine's side of password synchronisation. Delivery is on when at least one publication has passwords. See The engine's passwords block, Capture agents and People changing their own password.

Key Type Default What
key_file path password.key in the data directory The engine's password key, created on first start, readable by the engine's user only (mode 0600). With ingest, the capture agents' CA key (password-agent-ca.key) is kept in the same directory. Both are sealed with a passphrase when SYNCD_PASSWORD_KEY_PASSPHRASE_FILE is set, and in the clear otherwise; backups and HA snapshots carry them as they are on disk. Since 0.5.1 host-only: a configuration sent through the control API that changes it is refused, and an HA swap installs the keys a snapshot carries where it says.
ttl_secs integer 86400 How long a captured change may wait, sealed, for its account to be provisioned or its target to answer. Then it is dropped and counted as failed. At least 1.
ingest.listen host:port Where capture agents enroll and submit changes: a listener of its own, with mutual TLS against the engine's agent CA. Off unless ingest is set. Needs a publication that delivers passwords.
ingest.names list required with ingest Host names and addresses agents reach the listener by; its certificate is issued for them.
ingest.agent_cert_days integer 365 How long an agent's certificate is valid; it enrolls again after that.
self_service.source text The LDAP or Active Directory source people sign in to on the console's self-service page. A publication must take passwords from it.
self_service.object text Its object type whose entries are the people.
self_service.login text The attribute people type as their user name (uid, sAMAccountName, mail).
self_service.min_length integer 12 The shortest new password. At least 8.
self_service.min_classes integer 3 How many of lower case, upper case, digits and other characters it needs. At most 4.
allow_cleartext boolean false Since 0.5.0. Let passwords go to an LDAP directory in the clear: one reached with ldap:// and without starttls, beyond this host. Without it, such a directory is refused as a target of password delivery and of initial passwords, and as the self-service source. Active Directory never takes passwords in the clear.
rotation_overlap_days integer 7 Since 0.5.0. After a rotation (syncd password rotate-key, rotate-agent-ca), how many days the replaced password key keeps opening what was sealed to it, and the replaced agent CA stays trusted, before the engine retires them. At least 1, and no shorter than ttl_secs.
passwords:
  ttl_secs: 86400
  ingest:
    listen: 0.0.0.0:7444
    names: [syncd.corp.example.com]
  self_service:
    source: corp_ldap
    object: person
    login: uid

The console's self-service page also needs CONSOLE_SELF_SERVICE_ENGINE, and since 0.4.1 shows the engine's min_length and min_classes.

Sealing the keys. Without a passphrase the two key files are plain, protected by their mode only: the engine warns at start that the password keys are stored in the clear, and syncd status says password keys: stored in the clear. Set SYNCD_PASSWORD_KEY_PASSPHRASE_FILE to a file holding a passphrase (in /etc/syncd/engine.env, or engine.passwordKeyPassphrase in the Helm chart) and restart: both files are sealed in place with the same keys (PBKDF2-HMAC-SHA256 with 600,000 iterations, AES-256-GCM). A sealed file without the passphrase, or with another one, stops the engine with an error naming the variable. Both engines of an HA pair, and a restore, need the passphrase the keys were sealed with; a lost one cannot be recovered. syncd 0.4.0 cannot open sealed keys: before rolling back, put back the plain files from the upgrade's backup. See Password synchronisation.

Since 0.5.0:

  • The passphrase can be wrapped by a KMS. With SYNCD_PASSWORD_KEY_PASSPHRASE_KMS naming a key (awskms:..., azurekv:... or vaulttransit:<mount>/<key>), the passphrase file holds the passphrase wrapped by it (syncd secrets wrap makes it), and the passphrase itself exists only in the engine's memory. A KMS that cannot be asked stops the engine; there is no fallback.
  • Keys rotate. syncd password rekey changes the passphrase, rotate-key keeps a ring of password keys (files password.key.<id>) and retires the replaced one after rotation_overlap_days, and rotate-agent-ca replaces the agent CA with the same overlap; agents renew their certificates by themselves. Nothing rotates keys on a schedule. A 0.4.1 engine ignores previous password keys and a previous agent CA: rotate nothing before you are sure of the upgrade.

See Password synchronisation for the commands.

Schedules

An object's schedule is a cron expression of five fields: minute, hour, day of month, month, day of week.

  • Each field takes *, a number, a range (1-5), a step (*/15, 9-17/2, 5/20) and lists of those (0,30).
  • Months and days of the week also take their names (jan to dec, sun to sat). Day of the week 0 or 7 is Sunday.
  • Shorthands: @hourly, @daily (or @midnight), @weekly, @monthly, @yearly (or @annually).
  • When both the day of month and the day of week are restricted, a day matching either matches, as in cron; otherwise a day must match both. Since 0.5.5 a step in a day field counts (*/2 in the day of month is every other day); 0.5.4 read it as * and fired every day.
  • Times are local to schedule_zone (UTC by default). A time a clock change skips does not happen that day; a time that happens twice happens once, the first time.
  • A schedule that never fires (0 0 30 2 *) is refused, and every mistake names its field.

When reads run:

  • an object never read, or one whose scheduled time passed while the engine was stopped, reads at once when the engine starts;
  • a read still running at a scheduled time skips it;
  • syncd run --once reads at once, whatever the schedule.
objects:
  - type: person
    anchor: id
    table: people
    schedule: "0 2 * * *"          # 02:00 every day
    schedule_zone: Europe/Paris
  - type: contractor
    anchor: id
    table: contractors
    mode: delta
    watermark: updated_at
    interval_secs: 300             # what changed, every 5 minutes
    schedule: "30 1 * * sun"       # in full, Sunday 01:30

Export reconciliations and drift checks run on intervals (reconcile_interval_secs, drift.interval_secs), not on cron schedules. Change windows use their own format; see Change safety.

Validation rules

syncd validate and the console report every problem at once. 0.5.1 refuses some configurations 0.5.0 accepted (the items marked "since 0.5.1" below): check yours with the new binary's syncd validate before the upgrade. 0.5.2 and 0.5.4 refuse nothing new; 0.5.4 adds two warnings (below). 0.5.5 refuses a little more (marked "since 0.5.5") and warns about more; 0.6.0 adds the rules of the dsml type; 0.6.1 changes nothing. Beyond the per-key rules above, a configuration is refused when:

  • version is not 1;
  • since 0.5.1, two computed attributes of a view, two flows of one source, or two attributes of a publication have names that differ only in case;
  • api.listen is not an address and port, or is not on loopback and tls is not set; api.access has identity lists without mode: strict, or an entry that is not an identity;
  • engine.reconcile_interval_secs is 0 or engine.cache_mb is above 32768; engine.require_signed_config is set without engine.config_signing_keys; engine.wasm_functions is out of range;
  • engine.backup or engine.ha has a value out of range (an interval, a to that is not a directory or s3:// URL, a lease without its url or path), a kubernetes lease has a name or namespace Kubernetes would refuse, or lease.name or lease.namespace is set on another kind of lease;
  • passwords.rotation_overlap_days is 0 or shorter than ttl_secs;
  • a connector's connection settings do not match its type, or an object's source (table, query, base, collection, file) does not fit the connector type;
  • a csv connector has no object, a typed column has an unknown type, an object's anchor is not one of columns, a file without a header has no columns, or an object is not mode: scrape;
  • since 0.6.0, a dsml connector has no location, an sftp:// location without sftp settings (or sftp settings on a local one), no host_keys, not exactly one of password and private_key, a private_key_passphrase without a key, a timeout_secs, poll_secs or max_bytes of 0, a prefix that is not letters, digits, -, _ and . (or starts with .), a pattern that is not a glob over file names, or an object that is not mode: stream; or a publication to a dsml target has drift, unmanaged, writeback, adopt, create_containers, remove_empty_containers, strip_unmanaged_groups or passwords, or disables accounts while the connector has no profile;
  • a scim connector has objects, or its auth does not have exactly one way, or its oauth2 not exactly one of client_secret and private_key_jwt; an entra connector's auth does not have exactly one way of signing in, or a certificate without its key (or the other way round), or an object that is not user or group with anchor: id and mode: stream; a base_url, token_url or endpoint beyond loopback is not https://;
  • an LDAP connector has ca_file with neither an ldaps:// URL nor starttls;
  • a REST connector's auth has more than one of token, basic and oauth2, or the grant lacks what it needs (a refresh_token, a jwt_bearer, a saml_bearer); a workday connection has no tenant, a successfactors one no company_id, a ukg one no auth.api_key; a REST object is streamed, has a JSON path the reader does not understand, an anchor that is not one of its fields, mode: delta without rest.delta (or a delta.query without {since}), or deletes without mode: delta; a rest block is on another type of connector;
  • a streamed database table or query object has no cdc, or a streamed query object has no cdc.watch;
  • a delta database or MongoDB object has no watermark; watermark or full_interval_secs is set on an object that is not delta; interval_secs is set on a stream; an interval is 0;
  • a debezium object is not mode: stream, or a jdbc object is;
  • schedule is set on a stream, together with the interval it replaces, or schedule_zone is set without it;
  • container_check_secs is set on an object that is not an LDAP or Active Directory object read with mode: stream or delta;
  • a view has no source that projects, a source neither projects nor joins, a join rule mixes entity/source with all, precedence names a connector (or, since 0.5.5, a connector/object) that is not a source, or since 0.5.5 precedence.attributes lists an attribute twice (names ignore case), or a reference names an unknown view; correlation.other_views names the view itself, an unknown view, or a view twice;
  • a computed attribute uses on_error: default without default, or has permanent without mode: assign_once, or with a key that is not another attribute of the view;
  • a quality check has both or neither of check and unique, a unique check does not only report, or skip_publication names a publication of another view; a correlation hint's weight or accept_at is out of range;
  • a publication names an unknown view or a target that cannot be written to, its DN template uses an unknown placeholder (since 0.5.5 matched without case, as the DN is rendered), object_classes is empty for a directory, a group's DN is not fixed, a drift policy names an attribute it does not export, adopt.match names one it does not export, or remove_empty_containers is set without create_containers;
  • a change window does not parse, on_overdue: hold has no max_delay, a threshold has neither percent nor count or a percent outside 0 to 100 (since 0.5.1 the deletion_threshold of a publication or a connector too), or a canary has no count or percent or a soak of 0s;
  • a staged deprovision has no stage or a stage after delete_after, or strip_unmanaged_groups without strip_groups_after or on a target that is not LDAP or Active Directory, or keep_groups without strip_unmanaged_groups; a group sets both expires and expires_after, or both owner and owner_from, or on_expiry: delete with a deprovision that never deletes, or reviewers that are not mail addresses or without review_every, or a placeholder_member that is not a fixed DN or is on a SCIM or Entra target;
  • an unmanaged block has an empty or unbalanced ignore entry, a filter for a SCIM or Entra target, or bases and privileged_groups that are not fixed DNs or are on a SCIM or Entra target;
  • a publication's passwords takes them from a connector that is not a source of its view, or from its own target, or writes to Active Directory over plain ldap://, or (without passwords.allow_cleartext) to another directory over ldap:// without starttls beyond this host; the self-service source is such a directory; must_change is set for a target that is not Active Directory;
  • an Active Directory convenience is set on another target, or writes an attribute the publication also maps; a flag name is unknown; sam_account_name.on_conflict: unique has a max_length under 2, or its view has a computed attribute named <publication>.sAMAccountName;
  • a SCIM or Entra publication has no external_id, or has dn, object_classes, containers, a moving deprovision, writeback or adopt;
  • a package is listed twice, has a bad version or pin, or a requires the listed version does not meet; its wasm module is not pinned by a SHA-256, does not match it, is larger than 1 MiB, or cannot be read;
  • in the console (and, for an engine without a console, at ApplyConfig) since 0.5.0: a connector type or a feature whose pack the license does not include, named with its pack;
  • in the console since 0.5.1: a package whose module is written into the YAML (packages[].wasm.module) instead of read from its file or the console's module store, where it is uploaded and approved;
  • through the control API since 0.5.1: a configuration that changes passwords.key_file, like the other host-only settings;
  • every expression is also compiled: syntax and type errors, unknown functions, unique() outside computed attributes (since 0.5.1 in publication filters, attributes and DN attributes, group filters and owner_from, passwords.initial.from and correlation hints too), more than one unique() scope in one computed attribute, package functions called with the wrong arguments or calling themselves, cycles between computed attributes, and since 0.5.1 an expression nested deeper than 200 levels, with an operator chain longer than 400 terms, or of more than 100,000 parts once package functions are expanded (see Size limits).

Some mistakes are warnings, not errors: the configuration is accepted, and syncd validate, the reply to apply-config, the log at start and the console's check report them (see Warnings in Changing the configuration). Since 0.5.4 two of them concern rules that read other entities:

  • a reference attribute that no flow or computed attribute of its view sets, so it points at nothing and ref(), refs() and referrers() find nothing through it: view V: reference R: e.R is not set by any flow or computed attribute of view V; it points at no entity;
  • an attribute that a computed attribute or a quality check reads of another view's entities, and that no flow or computed attribute of that view sets (the groups' dn in referrers(e, "member").map(g, g.dn), with no dn flowed into the groups' view): view V: computed A: reads X of view W's entities, which no flow or computed attribute of that view sets; it reads as absent (quality Q for a check).

Both left a computed memberOf empty without a word before 0.5.4; see Computing memberOf from groups.

Since 0.5.5 a computed group's filter is checked as a publication's is: an attribute it reads that no flow or computed attribute of the view sets, or a lookup table the view does not have, is warned about (publication P: group G filter: e.X is not set by any flow or computed attribute of view V; it reads as absent), since such a group stays empty. An attribute listed only in attributes.multi_valued no longer counts as set, so a misspelt name there no longer hides the warning.

Engine environment variables and options

The syncd command reads these; a flag wins over its variable.

Variable Flag Default What
SYNCD_CONFIG -c, --config ./syncd.yaml, else /etc/syncd/engine/engine.yaml The configuration file.
SYNCD_ENV_FILE --env-file /etc/syncd/engine.env with the packaged configuration Environment file with the secrets the configuration refers to. Variables already set win.
SYNCD_ENVIRONMENT --env unset An environment file (environment: prod, values: {...}) that fills the configuration's {{ env.<name> }} placeholders. The daemon renders the configuration with it at every start; validate, simulate, apply-config and config diff render what they read. See Configuration as code.
SYNCD_INITIAL_CONFIG --initial-config unset When the configuration file does not exist yet, create it as a copy of this one. The container image uses it to seed a configuration on the data volume from a read-only file.
SYNCD_DATA_DIR --data-dir engine.data_dir Overrides the data directory.
SYNCD_FIPS_MODE --fips off Use the FIPS 140-3 crypto provider; set to true. Requires a FIPS build: the standard builds and images refuse it. See FIPS 140-3 and STIG.
SYNCD_FIPS_ALLOW_WASM_FUNCTIONS --fips-allow-wasm-functions off Since 0.5.0. In FIPS mode, load rule packages' custom functions in WebAssembly anyway. Refused there by default: a module's code runs outside the validated module.
SYNCD_API --api api.control_socket if it exists here, else api.listen How commands reach the running engine: host:port, or unix:/path.
SYNCD_API_CA --api-ca ca.crt next to api.tls.client_ca_file, else that file CA that signed the API's certificate.
SYNCD_API_CERT --api-cert cli.crt, else client.crt, next to api.tls.client_ca_file Client certificate for mutual TLS.
SYNCD_API_KEY --api-key cli.key / client.key next to it The client certificate's private key file (not a token).
SYNCD_HA_NAME unset Sets engine.ha from the environment, with this pair name, when the file has none. Needs SYNCD_HA_LEASE_KIND=kubernetes, SYNCD_HA_LEASE_URL or SYNCD_HA_LEASE_PATH.
SYNCD_HA_LEASE_KIND what the other variables name Since 0.5.0. With SYNCD_HA_NAME: kubernetes, postgres or file.
SYNCD_HA_LEASE_URL unset With SYNCD_HA_NAME: a PostgreSQL lease at this URL.
SYNCD_HA_LEASE_PATH unset With SYNCD_HA_NAME: a file lease at this path, when there is no URL.
SYNCD_HA_LEASE_NAME, SYNCD_HA_LEASE_NAMESPACE the pair's name, the pod's namespace Since 0.5.0. With SYNCD_HA_LEASE_KIND=kubernetes: lease.name and lease.namespace.
SYNCD_HA_LEASE_TTL_SECS 15 With SYNCD_HA_NAME: lease.ttl_secs.
SYNCD_HA_SNAPSHOT_EVERY_SECS 60 (300 before 0.5.0) With SYNCD_HA_NAME: snapshot_every_secs. A pair set up by syncdctl ha init before 0.5.0 has 300 in engine.env, which is kept.
SYNCD_HA_PASSWORD_REPLICATION_WAIT_MS 2000 Since 0.5.0. With SYNCD_HA_NAME: password_replication_wait_ms.
SYNCD_HA_MEMBER engine.ha.member, else the host name This engine's name in the pair. When set and not empty it overrides engine.ha.member (since 0.4.1; 0.4.0 used the file's value first).
SYNCD_HA_ADVERTISE engine.ha.advertise, else api.listen Where the other engine reaches this one. When set and not empty it overrides engine.ha.advertise (since 0.4.1).
SYNCD_PASSWORD_KEY_PASSPHRASE_FILE unset A file holding the passphrase the password key and the agent CA key are sealed with (line breaks at its end are not part of it). Unset: the keys are stored in the clear, with a warning. See Passwords.
SYNCD_PASSWORD_KEY_PASSPHRASE unset The passphrase itself, read only when SYNCD_PASSWORD_KEY_PASSPHRASE_FILE is not set: for tests and containers that cannot mount a file. Prefer the file.
SYNCD_PASSWORD_KEY_PASSPHRASE_KMS unset Since 0.5.0. The KMS key the passphrase file is wrapped with: awskms:<key id, ARN or alias>[?region=...], azurekv:https://<vault>.vault.azure.net/keys/<name>, or vaulttransit:<mount>/<key>. The file then holds the wrapped passphrase (syncd secrets wrap).
VAULT_ADDR, VAULT_NAMESPACE, VAULT_CACERT unset Since 0.5.0. Where Vault is, its Enterprise namespace and the CA its certificate chains to, for vault references and vaulttransit: keys that do not say.
SYNCD_VAULT_TOKEN_FILE unset Since 0.5.0. Sign in to Vault with the token in this file (a Vault Agent's sink), read at each login.
SYNCD_VAULT_ROLE_ID, SYNCD_VAULT_SECRET_ID_FILE unset Since 0.5.0. Or with AppRole: the role id, and a file holding the secret id.
SYNCD_VAULT_KUBERNETES_ROLE unset Since 0.5.0. Or with Kubernetes auth: the Vault role, with the pod's service-account token.
SYNCD_VAULT_AUTH_MOUNT approle, kubernetes Since 0.5.0. Another mount for the auth method.
AZURE_FEDERATED_TOKEN_FILE, AZURE_CLIENT_ID, AZURE_TENANT_ID unset Since 0.5.0. A federated token (AKS workload identity) for azure_keyvault references and azurekv: keys, else the VM's managed identity is used. The first two also serve an Entra connector with workload_identity: true.
SYNCD_CONSOLE --console unset syncd config promote: the console's address.
SYNCD_CONSOLE_TOKEN_FILE --token-file unset syncd config promote: a file holding an API token with configs:publish.
SYNCD_AGENT_TOKEN --token unset syncd password agent enroll: the one-time token syncd password agent add printed.
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN unset AWS credentials: for S3 backups and, since 0.5.0, aws_secret references and awskms: keys.
AWS_WEB_IDENTITY_TOKEN_FILE, AWS_ROLE_ARN, AWS_ROLE_SESSION_NAME unset AWS credentials from a Kubernetes service account token exchanged with STS (IRSA, EKS Pod Identity). AWS_ENDPOINT_URL_STS names another STS endpoint.
AWS_SHARED_CREDENTIALS_FILE, AWS_PROFILE ~/.aws/credentials, default AWS credentials from a credentials file, when none of the above is set. Since 0.5.0, last of all, the EC2 instance's role (the instance metadata service).
AWS_EC2_METADATA_DISABLED unset Since 0.5.0. true skips the instance's role: off EC2 with no other credentials, the error then comes at once instead of after a short wait.
AWS_REGION, AWS_DEFAULT_REGION us-east-1 The bucket's region, when engine.backup.region is not set; the region of an aws_secret without its own.
AWS_ENDPOINT_URL_S3, AWS_ENDPOINT_URL AWS An S3-compatible endpoint, when engine.backup.endpoint is not set.
RUST_LOG info Log level filter (debug, syncd=debug).

Any other variable in engine.env is there for { env: NAME } references.

Console settings

The console reads its settings from environment variables, or from the matching flags of syncd-console serve; syncd-console --help lists them. On a package install they live in /etc/syncd/console.env; the syncd-console unit also sets CONSOLE_DATA_DIR and CONSOLE_UI_DIR.

Variable Flag Default What
CONSOLE_DATABASE_URL --database-url required PostgreSQL connection string for the console database. The installer fills it in.
CONSOLE_LISTEN --listen 127.0.0.1:8080 Where the console listens. It serves plain HTTP unless CONSOLE_TLS_CERT is set. For access from other machines it needs HTTPS: its own, or a TLS reverse proxy in front of it.
CONSOLE_TLS_CERT --tls-cert unset Serve HTTPS with this certificate: a PEM file, the certificate followed by its chain. Needs CONSOLE_TLS_KEY. Readable by syncd-console.
CONSOLE_TLS_KEY --tls-key unset The certificate's private key, PEM. Needs CONSOLE_TLS_CERT.
CONSOLE_DATA_DIR --data-dir ./console-data; the unit sets /var/lib/syncd/console Local files: the master key, the initial admin password, and with Git sync the clone (git/).
CONSOLE_UI_DIR --ui-dir unset; the unit sets /opt/syncd/current/share/console-ui The built web UI, served at /. Without it only the API is served.
CONSOLE_MASTER_KEY --master-key read from, or created in, <data dir>/master.key Master key for stored secrets (base64, 32 bytes). Back it up: stored secrets cannot be decrypted without it. The console refuses to start when the key does not open the secrets the database holds, or when master.key is missing while the database holds secrets. Since 0.5.0 the check tries one sealed secret of each kind (an engine's client key, a webhook's URL and signing secret, a secret environment value, the configuration signing key), not only the first one found, so a database with secrets sealed under two keys may now refuse to start, naming what the key does not open.
CONSOLE_MASTER_KEY_KMS --master-key-kms unset Since 0.5.0. The KMS key that wraps the master key (awskms:..., azurekv:... or vaulttransit:<mount>/<key>): master.key then holds the wrapped key (syncd-console admin wrap-master-key wraps a plain one in place), the console asks the KMS to unwrap it at every start, and does not start when the KMS cannot be asked.
CONSOLE_LICENSE_FILE --license-file unset Since 0.5.0. The license as a file instead of an upload on the License page (an air-gapped host, a Kubernetes Secret); read every few minutes, so a new file needs no restart. sudo syncdctl license install FILE sets it. See Licensing.
CONSOLE_NEW_MASTER_KEY --new-master-key off Set to true to start anyway when the master key does not open the stored secrets, creating a new key if there is none. Those secrets are lost: every engine registered with mutual TLS must be registered again (syncd-console admin register-engine --update), webhooks need their URL and secret again, and secret environment values must be entered again. Only for starting over on purpose; restore master.key instead when you can.
CONSOLE_ADMIN_PASSWORD --admin-password generated Initial admin password for a production install. admin and empty passwords are refused.
CONSOLE_ADMIN_PASSWORD_FILE --admin-password-file unset A file holding the initial admin password, instead.
CONSOLE_SESSION_IDLE_MINUTES --session-idle-minutes 30 Minutes a session stays valid without activity.
CONSOLE_SESSION_MAX_HOURS --session-max-hours 12 Hours a session stays valid at most.
CONSOLE_REVEAL_ROLES --reveal-roles admin Roles that may reveal sensitive attributes (each reveal is audited), comma-separated, or none. Since 0.5.0 an account reveals on an engine when one of its role assignments that reach the engine has such a role, and an entry can carry a scope: admin,auditor@prod (auditors on production's engines only), operator@engine:lab.
CONSOLE_TRUSTED_PROXIES --trusted-proxies empty Reverse proxies whose X-Forwarded-For names the client: addresses or CIDR ranges, comma-separated (127.0.0.1 for nginx on the same host). The client address goes to the audit log and the per-address sign-in limit. Only list proxies you run.
CONSOLE_PUBLIC_URL --public-url unset The console's address as users reach it, through the proxy (https://syncd.example.com). Needed for single sign-on; with an https:// value, the startup warning about plain-HTTP remote access is not shown.
CONSOLE_SELF_SERVICE_ENGINE --self-service-engine unset The registered engine (by name) that changes people's own passwords, for the public self-service page (/password). The page is off unless set; the engine needs passwords.self_service. When it names one engine of an HA pair, a change goes to the member that holds the lease (since 0.4.1). After syncd-console admin rename-engine, change it by hand; since 0.5.0 the console warns at start, at rename-engine and on the Engines page when it names no registered engine (as for CONSOLE_CONFIG_GIT_ENGINES). See Password synchronisation.
SYNC_DEV_MODE --dev off Development mode: admin/admin is allowed, the password change can be skipped, cookies work over plain HTTP, and the UI shows a warning banner. Never in production. Note the name: SYNC_, not SYNCD_.
SYNCD_FIPS_MODE --fips off Use the FIPS 140-3 crypto provider; passwords are hashed with PBKDF2 instead of Argon2id.
SYNCD_FIPS_ALLOW_WASM_FUNCTIONS --fips-allow-wasm-functions off Since 0.5.0. In FIPS mode, accept custom functions in WebAssembly anyway (uploads, previews, checks), as the engine's variable of the same name.
RUST_LOG info Log level filter.

Session cookies carry Secure outside development mode, so browsers send them over HTTPS, or to localhost, only. The console warns at startup when it listens beyond loopback over plain HTTP, with no certificate and no https:// CONSOLE_PUBLIC_URL. See Install for setting up its own HTTPS, and for the nginx configuration the packages ship.

With a certificate:

  • a certificate or key that does not load refuses the start;
  • the two files are checked every minute and read again when they change, so a renewal (certbot, cert-manager) takes effect without a restart. A renewal that does not load is logged, and the previous certificate kept;
  • each TLS handshake has 10 seconds, and a client that stalls holds up no other;
  • the console does not run as root, so on a package install it cannot listen on port 443 itself: use a port such as 8443, or nginx in front.

The settings in the sections below are off, or at safe defaults, until set. Each has a flag named after it: drop CONSOLE_ or ENS_, lower-case it and use - for _ (ENS_AUDIT_FILE is --audit-file, CONSOLE_SMTP_HOST is --smtp-host), except ENS_X509_ENABLED (--x509) and ENS_CONSENT_BANNER_ENABLED (--consent-banner). Settings marked (hidden) are left out of --help. A setting that cannot work (a file that does not exist, a hook URL that is not https://) refuses the start with a message naming it.

Single sign-on

Single sign-on is OpenID Connect, off unless CONSOLE_OIDC_ISSUER is set, and since 0.5.0 also SAML 2.0 and client certificates, beside it or instead of it. See Single sign-on for setting them up.

Variable Flag Default What
CONSOLE_OIDC_ISSUER --oidc-issuer unset The provider's issuer URL (discovery at <issuer>/.well-known/openid-configuration). HTTPS unless on loopback. Turns single sign-on on.
CONSOLE_OIDC_CLIENT_ID --oidc-client-id unset The client id.
CONSOLE_OIDC_CLIENT_SECRET --oidc-client-secret unset The client secret.
CONSOLE_OIDC_CLIENT_SECRET_FILE --oidc-client-secret-file unset A file holding the client secret, instead.
CONSOLE_OIDC_SCOPES --oidc-scopes openid profile email Scopes requested. Add what your provider needs for the role claim.
CONSOLE_OIDC_ROLE_CLAIM --oidc-role-claim groups The ID token claim holding the user's groups or roles (a string or a list).
CONSOLE_OIDC_ROLE_MAP --oidc-role-map empty Claim values to console roles: syncd-admins=admin,syncd-designers=designer. Since 0.5.0 every entry that matches adds its role (in 0.4.1 the first match won), and a role can carry a scope: an environment (syncd-prod-ops=operator@prod) or engines (hr-team=designer@engine:hr-1,hr-2); without one it is on everything. Separate entries with ; when values contain commas (group DNs). An entry that cannot be read stops the console at start.
CONSOLE_OIDC_DEFAULT_ROLE --oidc-default-role unset Role for users no mapping matches, with a scope if wanted (viewer@test); unset, they are refused.
CONSOLE_OIDC_USERNAME_CLAIM --oidc-username-claim preferred_username The claim used as the console username; email, then sub, when it is missing.
CONSOLE_OIDC_LABEL --oidc-label single sign-on The sign-in button says "Sign in with
CONSOLE_OIDC_CA_FILE --oidc-ca-file unset PEM CA certificates for a provider without a public certificate.

The redirect URI to register with the provider is <CONSOLE_PUBLIC_URL>/api/v1/auth/oidc/callback.

Review role maps on upgrade. Since every matching entry now adds its role, someone in two mapped groups can hold more after their next sign-in than under 0.4.1. A map that relied on its order to hold someone to the first entry's role must be rewritten so that only that entry matches them. The same goes for the SAML and certificate role maps below.

SAML sign-in

Since 0.5.0. SAML 2.0 as a service provider (Web Browser SSO), off unless CONSOLE_SAML_IDP_METADATA_FILE or _URL is set. Needs CONSOLE_PUBLIC_URL (HTTPS, or loopback). The console's metadata is at <CONSOLE_PUBLIC_URL>/api/v1/auth/saml/metadata. The provider must sign the assertion or the response, must not encrypt the assertion and must not require signed requests; IdP-initiated sign-in and single logout are not supported. Tested against Keycloak only.

Variable Default What
CONSOLE_SAML_IDP_METADATA_FILE unset The provider's metadata, in a file. Turns SAML sign-in on. Read at start.
CONSOLE_SAML_IDP_METADATA_URL unset Or its URL: fetched at the first sign-in, every hour, and when a response verifies with none of the known certificates. HTTPS unless on loopback.
CONSOLE_SAML_IDP_ENTITY_ID unset The provider's entityID, when the metadata describes several.
CONSOLE_SAML_ENTITY_ID the metadata address The console's own entityID.
CONSOLE_SAML_ROLE_ATTRIBUTE groups The attribute, by its Name, with the user's groups.
CONSOLE_SAML_ROLE_MAP empty Attribute values to roles, as CONSOLE_OIDC_ROLE_MAP: every entry that matches adds its role, with an optional scope.
CONSOLE_SAML_DEFAULT_ROLE unset The role when nothing matches, with a scope if wanted; unset, such users are refused.
CONSOLE_SAML_USERNAME_ATTRIBUTE the NameID The attribute used as the console username.
CONSOLE_SAML_DISPLAY_NAME_ATTRIBUTE displayName The attribute with the person's name.
CONSOLE_SAML_LABEL SAML single sign-on The sign-in button says "Sign in with
CONSOLE_SAML_CA_FILE unset PEM CA certificates for the metadata URL.
CONSOLE_SAML_CLOCK_SKEW_SECONDS 60 How far the provider's clock may be off; at most 600.

Certificate sign-in (CAC/PIV)

Since 0.5.0. Sign-in with an X.509 client certificate, off unless ENS_X509_ENABLED is true. The console checks the path to an allowed issuer, then revocation (OCSP, then the CRL), and refuses a certificate whose status cannot be learned unless told otherwise. Tested with test PKIs only: no real CAC or PIV card, no DoD PKI, no nginx in front.

Variable Default What
ENS_X509_ENABLED false Offer certificate sign-in.
ENS_X509_MODE direct direct: browsers present the certificate to the console's own HTTPS (needs CONSOLE_TLS_CERT). proxy: a TLS proxy passes it in a header, believed only from ENS_X509_TRUSTED_PROXIES.
ENS_X509_CA_FILE required The allowed issuers, PEM.
ENS_X509_TRUSTED_PROXIES empty Proxy mode, required: the proxies whose header is believed (addresses or CIDR ranges).
ENS_X509_CERT_HEADER X-SSL-Client-Cert Proxy mode: the header holding the certificate.
ENS_X509_VERIFY_HEADER unset Proxy mode: a header that must say SUCCESS.
ENS_X509_USERNAME_RULE upn The console username: upn, edipi, cn or email.
ENS_X509_ROLE_MAP empty Certificates to roles: a value is the username, OU=..., O=... or issuer=... (OU=USAF=operator,1234567890=admin). Every entry that matches adds its role, with an optional scope.
ENS_X509_DEFAULT_ROLE unset The role when nothing matches; unset, such certificates are refused.
ENS_X509_REVOCATION ocsp,crl What is asked, in order: ocsp, crl, both, or none.
ENS_X509_REVOCATION_FAIL_OPEN false Accept a certificate whose status cannot be learned. A revoked one is refused either way.
ENS_X509_OCSP_URL, ENS_X509_CRL_URL unset A responder, or a CRL, to use instead of those the certificates name.
ENS_X509_OCSP_NONCE send send (and accept an answer without one), require, or off.
ENS_X509_CRL_CACHE 1h The longest a fetched CRL is used, never past its next update.
ENS_X509_CRL_MAX_BYTES 67108864 The largest CRL read.
ENS_X509_REVOCATION_TIMEOUT 10s How long a responder or CRL server may take.
ENS_X509_LABEL a certificate (CAC/PIV) The button says "Sign in with

Sign-in policy

Since 0.5.0, under the suite's ENS_* names. Unset, every setting keeps what the console did in 0.4.1, except HSTS: a console that serves HTTPS itself now sends Strict-Transport-Security by default. Users → Local sign-in shows what is in effect.

Variable Default What
ENS_CONSENT_BANNER_ENABLED false A notice that must be acknowledged before any sign-in, enforced by the server and audited with the session. Scripts that sign in with a password must first POST /api/v1/auth/consent.
ENS_CONSENT_BANNER_TEXT, ENS_CONSENT_BANNER_TEXT_FILE the DoD notice The notice's text, or a file holding it.
ENS_SESSION_MAX_PER_USER 0 (no limit) Sessions one account may have at a time; one more ends its oldest.
ENS_SESSION_ADMIN_IDLE_TIMEOUT unset Minutes an administrator's session stays valid without activity, when shorter than CONSOLE_SESSION_IDLE_MINUTES (10, 10m, 600s).
ENS_LOCKOUT_ATTEMPTS 5 Failed sign-ins after which a local account locks; 0 never locks.
ENS_LOCKOUT_WINDOW 0 The time those failures must fall within; 0: they count until a sign-in succeeds.
ENS_LOCKOUT_DURATION 15 How long the account stays locked (15, 15m, 1h); 0: until an administrator unlocks it.
ENS_PASSWORD_MIN_LENGTH 12 The fewest characters of a local password.
ENS_PASSWORD_MIN_UPPERCASE, _MIN_LOWERCASE, _MIN_DIGITS, _MIN_SPECIAL 0 The fewest characters of each kind.
ENS_PASSWORD_HISTORY 0 How many recent passwords, the current one included, a new one must differ from.
ENS_PASSWORD_MAX_AGE_DAYS 0 (never) Days after which a password must be changed at the next sign-in.
ENS_PASSWORD_REJECT_USERNAME false Refuse a password that contains the username.
ENS_HSTS_MAX_AGE 31536000 (a year) Strict-Transport-Security on the console's own HTTPS, in seconds; 0 sends none. Behind a proxy, the proxy sends it.
ENS_HSTS_INCLUDE_SUBDOMAINS false Add includeSubDomains.

The source repository's console/README.md ("Values for a STIG review") lists the values a review against the Application Security and Development STIG usually asks for; see also FIPS 140-3 and STIG.

Audit trail

The console keeps the suite's ens-audit/1 trail in its database and writes it to the outputs below as well. The settings are the family's ENS_AUDIT_*, the same in every product; Audit logging explains them.

Variable Default What
ENS_AUDIT_STDOUT true One JSON line per event on standard output: the journal, or the pod log. false turns it off.
ENS_AUDIT_FILE unset Also append each event to this file (/var/log/syncd/audit.jsonl), rotated daily or at ENS_AUDIT_FILE_MAX_BYTES.
ENS_AUDIT_FILE_KEEP 30 Days of rotated files to keep.
ENS_AUDIT_FILE_MAX_BYTES 104857600 (100 MB) (hidden) The size at which the file is rotated.
ENS_AUDIT_SPLUNK_URL unset Splunk HTTP Event Collector base URL, https://splunk.example.com:8088.
ENS_AUDIT_SPLUNK_TOKEN, ENS_AUDIT_SPLUNK_TOKEN_FILE unset The HEC token, or a file holding it.
ENS_AUDIT_SPLUNK_INDEX the token's default The index.
ENS_AUDIT_SPLUNK_SOURCETYPE ens:audit The sourcetype.
ENS_AUDIT_SPLUNK_INSECURE false Skip Splunk's certificate checks. Test systems only.
ENS_AUDIT_SYSLOG_HOST unset Syslog server (RFC 5424, the event JSON as the message).
ENS_AUDIT_SYSLOG_PORT 514, or 6514 for TLS
ENS_AUDIT_SYSLOG_PROTOCOL tcp udp, tcp or tls.
ENS_AUDIT_SYSLOG_FACILITY local0
ENS_AUDIT_RETENTION_DAYS 0 (keep forever) Remove events older than this, once every enabled output has delivered them; never the newest.
ENS_AUDIT_DELIVERY_ALERT_SECONDS 900 (hidden) How long an output may keep failing before audit.delivery-failed is recorded.

API tokens

API tokens (sdt_…) are made on the Integrations page. See API tokens.

Variable Default What
CONSOLE_API_TOKENS_ENABLED true false refuses every token, without deleting any.
CONSOLE_API_MAX_TOKEN_LIFETIME 365d The longest a token lives (<n>d, <n>h): the expiry of a token created without one, the most that may be asked for, and the age at which any token stops working. 0 removes the limit.
CONSOLE_API_REQUESTS_PER_MINUTE 300 Requests a token may make per minute; beyond it, 429 with Retry-After. 0 turns the limit off.
CONSOLE_API_SSO_CREATOR_MAX_IDLE 35d Since 0.5.1. A token whose creator signs in through single sign-on stops working (401) once the creator has not signed in for this long (<n>d, <n>h; counted from the token's creation at the earliest), and works again after their next sign-in: the console hears that the identity provider removed someone only at a sign-in. 0 turns it off.
CONSOLE_API_CREATOR_CACHE_SECONDS 60 (hidden) How long a check that the token's creator is still allowed is reused.

Webhooks

Signed HTTPS posts in JSON, Slack, Teams or PagerDuty format, added on the Integrations page. Nothing is sent until an administrator adds one. See Webhooks.

Variable Default What
CONSOLE_WEBHOOKS_ENABLED true false queues and posts nothing.
CONSOLE_WEBHOOKS_ALLOWED_HOSTS empty (any host the address rules allow) Hosts a webhook may go to: names, *.suffix or CIDR ranges, comma-separated. A host listed here may be on a private network.
CONSOLE_WEBHOOKS_BLOCK_PRIVATE_NETWORKS unset Private addresses (10/8, 172.16/12, 192.168/16, 100.64/10, fc00::/7). Unset: refused for webhooks saved from now on, while a webhook saved earlier keeps its address. true: refused for every webhook. false: allowed.
CONSOLE_WEBHOOKS_CA_FILE unset PEM CA certificates receivers may use besides the public roots. Since 0.5.1 webhooks and the pre-publish hook go straight to the address that was checked, never through a proxy named by HTTPS_PROXY or HTTP_PROXY.
CONSOLE_WEBHOOKS_QUALITY_ERRORS_RISE 10 Since 0.5.0. quality.errors is sent when a view's entities failing checks of severity error go from none to some, and again each time they rise by this many since last told; 0: only from none to some.
CONSOLE_WEBHOOKS_ALLOW_LOOPBACK false (hidden) Let webhooks go to loopback addresses. Test systems only.
CONSOLE_WEBHOOKS_POLL_SECONDS 30 (hidden) How often the sender looks for due deliveries.
CONSOLE_WEBHOOKS_WATCH_SECONDS 10 (hidden) How often the engines' status is read for state-change events.
CONSOLE_WEBHOOKS_CONNECT_TIMEOUT_SECONDS 5 (hidden)
CONSOLE_WEBHOOKS_READ_TIMEOUT_SECONDS 10 (hidden)
CONSOLE_WEBHOOKS_DELIVERY_TIMEOUT_SECONDS 30 (hidden) All of one try.
CONSOLE_WEBHOOKS_RUN_BUDGET_SECONDS 40 (hidden) A pass of the sender starts no try after this.
CONSOLE_WEBHOOKS_ENDPOINT_TRIES_PER_RUN 10 (hidden) Tries one endpoint gets in a pass.
CONSOLE_WEBHOOKS_ENDPOINT_BUDGET_SECONDS 20 (hidden) Time one endpoint gets in a pass.
CONSOLE_WEBHOOKS_RETRY_INITIAL_SECONDS 60 (hidden) The wait after the first failed try; doubled after each.
CONSOLE_WEBHOOKS_RETRY_MAX_SECONDS 3600 (hidden) The longest wait between tries.
CONSOLE_WEBHOOKS_GIVE_UP_AFTER_SECONDS 86400 (hidden) A delivery this old is given up (failed).
CONSOLE_WEBHOOKS_KEEP_DAYS 14 (hidden) Days delivered and failed deliveries are kept.

Pre-publish hook

A change-ticket reference each publish must carry, and a change-management system asked before each publish. See The pre-publish hook.

Variable Default What
CONSOLE_PUBLISH_TICKET_PATTERN unset A publish must carry a ticket matching this regular expression (^(CHG|INC)-[0-9]{4,}$).
CONSOLE_PUBLISH_HOOK_URL unset An https:// URL posted to before each publish, with a signed request; its answer allows or refuses the publish. Needs CONSOLE_PUBLISH_HOOK_SECRET_FILE.
CONSOLE_PUBLISH_HOOK_SECRET_FILE unset A file holding the secret the posts are signed with (X-Syncd-Signature), read at each use.
CONSOLE_PUBLISH_HOOK_TIMEOUT 10s How long the hook may take to answer (10s, 1m, or bare seconds).
CONSOLE_PUBLISH_HOOK_ON_ERROR refuse What a hook that fails means: refuse the publish (503), or allow it. Since 0.5.1 only a 2xx with {"decision":"allow"}, or an empty 2xx, allows, and only {"decision":"deny"} or a 4xx refuses; anything else (a timeout, a 5xx, another decision, a body that is not that JSON or not read whole) is the hook failing.

Git sync

Commits on a branch become configuration versions; versions saved in the console can be pushed back. Off unless CONSOLE_CONFIG_GIT_URL is set. Needs git on the host (the packages recommend it; the console image has it). See Git sync.

Variable Default What
CONSOLE_CONFIG_GIT_URL unset The repository: https://..., ssh://git@... (or git@host:path), or file://. Not plain http://. The console image cannot use file://.
CONSOLE_CONFIG_GIT_BRANCH main
CONSOLE_CONFIG_GIT_PATH syncd.yaml The configuration file, a relative path inside the repository.
CONSOLE_CONFIG_GIT_ENV_PATH unset A directory of environment files (<name>.env.yaml) in the repository. A file with a secret value is refused.
CONSOLE_CONFIG_GIT_SSH_KEY_FILE unset The private key for an ssh:// URL (a deploy key).
CONSOLE_CONFIG_GIT_TOKEN_FILE unset A file holding the token for an https:// URL. Not with SSH_KEY_FILE.
CONSOLE_CONFIG_GIT_KNOWN_HOSTS_FILE the user's default file The known_hosts file the server's SSH host key must be in (strict checking).
CONSOLE_CONFIG_GIT_POLL 60s How often the repository is fetched.
CONSOLE_CONFIG_GIT_AUTO_PUBLISH off What a new commit does besides becoming a version: off (a draft), validate (a draft with its test cases run) or publish (published when valid and approved).
CONSOLE_CONFIG_GIT_PUSH_BACK false Commit a version saved or published in the console to the branch, as the console user, and push it. A rejected push is reported, never forced.
CONSOLE_CONFIG_GIT_ENGINES every engine The engines the repository is for, by name, comma-separated. syncd-console admin rename-engine does not change it.
CONSOLE_CONFIG_GIT_BINARY git (hidden) The git program.

Exports and scheduled reports

Reconciliation reports are downloaded from the console or scheduled on its Reports page. See Scheduled reports and Settings.

Variable Default What
CONSOLE_EXPORTS_MAX_ROWS 200000 The most rows one download holds; a capped download carries X-Syncd-Truncated: true.
CONSOLE_REPORTS_RECIPIENT_DOMAINS empty (no e-mail) Domains a scheduled report may be e-mailed to (example.gov, *.mil), comma-separated. Nothing is e-mailed without it.
CONSOLE_REPORTS_SHARE_DIR unset A directory scheduled reports may be written to (a mounted share).
CONSOLE_REPORTS_MAX_ROWS 50000 The most rows a scheduled report's file holds; the mail says when it was cut.
CONSOLE_REPORTS_MAX_BYTES 15728640 (15 MB) (hidden) The largest file a scheduled report sends.
CONSOLE_REPORTS_POLL_SECONDS 300 (hidden) How often due reports are looked for.
CONSOLE_REPORTS_MAX_PER_USER 20 (hidden) Scheduled reports one account may own.

Mail

The console sends scheduled reports through an SMTP relay of its own, from an outbox in its database: a mail server that is down loses nothing. Off unless CONSOLE_SMTP_HOST is set. See E-mail.

Variable Default What
CONSOLE_SMTP_HOST unset The mail server. Turns e-mail on.
CONSOLE_SMTP_PORT 587
CONSOLE_SMTP_STARTTLS true Upgrade the connection with STARTTLS; the server's certificate is checked. false sends in plain text: a relay on the host or a private network only.
CONSOLE_SMTP_IMPLICIT_TLS false Since 0.5.0. Speak TLS from the first byte (SMTPS, usually port 465) instead of STARTTLS; the certificate is checked the same way, and CONSOLE_SMTP_STARTTLS is not used.
CONSOLE_SMTP_CA_FILE unset PEM CA certificates the server's certificate may chain to, besides the public roots.
CONSOLE_SMTP_USERNAME unset The account to authenticate as, over TLS only. Needs CONSOLE_SMTP_PASSWORD_FILE.
CONSOLE_SMTP_AUTH auto Since 0.5.0. How: auto (AUTH PLAIN when the server offers it or lists nothing, else AUTH LOGIN), plain or login.
CONSOLE_SMTP_PASSWORD_FILE unset A file holding its password, read at each connection.
CONSOLE_SMTP_FROM syncd@<host name> The sender address (syncd@example.gov, or syncd <syncd@example.gov>).
CONSOLE_SMTP_TIMEOUT_SECONDS 30 (hidden) How long one SMTP exchange may take.
CONSOLE_MAIL_POLL_SECONDS 30 (hidden) How often the outbox looks for mail to send.
CONSOLE_MAIL_RETRY_INITIAL_SECONDS 60 (hidden) The wait after the first failed try; doubled after each.
CONSOLE_MAIL_RETRY_MAX_SECONDS 3600 (hidden) The longest wait between tries.
CONSOLE_MAIL_GIVE_UP_AFTER_SECONDS 86400 (hidden) A message this old is given up, and its report raises report.failed.
CONSOLE_MAIL_KEEP_DAYS 14 (hidden) Days sent and failed messages are kept.

Since 0.5.0 the SMTP client speaks SMTPS as well as STARTTLS, and AUTH LOGIN as well as AUTH PLAIN. The console also mails group reviewers (a computed group's reviewers) through the same relay, to the domains CONSOLE_REPORTS_RECIPIENT_DOMAINS allows.

The packaged console.env

The release's template, /opt/syncd/current/share/config/console.env. An upgrade does not change /etc/syncd/console.env; compare it with the template to see the settings a release added. None of the new ones is needed.

# The console's database. The installer filled this in.
CONSOLE_DATABASE_URL=@DATABASE_URL@

# Where the console listens. It serves plain HTTP unless given a certificate below. For
# access from other machines it needs HTTPS (session cookies are marked Secure outside
# development mode, so browsers send them over HTTPS only, or to localhost): its own, or
# a TLS reverse proxy in front of it (an nginx configuration is in
# /opt/syncd/current/share/nginx/syncd.conf). See INSTALL.md, "Reaching the console from
# other machines". Behind a proxy on this host, keep the console on 127.0.0.1.
CONSOLE_LISTEN=@LISTEN@

# The console's own HTTPS: a certificate (PEM, followed by its chain) and its key,
# readable by syncd-console. A renewed certificate is picked up within a minute.
#CONSOLE_TLS_CERT=/etc/syncd/console-tls/fullchain.pem
#CONSOLE_TLS_KEY=/etc/syncd/console-tls/privkey.pem

# The address users reach the console at, through the proxy (needed for single sign-on).
#CONSOLE_PUBLIC_URL=https://syncd.example.com

# Proxies whose X-Forwarded-For names the client (addresses or CIDR ranges, comma-
# separated), so the audit log and the sign-in limit see users' own addresses rather
# than the proxy's. Only list proxies you run: anyone else could claim any address.
#CONSOLE_TRUSTED_PROXIES=127.0.0.1

# Single sign-on (OpenID Connect); see INSTALL.md.
#CONSOLE_OIDC_ISSUER=https://login.example.com/realms/corp
#CONSOLE_OIDC_CLIENT_ID=syncd-console
#CONSOLE_OIDC_CLIENT_SECRET_FILE=/etc/syncd/oidc-client-secret
# Groups to roles; every entry that matches adds its role. A role can be limited to an
# environment (operator@prod) or to engines (designer@engine:hr-1,hr-2); see
# console/README.md, "Roles and scopes".
#CONSOLE_OIDC_ROLE_MAP=syncd-admins=admin,syncd-operators=operator,syncd-prod-ops=operator@prod

# Single sign-on (SAML 2.0), beside OpenID Connect or instead of it; see
# console/README.md, "SAML sign-in". Needs CONSOLE_PUBLIC_URL. Register the console at
# the provider with <CONSOLE_PUBLIC_URL>/api/v1/auth/saml/metadata.
#CONSOLE_SAML_IDP_METADATA_FILE=/etc/syncd/idp-metadata.xml
# Or the metadata's address (fetched hourly) in place of the file:
#CONSOLE_SAML_IDP_METADATA_URL=https://idp.example.com/metadata
#CONSOLE_SAML_ROLE_ATTRIBUTE=groups
#CONSOLE_SAML_ROLE_MAP=syncd-admins=admin,syncd-operators=operator
#CONSOLE_SAML_USERNAME_ATTRIBUTE=uid
#CONSOLE_SAML_LABEL=the agency sign-on
# The provider's entityID, when the metadata describes several:
#CONSOLE_SAML_IDP_ENTITY_ID=https://idp.example.com/idp
# The console's own entityID (default: <CONSOLE_PUBLIC_URL>/api/v1/auth/saml/metadata):
#CONSOLE_SAML_ENTITY_ID=https://syncd.example.com/api/v1/auth/saml/metadata
#CONSOLE_SAML_DISPLAY_NAME_ATTRIBUTE=displayName
# The role for users no entry matches (a scope may follow: viewer@test); unset, they
# are refused:
#CONSOLE_SAML_DEFAULT_ROLE=viewer
# CA certificates for the metadata URL, when it does not use a public CA:
#CONSOLE_SAML_CA_FILE=/etc/syncd/idp-ca.pem
# Seconds the provider's clock may differ from the console's (at most 600):
#CONSOLE_SAML_CLOCK_SKEW_SECONDS=60

# Sign-in with a client certificate (CAC/PIV); see console/README.md, "Certificate
# sign-in". The console validates the certificate against the allowed issuers and checks
# revocation (OCSP, then the CRL); a certificate whose status cannot be learned is refused.
#ENS_X509_ENABLED=true
# direct: browsers present the certificate to the console's own HTTPS (CONSOLE_TLS_CERT).
# proxy: a TLS proxy passes it in a header, believed only from ENS_X509_TRUSTED_PROXIES.
#ENS_X509_MODE=direct
#ENS_X509_TRUSTED_PROXIES=127.0.0.1
# The CAs whose certificates may sign in (PEM):
#ENS_X509_CA_FILE=/etc/syncd/x509-issuers.pem
# The console username: upn, edipi, cn or email.
#ENS_X509_USERNAME_RULE=edipi
# Every entry that matches adds its role (which can carry a scope, as above); a value is
# the username, OU=..., O=... or issuer=...:
#ENS_X509_ROLE_MAP=OU=USAF=operator,1234567890=admin
# ocsp, crl, both in order, or none:
#ENS_X509_REVOCATION=ocsp,crl
# Accept a certificate whose status cannot be learned (a revoked one is refused either
# way). Unset: refused.
#ENS_X509_REVOCATION_FAIL_OPEN=true
#ENS_X509_REVOCATION_TIMEOUT=10s
# A responder or a CRL to use instead of those the certificates name:
#ENS_X509_OCSP_URL=http://ocsp.example.mil
#ENS_X509_CRL_URL=http://crl.example.mil/issuing-ca.crl
# OCSP nonces: send (and accept an answer without one), require, or off:
#ENS_X509_OCSP_NONCE=send
# The longest a fetched CRL is used (never beyond its next update), and its largest size:
#ENS_X509_CRL_CACHE=1h
#ENS_X509_CRL_MAX_BYTES=67108864
# Proxy mode: the header with the certificate, and one that must say SUCCESS when the
# proxy verifies it too (nginx: $ssl_client_escaped_cert, $ssl_client_verify):
#ENS_X509_CERT_HEADER=X-SSL-Client-Cert
#ENS_X509_VERIFY_HEADER=X-SSL-Client-Verify
# The role for certificates no entry matches (a scope may follow); unset, refused:
#ENS_X509_DEFAULT_ROLE=viewer
#ENS_X509_LABEL=a certificate (CAC/PIV)

# The sign-in baseline (console/README.md, "Sign-in policy"; the values a STIG review
# expects are listed there). Unset, the console keeps its defaults: no banner, sessions
# of 30 minutes idle and 12 hours at most, a 15-minute lock after 5 failed sign-ins,
# passwords of 12 characters.
# A notice that must be acknowledged before any sign-in (the DoD text unless given):
#ENS_CONSENT_BANNER_ENABLED=true
#ENS_CONSENT_BANNER_TEXT_FILE=/etc/syncd/consent-banner.txt
# Or the text itself, for a notice of one paragraph:
#ENS_CONSENT_BANNER_TEXT=You are accessing a system for authorized use only.
#CONSOLE_SESSION_IDLE_MINUTES=15
# Minutes, for accounts with the admin role, when shorter:
#ENS_SESSION_ADMIN_IDLE_TIMEOUT=10
# Sessions per account; one more ends the oldest. 0 for no limit:
#ENS_SESSION_MAX_PER_USER=3
# Lock after this many failures within the window (minutes; 0: until a sign-in
# succeeds), for the duration (minutes; 0: until an administrator unlocks):
#ENS_LOCKOUT_ATTEMPTS=3
#ENS_LOCKOUT_WINDOW=15
#ENS_LOCKOUT_DURATION=0
#ENS_PASSWORD_MIN_LENGTH=15
#ENS_PASSWORD_MIN_UPPERCASE=1
#ENS_PASSWORD_MIN_LOWERCASE=1
#ENS_PASSWORD_MIN_DIGITS=1
#ENS_PASSWORD_MIN_SPECIAL=1
# How many recent passwords a new one must differ from, and days until one expires:
#ENS_PASSWORD_HISTORY=5
#ENS_PASSWORD_MAX_AGE_DAYS=60
#ENS_PASSWORD_REJECT_USERNAME=true
# Strict-Transport-Security on the console's own HTTPS (seconds; 0 sends none). Behind
# a proxy the proxy sends it (see the nginx file):
#ENS_HSTS_MAX_AGE=31536000
#ENS_HSTS_INCLUDE_SUBDOMAINS=true

# The audit trail (ens-audit/1) goes to the database, and to these outputs besides: one
# JSON line per event on stdout (the journal) unless ENS_AUDIT_STDOUT=false, an audit
# file rotated daily or at 100 MB, Splunk's HTTP Event Collector, syslog (RFC 5424).
# Events queue while a receiver is down. See console/README.md, "Audit trail". The
# console may write its audit file in /var/log/syncd; another directory needs a drop-in
# (INSTALL.md, "Files").
#ENS_AUDIT_FILE=/var/log/syncd/audit.jsonl
#ENS_AUDIT_FILE_KEEP=30
#ENS_AUDIT_SPLUNK_URL=https://splunk.example.com:8088
#ENS_AUDIT_SPLUNK_TOKEN_FILE=/etc/syncd/splunk-hec-token
#ENS_AUDIT_SPLUNK_INDEX=ens_audit
#ENS_AUDIT_SYSLOG_HOST=syslog.example.com
# udp, tcp or tls (port 514, or 6514 for tls):
#ENS_AUDIT_SYSLOG_PROTOCOL=tls
# 0 (the default) keeps events forever:
#ENS_AUDIT_RETENTION_DAYS=365

# API tokens (Integrations in the console), for a SIEM or a pipeline. See
# console/README.md, "API tokens".
#CONSOLE_API_TOKENS_ENABLED=true
# 0 for no limit:
#CONSOLE_API_MAX_TOKEN_LIFETIME=365d
# Per token; 0 for no limit:
#CONSOLE_API_REQUESTS_PER_MINUTE=300

# Outbound webhooks (Integrations in the console): signed HTTPS posts to a Slack channel,
# a Teams workflow, PagerDuty or an integration of your own. Nothing is sent until an
# administrator adds one. See console/README.md, "Webhooks".
#CONSOLE_WEBHOOKS_ENABLED=true
#CONSOLE_WEBHOOKS_ALLOWED_HOSTS=hooks.slack.com,*.webhook.office.com,events.pagerduty.com,relay.example.gov
# Unset: refused for new webhooks; false: allowed.
#CONSOLE_WEBHOOKS_BLOCK_PRIVATE_NETWORKS=true
# A private CA some receivers use:
#CONSOLE_WEBHOOKS_CA_FILE=/etc/syncd/receivers-ca.pem
# quality.errors is sent when a view's entities failing error-severity checks go from
# none to some, and again each time they rise by this many (0: only from none):
#CONSOLE_WEBHOOKS_QUALITY_ERRORS_RISE=10

# Scheduled reconciliation reports (Reports in the console), e-mailed or written to a
# share. Nothing is e-mailed until the recipient domains and a mail server are set. See
# console/README.md, "Exports and reports". The console may write to the share only
# once a drop-in names it (INSTALL.md, "Files").
#CONSOLE_REPORTS_RECIPIENT_DOMAINS=example.gov,*.example.mil
#CONSOLE_REPORTS_SHARE_DIR=/srv/syncd-reports
#CONSOLE_SMTP_HOST=relay.example.gov
#CONSOLE_SMTP_PORT=587
#CONSOLE_SMTP_STARTTLS=true
# For a relay that speaks TLS from the first byte (SMTPS) instead of STARTTLS:
#CONSOLE_SMTP_IMPLICIT_TLS=true
#CONSOLE_SMTP_PORT=465
#CONSOLE_SMTP_FROM=syncd@example.gov
#CONSOLE_SMTP_USERNAME=syncd
#CONSOLE_SMTP_PASSWORD_FILE=/etc/syncd/smtp-password
# auto (AUTH PLAIN when offered or nothing is listed, else AUTH LOGIN), plain or login:
#CONSOLE_SMTP_AUTH=auto

# The pre-publish hook: a change ticket a publish must carry, and a change-management
# system asked before each publish. See console/README.md, "Pre-publish hook".
#CONSOLE_PUBLISH_TICKET_PATTERN=^(CHG|INC)-[0-9]{4,}$
#CONSOLE_PUBLISH_HOOK_URL=https://itsm.example.gov/syncd
#CONSOLE_PUBLISH_HOOK_SECRET_FILE=/etc/syncd/publish-hook-secret
#CONSOLE_PUBLISH_HOOK_TIMEOUT=10s
# refuse or allow:
#CONSOLE_PUBLISH_HOOK_ON_ERROR=refuse

# Configuration as code (console/README.md, "Git sync"): commits on a branch become
# configuration versions, optionally published; versions saved here pushed back. Needs
# the git package on this host.
#CONSOLE_CONFIG_GIT_URL=ssh://git@git.example.gov/idm/syncd.git
#CONSOLE_CONFIG_GIT_BRANCH=main
#CONSOLE_CONFIG_GIT_PATH=syncd.yaml
#CONSOLE_CONFIG_GIT_ENV_PATH=environments
#CONSOLE_CONFIG_GIT_SSH_KEY_FILE=/etc/syncd/git-deploy-key
#CONSOLE_CONFIG_GIT_KNOWN_HOSTS_FILE=/etc/syncd/git-known-hosts
# For https://, instead of the key:
#CONSOLE_CONFIG_GIT_TOKEN_FILE=/etc/syncd/git-token
#CONSOLE_CONFIG_GIT_POLL=60s
# off | validate | publish:
#CONSOLE_CONFIG_GIT_AUTO_PUBLISH=off
#CONSOLE_CONFIG_GIT_PUSH_BACK=false
# The engines the repository is for; all when unset:
#CONSOLE_CONFIG_GIT_ENGINES=dev

# The license (docs/LICENSING.md): a file instead of an upload on the License page, for
# an air-gapped host (`syncdctl license install FILE` sets this). Without a license the
# console runs a 30-day evaluation, then a grace period, then blocks publishing.
#CONSOLE_LICENSE_FILE=/etc/syncd/license.lic

# The master key wrapped by a KMS key (awskms:..., azurekv:... or vaulttransit:...);
# `syncd-console admin wrap-master-key` wraps the key file in place. The console does
# not start when the KMS cannot be asked. See INSTALL.md, "Secrets from a vault or a KMS".
#CONSOLE_MASTER_KEY_KMS=awskms:arn:aws:kms:us-gov-west-1:111122223333:key/example

# Only with a FIPS build of syncd:
#SYNCD_FIPS_MODE=true
# In FIPS mode, load custom functions in WebAssembly anyway (refused by default):
#SYNCD_FIPS_ALLOW_WASM_FUNCTIONS=true

syncdctl install fills in the database URL and the listen address, and syncdctl install --fips adds SYNCD_FIPS_MODE=true to both console.env and engine.env. Since 0.4.1 the template has no comment after a value, and a CI check keeps it so. A console.env written by an earlier release may still have some: move each to a line of its own before uncommenting the setting (see Files).

Container images and Helm

The images (ghcr.io/winllc/syncd and ghcr.io/winllc/syncd-console) and the Helm chart (oci://ghcr.io/winllc/charts/syncd) run the same two programs with the settings on this page. This section is a reference for what differs; Install has the procedure. They are pushed to GHCR, signed, when a v* tag is built in the repository's release environment. The latest published are the 0.6.0 images (and their -fips variants) and chart, signed with cosign, with SBOM attestations. The 0.6.1 images and chart were not published: the tag's Container run failed building the amd64 binaries, and its push-and-sign job was skipped. 0.6.1 changes only the host installer, so a Kubernetes install loses nothing by staying on chart 0.6.0.

The images are built for linux/amd64 and linux/arm64 (unless a release was built with the arm64 jobs switched off). The <version>-fips images, for the same platforms since 0.5.0, are the FIPS build, which takes SYNCD_FIPS_MODE=true; the standard images refuse it.

The engine image

Path or variable What
/etc/syncd/engine.yaml The image's initial configuration, below. Read-only.
/var/lib/syncd The data volume: the store in engine/, and the configuration the engine runs with, engine.yaml.
SYNCD_CONFIG=/var/lib/syncd/engine.yaml The configuration file, on the data volume, since the engine rewrites it when the console publishes a configuration.
SYNCD_INITIAL_CONFIG=/etc/syncd/engine.yaml Copied to SYNCD_CONFIG when that file does not exist yet.
SYNCD_DATA_DIR=/var/lib/syncd/engine The store.
Ports 7443 (control API, mutual TLS), 9464 (metrics and health checks).

The image's engine.yaml:

version: 1

engine:
  data_dir: /var/lib/syncd/engine

api:
  # The control API, for the console, with mutual TLS. Mount the certificates at
  # /etc/syncd/pki (the Helm chart issues them).
  listen: 0.0.0.0:7443
  tls:
    cert_file: /etc/syncd/pki/engine.crt
    key_file: /etc/syncd/pki/engine.key
    client_ca_file: /etc/syncd/pki/ca.crt
  # Who may do what (docs/KUBERNETES.md, "Control API access"). Strict: the console's
  # certificate ("syncd console") applies configurations; the engine's own ("syncd
  # engine"), with which the passive engine of an HA pair pulls snapshots from the
  # active one, operates and cannot apply a configuration. An engine whose data volume
  # was first written by an image before 0.5.0 keeps its own file, without this section:
  # every certificate of the CA may do everything there until it is added.
  access:
    mode: strict
    configure: [syncd console]
    operate: [syncd engine]
    # Who may set passwords through the API (`syncd password set`, adding and binding
    # capture agents, rotating the password keys), on top of `operate`. Operators run
    # those commands with `kubectl exec`, through the control socket, which needs no
    # entry here. The engines' own certificate is listed for an HA pair that delivers
    # passwords: the passive engine pulls snapshots and follows the password queue with
    # it, which carry the password keys, and hands what capture agents send to its
    # ingest listener on to the active one. Only the engine pods hold that certificate,
    # beside the password key itself.
    passwords: [syncd engine]
  # `kubectl exec ... -- syncd status` and the other commands use the socket, without
  # certificates. In strict mode the socket reads and operates, and applies no
  # configuration.
  control_socket: /run/syncd/control.sock
  # Prometheus metrics, and the health checks.
  metrics_listen: 0.0.0.0:9464

engine.data_dir, api and (since 0.5.1) passwords.key_file are host-only, as on a package install, so the console cannot change them. To set them otherwise, mount a file of your own at /etc/syncd/engine.yaml before the first start: once the copy on the data volume exists, that copy is the one the engine reads. The chart uses the image's file as it is, and sets engine.ha through the SYNCD_HA_* variables. There is no engine.env in a container: the secrets a configuration refers to ({ env: NAME }) are ordinary environment variables of the container, which the chart takes from a Secret (engine.envFromSecret). The chart does not write the engine's configuration, so it has no value for api.access or engine.require_signed_config: an engine first installed before 0.5.0 opts in by an edit of the file on its data volume.

The console image

Variable Value
CONSOLE_LISTEN 0.0.0.0:8080
CONSOLE_UI_DIR /usr/share/syncd/console
CONSOLE_DATA_DIR /var/lib/syncd/console

Every other console setting is an environment variable of the container. The image serves plain HTTP unless given CONSOLE_TLS_CERT and CONSOLE_TLS_KEY; with the chart, set console.tls.existingSecret instead and the probes follow. Since 0.5.5 the chart's probes ask /livez, which answers while the console serves; /healthz answers 503 naming a background task that keeps stopping or cannot work. The image includes git and ssh for Git sync: https:// and ssh:// repositories work, file:// ones do not (there is no shell in the image).

Both images run as uid and gid 65532, need no root and work with a read-only root file system. Their base images are pinned by digest.

Helm chart values

The chart's values.yaml, by key. The chart's version is the release's: use 0.6.0, the latest published (see above). 0.5.5 adds engine.startupProbe and engine.minReadySeconds, and points the console's probes at /livez; 0.6.0 adds no values, and neither did 0.5.2 or 0.5.4.

Key Default What
image.engine.repository, image.console.repository ghcr.io/winllc/syncd, ghcr.io/winllc/syncd-console The images.
image.*.tag the chart's appVersion <version>-fips for the FIPS images.
image.*.pullPolicy IfNotPresent
imagePullSecrets []
podSecurityContext, securityContext uid and gid 65532, non-root, RuntimeDefault seccomp, read-only root file system, no capabilities Used for both.
engine.name the release name The name the console knows the engine by. An HA pair is registered as <name>-0 and <name>-1.
engine.environment empty The console environment the engine runs in, passed at each registration (--environment). Empty: a new engine runs in default, and a registered one keeps the environment it has.
engine.envFromSecret empty A Secret whose keys become the engine's environment variables: the secrets the configuration refers to.
engine.env [] More environment variables (RUST_LOG, SYNCD_FIPS_MODE, AWS_* for backups).
engine.serviceAccount.create, name, annotations false, empty, {} Since 0.5.0. The engine pods' service account: none by default (the namespace's default), one of the chart's with create: true (<fullname>-engine, or name), or an existing one by name. What a vault role, IRSA or another workload identity is bound to. With engine.ha.lease.kind: kubernetes the chart makes one regardless.
engine.configSigning.publicKey, existingConfigMap, existingSecret, key empty, empty, empty, console-signing.pub Since 0.5.0. The console's configuration signing key (the PEM that syncd-console admin config-signing-key prints), inline or from a ConfigMap or a Secret, mounted at /etc/syncd/config-signing/<key>. It changes nothing by itself: the engine's file must name it in engine.config_signing_keys, with require_signed_config: true to refuse unsigned configurations.
engine.extraCaCertificates.configMap, secret empty Since 0.5.0. CA certificates for connections to systems with a private CA: every key of the ConfigMap or Secret becomes a file under /etc/syncd/ca, for a connector's ca_file.
engine.extraVolumes, engine.extraVolumeMounts [] More volumes on the engine's pod: a CSV inbox, a Kerberos keytab, secrets from a vault.
engine.passwordKeyPassphrase.existingSecret, key empty, passphrase A Secret holding the passphrase that seals the password key and the agent CA key, under key. Mounted read-only in /run/secrets/syncd-password-key, and named by SYNCD_PASSWORD_KEY_PASSPHRASE_FILE. Empty: the keys are plain files on the data volume.
engine.passwordKeyPassphrase.previousKey empty Since 0.5.0. While the passphrase is being changed: the Secret's key holding the passphrase before the change, with which the engine opens a key file the new one does not, and seals it again. Remove it once every engine pod has started since.
engine.persistence.size 10Gi The store's volume; size it as Availability and sizing says. A StatefulSet's volume claims cannot be changed by helm upgrade: growing the volume later is done on the claims (the source repository's docs/KUBERNETES.md, "Growing the engine's volume").
engine.persistence.storageClass the cluster's default
engine.persistence.accessModes [ReadWriteOnce]
engine.resources requests 250m CPU, 512Mi; limit 4Gi
engine.terminationGracePeriodSeconds 90 Time to finish the batch and stop.
engine.startupProbe.periodSeconds, failureThreshold 5, 120 Since 0.5.5. How long the engine may take to start before Kubernetes restarts it: the control API's port is checked every periodSeconds, failureThreshold times (10 minutes). The port opens once the store is open, and after an upgrade that changes the store's format, once it is migrated: raise failureThreshold for such an upgrade of a large store.
engine.minReadySeconds 0 Since 0.5.5. Seconds a new engine pod must stay ready before it counts as available; a rollout of an HA pair moves on to the other pod only then. 0: as soon as it is ready.
engine.service.type ClusterIP Ports 7443 and 9464.
engine.passwordIngest.enabled false Expose the password ingest listener (passwords.ingest): the pods' port and a Service of its own, <fullname>-engine-ingest. The configuration must listen on the same port. With engine.ha, the Service routes to both pods, and since 0.5.0 both answer once they are up (the passive engine forwards to the active one).
engine.passwordIngest.port 7445 The ingest port.
engine.passwordIngest.service.type, annotations ClusterIP, {} LoadBalancer or NodePort for agents outside the cluster; the control API and the metrics stay on the engine's own Service.
engine.ha.enabled false An active/passive pair: two engine pods, a headless Service, the lease, anti-affinity and a PodDisruptionBudget.
engine.ha.lease.kind postgres Since 0.5.0. postgres: a row in the console's database, as before 0.5.0. kubernetes: a Lease object named after the release, in its namespace, with a service account and a Role that may read and update that one Lease. Changing the kind of a running pair needs both engine pods stopped first.
engine.ha.leaseTtlSeconds 15 SYNCD_HA_LEASE_TTL_SECS.
engine.ha.snapshotEverySeconds 60 SYNCD_HA_SNAPSHOT_EVERY_SECS. 300 before 0.5.0; an upgrade with --reuse-values keeps the old value.
engine.ha.antiAffinity soft soft prefers two nodes; hard requires them. Ignored when engine.affinity is set.
engine.ha.podDisruptionBudget.enabled true A drain evicts one engine at a time.
engine.metrics.job syncd The job label the ServiceMonitor gives the engine's metrics, which the alert rules select by.
engine.metrics.serviceMonitor.enabled false A ServiceMonitor for the Prometheus operator (interval 30s, labels).
engine.metrics.prometheusRule.enabled false The shipped alert rules as a PrometheusRule, with labels for the Prometheus ruleSelector. One release per Prometheus is enough.
engine.nodeSelector, tolerations, affinity, podAnnotations empty
console.replicas 1
console.serviceAccount.create, name, annotations false, empty, {} Since 0.5.0. The service account of the console's pods and the registration Job, as engine.serviceAccount.
console.license.existingSecret, key empty, license.lic Since 0.5.0. A Secret holding the license file under key, mounted at /etc/syncd/license and read through CONSOLE_LICENSE_FILE; the License page then takes no uploads. Empty: install the license on the License page.
console.database.url empty The console's PostgreSQL URL, kept in a Secret the chart makes. This or existingSecret is required.
console.database.existingSecret, existingSecretKey empty, url A Secret of your own holding the URL, instead.
console.adminPassword generated The initial admin password, changed at first sign-in; helm status says how to read a generated one.
console.adminPasswordExistingSecret, adminPasswordExistingSecretKey empty, admin-password Since 0.5.1. The initial admin password from a Secret of your own, under that key, read at the console's first start only. A generated password is kept across upgrades only by helm install and helm upgrade: Argo CD and other tools that render with helm template need this (or adminPassword).
console.masterKey.existingSecret, existingSecretKey empty, master-key Since 0.5.1. The master key that seals the secrets in the console's database, from a Secret of your own (32 random bytes, base64: openssl rand -base64 32), instead of the one generated into <fullname>-console. Tools that render with helm template need it: they would generate a new key at every render, and the console refuses to start on a key that does not open its secrets.
console.trustedProxies empty CONSOLE_TRUSTED_PROXIES: the ingress controller's addresses or ranges.
console.env [] More environment variables, for the console and the registration Job alike: the audit outputs, API tokens, webhooks, the pre-publish hook, Git sync, other single sign-on settings.
console.newMasterKey false true for one upgrade, after the master key was lost: the console and the registration Job start anyway, the stored secrets are discarded and the engine is registered again. Set it back afterwards.
console.publicUrl https://<ingress.host> when the ingress is on CONSOLE_PUBLIC_URL.
console.oidc.issuer, clientId empty Single sign-on; off while issuer is empty.
console.oidc.existingSecret, existingSecretKey empty, client-secret A Secret of your own holding the client secret, mounted as CONSOLE_OIDC_CLIENT_SECRET_FILE.
console.oidc.roleClaim, roleMap, defaultRole empty CONSOLE_OIDC_ROLE_CLAIM, _ROLE_MAP, _DEFAULT_ROLE (every matching entry adds its role since 0.5.0). The SAML, certificate and sign-in policy settings have no values of their own: they go in console.env.
console.oidc.ca.configMap, ca.secret, ca.key empty, empty, ca.crt CA certificates for the provider, from one key of a ConfigMap or a Secret (CONSOLE_OIDC_CA_FILE).
console.tls.existingSecret empty A kubernetes.io/tls Secret: the console serves HTTPS itself, and the probes, the Service's port name and the Ingress backend follow. Set the controller's backend-protocol annotation on the ingress.
console.extraVolumes, console.extraVolumeMounts [] More volumes on the console's pod: a hook secret, a Git deploy key.
console.resources requests 100m CPU, 128Mi; limit 512Mi
console.service.type, port ClusterIP, 8080
console.ingress.enabled false An Ingress for the console, with className, annotations, host (syncd.example.com) and tls.
console.nodeSelector, tolerations, affinity, podAnnotations empty
pki.days 3650 Validity of the control API certificates the chart issues.
pki.existingSecret empty Since 0.5.1. A Secret of your own in place of the chart's <fullname>-pki, for tools that render with helm template, which would issue new certificates at every render. Its keys: ca.crt; engine.crt and engine.key (common name syncd engine, server and client use, named for <fullname>-engine with its namespace forms, and with engine.ha for *.<fullname>-engine-peers.<namespace>.svc); console.crt and console.key (common name syncd console, client use); all from the CA in ca.crt.
networkPolicy.enabled false NetworkPolicies: the engine's control API from the console and the registration Job only, its metrics from the monitoring selectors, its password ingest port from passwordIngestFrom, the console's port from the ingress controller selectors.
networkPolicy.monitoringNamespaceSelector, monitoringPodSelector empty Where Prometheus runs. Empty means from anywhere, for that port.
networkPolicy.ingressNamespaceSelector, ingressControllerSelector empty Where the ingress controller runs.
networkPolicy.console.extraIngressFrom [] More from entries for the console's port.
networkPolicy.passwordIngestFrom [] With engine.passwordIngest.enabled: the from entries allowed to the ingest port, such as the domain controllers' range. Empty: from anywhere (agents still need a certificate the engine issued).
networkPolicy.egress.enabled false Limit egress to DNS and the engine's control API, plus egress.extra.
networkPolicy.egress.extra [] More egress rules, applied to all three: the sources and targets, the database, the identity provider, webhook receivers.

What the chart makes on its own:

  • Secrets, generated at install and kept across upgrades and helm uninstall: the console's master key (CONSOLE_MASTER_KEY, so the console's data directory needs no volume) and initial admin password, in <fullname>-console; and a CA with the engine's and the console's control API certificates (ECDSA P-256), in <fullname>-pki. Only helm install and helm upgrade see the ones already there; since 0.5.1 console.masterKey.existingSecret, console.adminPasswordExistingSecret and pki.existingSecret name Secrets of your own instead, and the chart then makes none for them. An install made with an older chart keeps its RSA certificates until the PKI Secret is deleted. Deleting <fullname>-pki and upgrading issues new certificates. To start over completely, delete both Secrets and the engine's volume.
  • The engine as a StatefulSet of one, with its store on a volume, the certificates at /etc/syncd/pki and the control socket in /run/syncd. With engine.ha.enabled, a StatefulSet of two, each with its own volume, that start together. Turning HA on or off in an existing release changes fields Kubernetes does not update in place: delete the StatefulSet without its pods first, and the PKI Secret too.
  • A registration Job after each install and upgrade, which registers the engine (or each engine of a pair) in the console with the chart's certificates, with --update, and with --environment when engine.environment is set. Since 0.4.1 a registered engine otherwise keeps its environment (0.4.0 moved it back to default at each upgrade). With engine.ha.enabled, an init container first runs syncd-console admin rename-engine --from <name> --to <name>-0, so an engine registered before HA was turned on keeps its configuration versions, reports and history as <name>-0; it does nothing when there is no <name> or <name>-0 exists. The rename does not change engine names in CONSOLE_SELF_SERVICE_ENGINE or CONSOLE_CONFIG_GIT_ENGINES: change them by hand.
  • A Service for password ingest, <fullname>-engine-ingest, with engine.passwordIngest.enabled.
  • A PrometheusRule with engine.metrics.prometheusRule.enabled (since 0.5.0 with nine more rules: copy the rule file again, or upgrade with the value on), and NetworkPolicies with networkPolicy.enabled.
  • Since 0.5.0: service accounts with serviceAccount.create; with engine.ha.lease.kind: kubernetes, the Lease, a Role limited to it and a service account for the engine pods; a ConfigMap <fullname>-config-signing with engine.configSigning.publicKey.

A kind test (tests/k8s/ha.sh) installs a pair, turns HA on for an existing release and fails it over by lease expiry, with the PostgreSQL lease. The chart's 0.5.0 additions (service accounts, the signing key, CA certificates, the Kubernetes Lease and its RBAC, the license Secret, previousKey) had not been rendered by helm or installed on a cluster when 0.5.0 was released, nor had the Kubernetes Lease variant of the kind test run; it passed in the Container run that published 0.5.4. 0.5.1's Secrets of your own (console.masterKey, console.adminPasswordExistingSecret, pki.existingSecret) are rendered by CI (tests/helm/check-values.py in the source repository).

Complete example

An HR database and a corporate directory merged into a people view and published to OpenLDAP, from examples/hr-to-openldap.yaml in the source repository (comments shortened). The source repository has further examples for MySQL, SQL Server, MongoDB, Oracle through Debezium, Db2 through the JDBC bridge, a CSV inbox, Active Directory with the conveniences, a SCIM application, Entra ID, (since 0.5.0) Workday with effective dates (examples/workday-to-openldap.yaml), and (since 0.6.0) the two sides of an air gap (examples/airgap-export.yaml, examples/airgap-import.yaml); Connectors shows their connector sections.

version: 1

engine:
  data_dir: ./data
  shards: 0

attributes:
  multi_valued: [memberOf, mail]
  # sensitive: [birthDate, nationalId]

connectors:
  - name: hr_db
    type: postgres
    connection:
      host: 127.0.0.1
      port: 54329
      user: postgres
      dbname: postgres
    objects:
      - type: person
        anchor: id
        table: people
        mode: stream
        cdc:
          slot: syncd_hr
          publication: syncd_hr_pub
    deletion_threshold:
      percent: 5
      count: 500

  - name: corp_ldap
    type: ldap
    connection:
      url: ldap://127.0.0.1:3891
      bind_dn: cn=admin,dc=corp,dc=com
      password:
        env: CORP_LDAP_PASSWORD
    objects:
      - type: person
        anchor: entryUUID
        base: ou=People,dc=corp,dc=com
        filter: (objectClass=inetOrgPerson)
        attributes: [uid, mail, employeeNumber, telephoneNumber, title]

  - name: openldap
    type: ldap
    connection:
      url: ldap://127.0.0.1:3890
      bind_dn: cn=admin,dc=example,dc=com
      password:
        env: TARGET_LDAP_PASSWORD
      # profile: openldap

views:
  - name: people
    sources:
      - connector: hr_db
        object: person
        project: true
        flows:
          employeeId: source.employee_id
          givenName: source.given
          sn: source.sn
          department: source.department
          title: source.title
          status: source.status
          manager: source.manager_employee_id
      - connector: corp_ldap
        object: person
        join:
          - entity: employeeId
            source: source.employeeNumber
        flows:
          uid: source.uid
          mail: source.mail
          telephoneNumber: source.telephoneNumber
          title: source.title
    precedence:
      default: [hr_db, corp_ldap]
    references:
      manager: { match: employeeId }
    lookups:
      dept_codes:
        Engineering: ENG
        Sales: SLS
    computed:
      - name: displayName
        output: e.givenName + " " + e.sn
        tests:
          - input: { givenName: Jane, sn: Doe }
            expect: Jane Doe
      - name: departmentNumber
        output: lookup("dept_codes", e.department, "GEN")
        tests:
          - input: { department: Engineering }
            expect: ENG
          - input: { department: Legal }
            expect: GEN

publications:
  - name: people_to_openldap
    view: people
    target: openldap
    filter: e.status == "active"
    dn: uid={uid},ou=People,dc=example,dc=com
    object_classes: [inetOrgPerson]
    attributes:
      uid: e.uid
      cn: e.displayName
      givenName: e.givenName
      sn: e.sn
      mail: e.mail
      title: e.title
      employeeNumber: e.employeeId
      departmentNumber: e.departmentNumber
    references:
      manager: manager
    deprovision: delete
    deletion_threshold:
      percent: 5
    # adopt:
    #   match: [employeeNumber]
    #   base: ou=People,dc=example,dc=com
    # drift:
    #   interval_secs: 3600
    #   default: flag
    #   attributes: { title: revert, mail: accept }