Skip to main content

Configure values and secrets

Set the DALP Helm chart's datastore, TLS, and secret-manager values, and choose how secrets reach each pod.

This page sets the datastore, TLS and secret values of the dalp chart, and says how each secret reaches its pod. Read it before your first helm install with Install the DALP Helm chart, because a release does not render or does not start until some of these values are set.

Four values block a release until you set them:

Value
Ships as
Without your own value
ENCRYPTION_MASTER_PASSWORD
Empty
Every pod refuses to start
BETTER_AUTH_SECRET
A published placeholder
A production pod refuses to start on the placeholder
CUSTODY_CREDENTIAL_IDENTITY_KEY
A development placeholder
A production pod refuses to start on the placeholder
global.dalpApp.env.DALP_GOVERNANCE_DOMAIN_SCOPE
Empty
helm install and helm upgrade fail the render

Quick jump

Encryption at rest, Custody credential identity key and Governance ballot domain describe each check. The secret-manager provider ships as local, which does not block the install and keeps application secrets in the platform's own database on a production deployment. Review datastore TLS, credentials, connection capacity and the secret delivery path against the target environment before installation.

dapi (the Platform API) and dapp (the Console) are the two application subcharts this page configures most. The migrator is the dapp subchart's schema-migration Helm hook, a Job that runs on every install and upgrade. It appears throughout this page because two of its steps, direct database access and encryption rotation, shape the values below.

A production pod is one whose NODE_ENV is production. Every published image sets NODE_ENV=production, and the dapi subchart pins it on Platform API Deployments.

Pods with NODE_ENV set to development, test or unset boot on the BETTER_AUTH_SECRET and CUSTODY_CREDENTIAL_IDENTITY_KEY placeholders and skip production safety checks. Keep NODE_ENV at production on every cluster, including staging, and never override NODE_ENV in global.dalpApp.env, dapp.env, dapp.secretEnv, dapp.migrator.env or extraEnvVars.

Any other NODE_ENV value, an empty one included, stops each Platform API, indexer, runner, scheduler and Console pod it reaches with this error:

NODE_ENV must be development, test or production; got "<value>".

A bad value in dapp.migrator.env reaches the migrator. It applies the schema migrations and then fails with an error whose cause is that message, so a helm install or helm upgrade that runs it as a hook fails too.

Values structure

values.yaml groups into a shared global block: observability, image-pull credentials, datastores, the embedded application config, Conjur and HTTP routing.

Each service has its own block, among them dapi (the Platform API), dapp (the Console), blockscout (an optional block explorer), investorPortal (the optional Investor portal), investorDocs, canton, utilaSigningAgent, contractsDeploy, docs, backup, overprovisioning and postgres-exporter. The PgBouncer connection pooler is a separate chart dependency that global.pgbouncer.enabled switches on.

dapi and dapp each carry autoscaling, image, resource and exposure settings, through ingress, a Gateway httpRoute on Kubernetes or an openShiftRoute on OpenShift.

Services you supply

No chart deploys a datastore, so PostgreSQL, Redis, and object storage are services you supply. The chart's default values name placeholder in-cluster hosts and passwords for them, and the platform cannot connect until services answer under those names or you replace them. Point all three at services for a production deployment: a managed service can provide replication, patching, and backups, depending on the plan and configuration you choose. Verify those capabilities and test recovery. Topologies covers the deployment shapes.

Datastores

global.datastores sets connections per service for PostgreSQL and Redis, either inline or through existingSecret. Object storage is set under global.dalpApp.config.objectStorage, with its keys in OBJECT_STORAGE_ACCESS_KEY and OBJECT_STORAGE_SECRET_KEY. Default passwords in the chart, such as "dalp" for PostgreSQL, are placeholders. Change every one before you deploy to production.

PostgreSQL TLS reads sslMode, and the leg it secures depends on whether pooling is on. global.pgbouncer.enabled defaults to true, and a pooled deployment removes sslMode from the application's own connection URL. The pooler's client listener is plaintext inside the cluster, so with pooling on the leg from the application pods to the pooler is unencrypted.

An application that tries to negotiate TLS against it fails to connect and never falls back to plaintext. Encryption on that leg needs pooling off, with DATABASE_TLS on the direct connections. sslMode sets the pooler's own upstream leg to Postgres, and the chart ships it as disable, so the upstream leg is plaintext by default.

The pooler accepts four values there: disable, require, verify-ca and verify-full. Any other value fails the render.

For a managed PostgreSQL on a public certificate authority, set sslMode to require. The chart maps it to verify-full over the image's system CA bundle, which verifies both certificate and hostname with no CA to mount. For a server behind a private certificate authority, set sslMode to an empty string instead, and supply the CA under pgbouncer.upstreamTls, the pooler subchart's own values:

global:
  pgbouncer:
    enabled: true # umbrella gate: whether pooling exists at all
pgbouncer:
  upstreamTls:
    ca: | # the private CA's certificate, PEM-encoded
      -----BEGIN CERTIFICATE-----
      ...
      -----END CERTIFICATE-----
    # existingSecret: my-ca-secret   # or point at a Secret instead

An empty sslMode with that CA configured resolves to a verified verify-full connection. The shipped disable with a mounted CA leaves the CA unused, because disable passes through as it is. The application's own DATABASE_TLS value takes effect only on direct connections: the migrator's, or every connection when pooling is off.

How application pods reach Postgres

Set global.datastores.default.postgresql.maxConnections to your PostgreSQL server's real max_connections. The chart sizes PgBouncer's server connections against that number and fails the render when they do not fit. To check server RAM as well, set memoryMegabytes, sharedBuffersMegabytes and reservedMegabytes, and optionally memoryTargetPercent.

A central transaction-mode PgBouncer pooler sits between application pods and Postgres. Each process role uses its own alias with a fixed pool: dalp_api for the API role, dalp_indexer and dalp_indexer_rebuild for chain ingestion, dalp_runner and dalp_scheduler for background work, dalp_app for the Console, dalp_cluster for durable workflow storage and dalp_probe for health probes.

Each pooler process admits up to 3,000 client connections (pgbouncer.pool.maxClientConn), so scaling dapi replicas increases client connections without changing Postgres max_connections.

The chart checks three bounds at render time and fails if any active bound is exceeded:

  • Server side. Every alias's maxDbConnections across all peers, plus pgbouncer.pool.directConnections (26), plus 3 reserved superuser slots, must fit global.datastores.default.postgresql.maxConnections (default placeholder 400). A peer is one PgBouncer process: pgbouncer.replicaCount times pgbouncer.processCount, 2 times 1 by default. The defaults use 371 of 400 (342 alias connections across 2 peers, 26 direct and 3 reserved).
  • Client side. Each role's pods at maximum replicas times its per-pod pool may hold at most pgbouncer.pool.clientOversubscription (8) clients per server connection (for API, 28 pods × 40 = 1,120 clients onto 140 server connections).
  • Memory, when you state the server's RAM. Every backend the pooler can open, at its alias's price (pgbouncer.databases.<alias>.backendMegabytes, or pgbouncer.pool.backendMegabytes, 101 MB, when the alias states none), plus the direct connections at pgbouncer.pool.backendMegabytes, plus global.datastores.default.postgresql.sharedBuffersMegabytes and global.datastores.default.postgresql.reservedMegabytes, must fit global.datastores.default.postgresql.memoryTargetPercent (100 by default) of global.datastores.default.postgresql.memoryMegabytes. Postgres memory for the pooler gives the calculation.

The server-side check trusts your declared maxConnections. If your server's real max_connections is lower than 400, connections fail under load. Monitor postgres-exporter (PostgresAggregateBackendsHigh) or pg_stat_activity before and after scaling.

The migrator connects directly to Postgres, on 1 connection, because schema-migration locks are session-scoped. postgres-exporter holds 1 direct session, each indexer pod opens 1 for index builds (up to 4, though only one of them builds at a time), and optional Blockscout (blockscout.enabled: false) adds 20 when enabled, summing to the 26 direct connections in pgbouncer.pool.directConnections. With Blockscout off you can lower directConnections to 6.

Watch client queueing to detect pooler saturation. In the observability chart, PgBouncerClientMaxWait pages when the oldest queued client waits over 1 second for 10 seconds, and PgBouncerClientsWaiting pages after 1 minute of continuous queueing. PgBouncer rejects queued clients at its 10-second queryWaitTimeout, ahead of the 30-second statement timeout and 60-second HTTP deadline.

PgBouncerDeploymentAbsent and PgBouncerDown page if the pooler disappears, while PgBouncerReplicaUnavailable fires when redundancy drops for 3 minutes. Watch PgBouncerMetricsAbsent and PgBouncerMetricsUnreadable as well: if the exporter stops reporting, saturation alerts go silent. These alerts ship in the observability chart and fire only after you enable alerting (Install the observability stack).

With global.pgbouncer.enabled: false, pods connect directly to Postgres using each role's pool size and pooler alerts no longer apply. PostgresAggregateBackendsHigh still watches the server and pages at 80% of max_connections. Size direct pools against max_connections by hand before disabling PgBouncer.

Postgres memory for the pooler

With the default aliases, plan for a Postgres server with 64 GB of RAM. The aliases can open 171 backends on each of the 2 peers, and the direct connections add 26, so 368 backends. At 101 MB each that is 37,168 MB. With shared_buffers at a quarter of RAM (16,384 MB) and a reserve of 9,754 MB, the check needs 63,306 of the server's 65,536 MB.

The check counts each backend at the most memory it can reach while it runs a query, not at what it holds while idle:

  • Overhead. A backend that has served traffic holds about 64 MB: about 50 MB of cached table definitions and query plans, plus about 13 MB for one indexer dataset. An index rebuild builds a second dataset beside the serving one, and the chart runs it by default after an upgrade that changes the indexer's data version, so the price counts a second dataset too: 13 MB more.
  • Query memory. Each sort or hash node in a query plan may take work_mem, and a hash node may take work_mem times hash_mem_multiplier (2.0 by default). The migrator sets work_mem to 4 MB on the platform's pooled login role, which overrides the server's own value, and the default assumes about 3 such nodes per query plan, so 4 × 3 × 2 = 24 MB.

That makes 64 + 13 + 24 = 101 MB, the default of pgbouncer.pool.backendMegabytes. Raise it when your query plans are larger, or when the migrator could not set the role's work_mem: it then logs a warning, and every pooled backend uses the server's work_mem instead.

The check counts each alias at its ceiling, pgbouncer.databases.<alias>.maxDbConnections, not at the backends it keeps open while idle (minPoolSize). In that key, <alias> is the alias's name in values, such as api for dalp_api or indexerRebuild for dalp_indexer_rebuild. After a burst of traffic, the pooler keeps the backends it opened until pgbouncer.pool.serverIdleTimeout (600 seconds) closes them, so it can hold every alias at its ceiling for up to 10 minutes.

reservedMegabytes is the memory the server needs beside its backends and shared_buffers. Count autovacuum_work_mem (or maintenance_work_mem when autovacuum_work_mem is -1) once for each autovacuum worker (autovacuum_max_workers), and 128 MB for the indexer's index build: the indexer builds one index at a time, and its index-build session sets maintenance_work_mem to 128 MB whatever the server's value. Then add headroom for the operating system and Postgres' own background processes. The 64 GB example at the start of this section assumes 6 autovacuum workers (PostgreSQL's default is 3) at 512 MB, so 6 × 512 + 128 = 3,200 MB, plus 10% of RAM: 3,200 + 6,554 = 9,754 MB.

Two settings make the price closer to what your server holds:

  • A price per alias. pgbouncer.databases.<alias>.backendMegabytes prices that alias's backends at their own size instead of pgbouncer.pool.backendMegabytes. A rebuild backend (indexerRebuild) caches table definitions and query plans for two datasets and can hold more than a backend that only reads the serving dataset, so measure it during a rebuild and price it on its own.
  • A target share of RAM. memoryTargetPercent caps the priced total at a share of memoryMegabytes. At 100 the priced total may take all of memoryMegabytes, which leaves no room for memory the per-backend price misses. A lower value, such as 85, keeps the rest free.

If the backends, shared_buffers and the reserve do not fit the server's RAM, Postgres can run out of memory. On Linux with the default memory overcommit, the kernel then kills a backend, and Postgres ends every session, rolls back open transactions and refuses connections until its crash recovery finishes. The memory check runs only when memoryMegabytes is greater than 0, and memoryMegabytes ships as 0. Set sharedBuffersMegabytes and reservedMegabytes with it, or the render fails. The check trusts the RAM, shared_buffers, reserve and per-backend price you state. With pooling off, the chart never runs the memory check, so size the server's RAM yourself.

Raise pgbouncer.pool.backendMegabytes, and every pgbouncer.databases.<alias>.backendMegabytes you set, by about 13 MB for each indexer dataset beyond those two.

After a deploy, check that the server holds no more backends than the chart priced. Count the client backends with select count(*) from pg_stat_activity where backend_type = 'client backend';. The count stays at or below the alias ceilings across the peers plus directConnections (368 with the defaults), because PgBouncer refuses to open a server connection past an alias's maxDbConnections. A higher count means a consumer reaches Postgres without the pooler and without a place in directConnections: find it by application_name and client_addr in the same view, then route it through the pooler or add it to directConnections. Compare the server's memory use at the same time with the price: memory used, less shared_buffers, divided by that count, should stay at or below the average price: the priced backend total divided by the same count.

On a smaller server, lower the ceilings until they fit. A server with 4 GB of RAM, 1,024 MB of shared_buffers and a reserve of 922 MB (6 autovacuum workers at 64 MB, 128 MB for the index build, plus 10% of RAM) holds at most 21 backends at 101 MB. With Blockscout off and directConnections at 6, that leaves 15 for the pooler, so the maxDbConnections of all aliases together can be at most 7 on each peer. With Blockscout on, the 26 direct connections alone do not fit. For each alias, set poolSize to its maxDbConnections and keep minPoolSize at or below it. Then lower the per-pod pools (DATABASE_POOL_MAX_API, DATABASE_POOL_MAX_INDEXER, DATABASE_POOL_MAX_RUNNER, DATABASE_POOL_MAX_SCHEDULER and, for the cluster alias, DURABLE_POOL_MAX) or the maximum replica count of each role until the client-side check passes. A request past an alias's ceiling waits in the pooler's queue, and PgBouncer rejects it if it is still waiting after pgbouncer.pool.queryWaitTimeout (10 seconds).

Pooler requirements for prepared statements

Application connections through the pooler use named prepared statements. A connection prepares a statement once and reuses its name, so PostgreSQL plans each statement once per server connection instead of on every call. The pooler must track those names across the server connections it hands out.

The chart's pooler does. It runs PgBouncer 1.26 with max_prepared_statements at 512 (pgbouncer.pool.maxPreparedStatements). Each application connection keeps at most 100 statements prepared (global.dalpApp.config.database.preparedStatementCacheSize). Keep the pooler limit at or above that cache size.

A pooler you supply must track named prepared statements in transaction mode. PgBouncer 1.21 and later does when max_prepared_statements is greater than 0. These setups do not:

  • PgBouncer before 1.21, or with max_prepared_statements at 0.
  • Any pooler in statement mode.
  • A pooler that pins the session to one server connection on its first prepared statement, such as RDS Proxy. Pinning removes the connection reuse the pooler exists for.

With one of those, set global.dalpApp.config.database.preparedStatementCacheSize to 0. Pooled application connections then send every statement unprepared. Direct connections, such as the migrator's, never pass through the pooler, ignore this value and keep preparing.

A migration that changes a column's type invalidates the statements the pooler prepared before it. The first run of each such statement inside a transaction fails with cached plan must not change result type, once for each application process. That process then sends the statement unprepared, and a retry of the failed request succeeds. Restarting the application pods does not avoid the first failure, because the pooler keeps the old statement on its server connections.

PostgreSQL can switch a prepared statement to a generic plan after five executions. On a large, uneven database a few statements can run slower on that plan. If one does, set plan_cache_mode to force_custom_plan on the application role with ALTER ROLE ... SET. Role settings reach pooled connections. Connection startup options do not. This gives back the planning time that prepared statements save.

Secret injection: Conjur

Two secret systems, each with its own value and its own consumer.Two columns. On the left, Conjur and summon deliver deployment secrets when Conjur is switched on. A Conjur authenticator init container fetches an access token, then summon injects the resulting secrets as environment variables at process start, gated on that init container plus a conjur-certificate ConfigMap present in the namespace before the pod starts. Miss either one and the pod crash-loops at startup, naming the environment variable summon never injected, a faster signal than the underlying Conjur connectivity failure. On the right, the application's own secret-manager setting is a separate decision: pick one of local, aws, gcp, azure, or vault, and that choice decides where application-level secrets live at rest, independent of Conjur entirely. The highest-stakes value in this second system is the encryption master password, boxed below the provider choice. Rotate it in two steps: set the outgoing password as ENCRYPTION_PREVIOUS_MASTER_PASSWORD for the migration Job only, keep the new one as ENCRYPTION_MASTER_PASSWORD, then deploy. The migration Job decrypts with either key and re-seals the local secrets, the KYC data and the transaction code secrets under the new one. With the default pre-upgrade hook, it does so before runtime pods start with only the new key. The migrator's rotation boot step runs automatically on that same deploy. Remove the old password only after the migration Job succeeds. If you remove it too early, the next migration Job fails and gives a count of the rows in those three groups still under the old password. A lost master password makes every row sealed under it unreadable. A closing bar beneath both columns states the risk of getting the secret-manager provider wrong: mismatch it against your existing practice and you run two separate secret stores with two separate audit trails.Two secret systems, each with its own value and its own consumer.The same figure as the desktop variant, drawn portrait for phone widths. Conjur and summon deliver deployment secrets as environment variables at pod start, gated on an init container and a certificate ConfigMap. A missing one crash-loops the pod, naming the environment variable summon never injected, a faster signal than the underlying connectivity failure. The application's own secret-manager provider is a separate decision, one of local, aws, gcp, azure, or vault, that places application-level secrets, above all the encryption master password, at rest. Rotate the master password in two steps, old key then new, and remove the old one only once the rotation job succeeds, not just once its summary lines look clean. Mismatching the secret-manager provider against your existing practice runs two separate secret stores with two separate audit trails.

Conjur and summon deliver deployment secrets at pod start, while the application's secret-manager provider places application-level secrets at rest.

By default the chart renders the application secrets in global.dalpApp.env into one shared Kubernetes Secret that the Console and Platform API pods read, and each datastore block can read its password from a Secret you name in existingSecret. CyberArk Conjur is an opt-in path: global.conjur.enabled, or a service's own conjur.enabled, switches a service to Conjur and summon, and both ship false.

summon is Conjur's command-line tool. It reads a secrets.yml mapping of environment variable names to Conjur paths, resolves each path against Conjur, and starts the service process with the resolved values in its environment. With Conjur on, each pod runs a Conjur authenticator init container that fetches an access token, and summon injects the secrets as environment variables at process start.

Declare each service's secrets under <service>.conjur.secrets, a map of environment variable names to Conjur paths. The chart renders that map as a <release>-<service>-conjur-secrets ConfigMap, mounts it as /etc/summon/secrets.yml and wraps the container's entrypoint with summon. Changing a mapping is a values change and a pod restart. A service with no conjur.secrets entries runs without summon.

The published DALP images do not include summon or summon-conjur. The Conjur path needs images built on top of them with summon at /usr/local/bin/summon and the summon-conjur provider at /usr/local/lib/summon/summon-conjur. It also needs the authenticator init container and a conjur-certificate ConfigMap in your release namespace before you deploy.

A pod that starts before its Conjur authenticator init container can reach the Conjur server, or before the conjur-certificate ConfigMap exists, fails at process start and never starts with empty secrets. Its crash loop names the environment variable summon did not inject, which shows sooner than the Conjur connectivity failure behind it. Check the init container's logs first, because the main container's log shows only the symptom.

Application secret-manager providers

The application's own secret-manager setting is a separate choice from the delivery path in Conjur secret injection. It selects one provider: local, aws, gcp, azure or vault. Selecting a provider makes its configuration block required. For example, selecting vault requires a token, and selecting aws accepts an access key ID, region and secret access key.

local keeps application secrets encrypted under the master password in the platform's PostgreSQL database. Choose it only for development. For production, choose the one of aws, gcp, azure or vault that matches infrastructure you already operate, with rotation and audit practices in place for it. This setting decides where application-level secrets live at rest, as opposed to the deployment secrets that reach the pods at start. A provider that differs from your existing practice leaves you with two secret stores and two audit trails.

Encryption at rest

The platform encrypts its sensitive stored data under a master password that you set in ENCRYPTION_MASTER_PASSWORD. Security posture lists the data it seals. The platform refuses a password shorter than 16 characters when it reads its configuration, and refuses one under 128 bits of estimated entropy when a pod starts. Generate one from a cryptographic random source such as openssl rand -base64 32 and store it in your secret manager. Any pod with NODE_ENV other than development rejects the local development password.

BETTER_AUTH_SECRET ships with the published placeholder "strong-secret-of-at-least-32-characters". Production pods reject that placeholder on startup with “BETTER_AUTH_SECRET must be set to a unique value in production”, so replace it with a unique secret of at least 32 characters.

Never change BETTER_AUTH_SECRET on an existing environment. The platform derives from it the key that seals the login authenticator secrets, and no procedure re-seals them under a new value.

Change ENCRYPTION_MASTER_PASSWORD only through the rotation below. Data sealed under a lost master password stays unreadable. Without the master password, the platform cannot check any transaction code.

Rotate the master password

The rotation takes two deploys:

  1. Set the outgoing password as ENCRYPTION_PREVIOUS_MASTER_PASSWORD for the migration Job only, through dapp.migrator.env or, with Conjur, dapp.migrator.conjur.secrets. Set the new password as ENCRYPTION_MASTER_PASSWORD and deploy. Wait for the Helm upgrade to complete, which includes the migration Job and its catch-up run.
  2. Remove ENCRYPTION_PREVIOUS_MASTER_PASSWORD and deploy again.

The chart merges dapp.migrator.conjur.secrets over the runtime dapp.conjur.secrets map, so the migration Job still receives ENCRYPTION_MASTER_PASSWORD. Runtime pods never receive the previous password.

In the first deploy, the migration Job's required rotate-encryption step opens each of these with either password and re-seals it under the new one:

  • Secrets in the local secret manager.
  • Values of KYC templates.
  • Wallet authenticator secrets, the secrets behind transaction codes.
  • KYC documents in object storage.

The step logs one summary line per set, in this order: Encrypted secret rotation summary, KYC template values rotation summary, Wallet authenticator secret rotation summary and KYC encryption rotation summary. Each line has scanned, rotated, skipped and failed counts, and one failed row fails the migration Job. The Job then checks the KYC documents, and that check can fail even when every summary shows zero failures. Take the completed Helm upgrade as the end of step 1.

If you remove the previous password before the migration Job succeeds, the next Job fails with “ENCRYPTION_PREVIOUS_MASTER_PASSWORD is required” and a count for each of the four sets. Nothing is lost: set the previous password on the migration Job again and deploy.

The rotation does not reach the credentials of RPC endpoints that an administrator adds at runtime, beneficial owner declarations, administrator changes held for approval or the input of a participant import. The platform cannot open those after a rotation. Finish held changes and participant imports before you rotate, and enter the RPC endpoint credentials again after it.

Transaction code secrets on upgrade

Older releases stored the wallet authenticator secrets as plain text. On upgrade, the migration Job's last required step, encrypt-wallet-otp-secrets, encrypts each plain secret and clears the plain copy. It logs “Encrypted the wallet authenticator secrets an older release stored as plain text” with a count, and fails the Job with “Wallet authenticator secret encryption failed” when it cannot.

During the rollout, a pod of the older release can still store a plain secret. With the default pre-upgrade hook and dapp.migrator.catchUp.enabled set to true, which is the default, the migration Job runs again after the rollout and encrypts it. Otherwise the next migration Job encrypts it. Backups taken before the upgrade still hold the plain secrets.

After this step, an older release cannot check transaction codes, because it reads only the plain copy. A rollback to an older release stops every transaction code check.

Write-once report storage

global.dalpApp.config.objectStorage.objectLock.enabled turns on write-once storage for archived reports. It defaults to false. Set OBJECT_STORAGE_OBJECT_LOCK_ENABLED to the same effect outside the chart.

With it on, every file a filing generates is written with a lock that lasts for the retention class of its obligation: five, seven or ten years, or 100 years for Indefinitely. DALP then refuses to replace or delete that file until the lock ends, and each pod refuses to start if the bucket cannot enforce the lock. The error names the bucket and what it is missing.

The lock runs from the moment the filing is generated. The retention period the platform erases by runs from the day the filing is accepted, so the lock ends slightly before that period does.

Provider
Prerequisite on the bucket
What enforces the lock
aws, s3-compatible
Created with Object Lock enabled
Object Lock in compliance mode
azure
Blob versioning and version-level immutability on the container
A locked immutability policy on each blob
gcp
Created with object retention enabled and object versioning off
Object retention in locked mode
filesystem
Not supported
Pods refuse to start

Compliance mode cannot be shortened or removed by anyone, including the cloud account's root user, until the date passes. Check the setting on a test bucket first.

Before you turn it on:

  • Create the bucket with the prerequisite above. Most providers can enable it only when the bucket is created.
  • Leave the bucket's default retention unset. The bucket is shared with every other DALP object, and a default would lock those too. DALP sets retention on each report file itself.
  • On S3, give the storage credentials s3:PutObjectRetention, s3:GetObjectRetention, s3:GetBucketObjectLockConfiguration, s3:DeleteObjectVersion and s3:ListBucketVersions.
  • Deny s3:PutObject and s3:DeleteObject on the reporting/ prefix to every other principal. Object Lock protects a stored version, so a client with direct bucket access could still add a newer version or a delete marker over it. The locked version stays intact and report digests expose the change, but a bucket policy stops it happening.

Keep the value on once locked files exist. With it off, DALP deletes an object with a plain delete, which on a versioned bucket hides the object and leaves its data behind.

Switch application layers on or off

DALP sells seven application layers as licensed modules. The deployment decides which modules it offers, and that is the licence. Each switch sits under global.dalpApp.config.features. Each switch also reads an environment variable when you set the application config from the environment.

Pricing layer
Value
Environment variable
Default
Primary market
tokenSale
FEATURE_TOKEN_SALE
true
Secondary market
tradingVenue
FEATURE_TRADING_VENUE
false
Market operations and compliance
marketOperations
FEATURE_MARKET_OPERATIONS
true
Reporting and finance operations
regulatoryReporting
FEATURE_REGULATORY_REPORTING
false
Market surveillance
surveillance
FEATURE_SURVEILLANCE
false
Self-custody
custodyOps
FEATURE_CUSTODY_OPS
true
Client portal
clientPortal
FEATURE_CLIENT_PORTAL
true

Primary market covers offerings and fund dealing: the subscription and redemption requests of a fund and the settlement of its dealing days. Secondary market covers the trading venue. Market operations and compliance covers the audit trail views and export. Self-custody covers the custody gateway, embedded wallets and multisig wallets. Client portal covers investor sign-in to the Investor portal. Surveillance sends the live FIX copy of every order and trade to a surveillance provider, and needs the secondary market.

Everything else DALP ships is base platform: always on, with no switch. That includes issuance, corporate actions and holder votes, second-person approval of sensitive changes, and delivery-versus-payment (XvP) and escrow settlement. The AI assistant is not a module. The bank rail and Canton are neither modules nor base platform: each has its own switch, and each is off by default (see Bank rail and Canton).

A module switched off for the deployment exposes no screens or API routes, and its routes return 404. A module switched on for the deployment stays available until an organisation owner disables it in Organisation settings, after which reads continue and writes fail with platform.module.DISABLED (Licensed module refusals).

New organisations inherit every enabled deployment module, and existing organisations gain newly enabled modules unless they opted out. Turning a module off at deployment level leaves in-flight payouts, trading sessions and provider syncs running while refusing new writes.

global:
  dalpApp:
    config:
      features:
        tradingVenue: true
        surveillance: true

Canton

Canton ships off by default in release 3.2. Enable it with global.dalpApp.config.features.canton: true (or CANTON_ENABLED=true outside the chart). Organisations cannot opt out, and Organisation settings shows no row for it.

While Canton is off:

  • The Console and Investor portal hide all Canton networks, asset types, screens and menus.
  • Canton wallet routes (/api/v2/wallets and sub-paths) return 404. The OpenAPI document, SDK and CLI still document them as requiring features.canton, and Canton CLI commands return FEATURE_NOT_ENABLED (“Canton is not enabled on this deployment.”).
  • GET /api/v2/tokens returns 400 COLLECTION_FILTER_VALUE_INVALID when filtered to Canton via filter[family]=canton, a Canton filter[network] or X-Network-Id, and otherwise returns EVM tokens only.
  • Token reads under /api/v2/tokens/{assetId}, and the mint, approve, transfer and holding unlock writes, that send instrumentAdmin return 400 ASSET_REF_INVALID: send the token's EVM contract address without instrumentAdmin. The Canton-only routes (the accounts read, account registration, holding freeze, burner capability revocation, account snapshot and transfer acceptance) return 422 OPERATION_FAMILY_UNSUPPORTED with an empty supportedFamilies: they serve only Canton, so they need features.canton on. A write is refused before it asks for wallet verification, and neither answer is retryable.
  • Any other route selecting a Canton network fails with CANTON_NETWORK_NOT_CONFIGURED.
  • Canton writes outside the token routes are refused before they ask for wallet verification, and none of these answers is retryable. A Canton token create and its preflight return 422 OPERATION_FAMILY_UNSUPPORTED with supportedFamilies: ["evm"]. The Canton feature attach, dividend declaration and dividend claim return 400 ASSET_REF_INVALID, and the Canton feature revocations, governance configurations and execution capabilities and airdrop writes return 422 OPERATION_FAMILY_UNSUPPORTED with an empty supportedFamilies. Canton governance proposals, votes, queue operations and executions return 422 OPERATION_FAMILY_UNSUPPORTED with ["evm"], and Canton XvP writes return 400 REQUEST_INVALID. The Canton compliance module install and uninstall return 422 OPERATION_FAMILY_UNSUPPORTED with ["evm"], and the Canton-only updates of the compliance module list and the attester registry return it with an empty supportedFamilies. A write held by an approval policy is still asked for wallet verification first, then refused before it is queued.

You also need an enabled Canton network entry and a reachable participant. See Helm charts for the canton block.

global:
  dalpApp:
    config:
      features:
        canton: true

Bank rail

The bank rail mints tokens for bank-confirmed payments and instructs bank payouts to holder bank accounts. It is off by default. Enable it with global.dalpApp.config.bankFix.enabled: "true" (or BANK_FIX_ENABLED=true).

Like Canton, organisations cannot opt out of the deployment switch. Under Organisation settings → Approvals, the Bank rail row decides whether six actions wait for a second approver: resolving parked credits, minting above the credit limit, wallet rotations, reserve adjustments, mint-limit raises and allowing other supply managers. It starts off in every organisation, so enable it before handling client funds.

While the switch is off:

  • The Console hides the Bank rail section.
  • The Investor portal and Console Portfolio hide bank deposits and withdrawals.
  • Bank rail routes return 404, and DALP opens no bank FIX sessions.

bankFix.mode defaults to simulator, a local FIX simulator listening on 127.0.0.1:9878 for testing only. For production, set bankFix.mode to external and point bankFix.external.host and bankFix.external.port at your bank's FIX acceptor so scheduler pods can dial it.

Connection logon passwords live in the application secret manager, set by a Bank rail manager in the Console, and sessions open only when a connection is active. See Set up a connection for all bankFix settings and startup checks.

global:
  dalpApp:
    config:
      bankFix:
        enabled: "true"
        mode: "external"
        external:
          host: "fix.bank.example"
          port: "9443"

External-token auto-registration

global.dalpApp.config.features.externalTokenAutoRegistration, or the environment variable FEATURE_EXTERNAL_TOKEN_AUTO_REGISTRATION, decides whether the platform registers an unknown ERC-20 or ERC-3643 token on its own when it lands in a wallet an organisation manages. It is false by default. While it is off, a token sent to a managed wallet stays unregistered until an asset manager registers it by hand.

With it on, anyone can make the platform write a registry entry by sending a token to a managed wallet, up to 20 tokens per organisation per day, and no person confirms the entry. Turn it on only when every organisation on the deployment accepts that. See External tokens.

Governance ballot domain

Set global.dalpApp.env.DALP_GOVERNANCE_DOMAIN_SCOPE to a name that belongs to this deployment alone. The platform hashes the name into the signing domain of governance poll ballots. A ballot signed in one deployment must not verify in another, so never copy the name between installs. Changing it invalidates every ballot signed under the old name.

The chart has no default for this value. helm install and helm upgrade fail while it is empty or set to local. A production process also refuses to start on either value, and the error names DALP_GOVERNANCE_DOMAIN_SCOPE. Set it in the values file, not through a Conjur secret, because the chart checks the value when it renders.

Custody gateway keeper gas price

The custody gateway keeper can ask a withdrawing client to repay the gas it spends on the payout, in the withdrawn coin. To turn gas into that coin it needs the price of the chain's native coin, and the platform reads no market feed for it. Without a price, a request carries no gas recharge and the organisation pays the keeper's gas.

Set global.dalpApp.config.custodyOps.gateway.nativePrices to a list of prices, one for each network and gateway coin:

global:
  dalpApp:
    config:
      custodyOps:
        gateway:
          nativePrices:
            - chainId: 1
              token: "0x00000000000000000000000000000000000000c1"
              coinPerNativeCoin: "3000.25"
              observedAt: "2026-11-11T08:00:00Z"
Field
Meaning
chainId
The chain whose native coin the price is for.
token
The gateway coin the gas is repaid in. Add one entry per coin.
coinPerNativeCoin
Whole units of the coin that one whole unit of the native coin buys, as a quoted decimal above zero.
observedAt
When you read the price.
nativeDecimals
Decimals of the native coin. Defaults to 18. Set it for a network whose native coin differs.

An entry stops quoting once observedAt is older than nativePriceMaxAgeSeconds (default 3600, range 60 to 604800, overridable via CUSTODY_OPS_GATEWAY_NATIVE_PRICE_MAX_AGE_SECONDS). Any missing, stale or unreadable entry quotes no gas recharge and logs a warning, so stale prices never overcharge a client.

Refresh observedAt and the price together on every update. Quotes are capped at the gas ceiling stored on the gateway.

Custody credential identity key

Set global.dalpApp.env.CUSTODY_CREDENTIAL_IDENTITY_KEY to a value of at least 32 characters that belongs to this deployment alone. The platform hashes each custodian credential identity under this key, so that it can tell when two organisations hold the same custodian credential. The key grants no access. Never copy it between installs, because the stored hashes derive from credential material.

The chart ships the development placeholder local-custody-credential-identity-key, and a production pod refuses to start on it. CUSTODY_CREDENTIAL_IDENTITY_KEY_ID, default v1, names the key the stored hashes were written under. Rotating the key leaves every stored identity incomparable until they are hashed again under the new key, so raise the key id when you rotate.

Contract deployment job

The chart can deploy DALP's smart contracts from a Job inside your cluster, signing with a key only you hold. The Job is off until you set contractsDeploy.enabled: true and name the network node endpoint in contractsDeploy.rpcUrl.

The Job reads its key from Conjur when contractsDeploy.conjur.enabled is true, with PRIVATE_KEY mapped to a Conjur variable under contractsDeploy.conjur.secrets. Otherwise it reads the key from an existing Kubernetes Secret named in contractsDeploy.privateKeySecret.name, under the entry contractsDeploy.privateKeySecret.key (default PRIVATE_KEY). With neither set, the Job fails without sending a transaction.

The first deploy decides the administrator. On a network with no deployment journal, the key the Job signs with becomes the first administrator of the directory's access manager. The access manager answers every administrator check of the contract directory, so that key administers the directory and holds the recovery guardian role the platform guardian accepts for wallet recovery. Check which key the Secret or Conjur variable holds before the first run. Once named people hold the access manager's roles, the maker-checker commands take every role from that key.

An upgrade keeps the administrator. On a network deployed before the directory had an access manager, the run deploys one and links the directory to it in the same transaction as the directory upgrade. Its first administrator is the key the Job signs with, which must hold both the directory administrator role and the directory's root administrator role. When it lacks either, the run stops before sending anything and names the network, the key and the missing role. Grant that role on the directory to the key, or put the key that holds both in the Secret or Conjur variable, and run the Job again. Later administrator changes are made on the access manager itself.

Any key that holds the roles can run it again. The Job does not check its key against a fixed address. A re-run with a different key keeps every step the journal records and sends the new steps from the new key, so a deploy key can be retired after a release once the new key holds the roles the run uses. When the earlier key left a step half-sent, the Job stops before sending anything and names that key and step. Re-run with the earlier key until the step completes, then switch keys.

A deploy window bounds a later release. When the key in the Secret or Conjur variable holds the open deploy window of the directory's access manager, the Job stops before that window has less than 15 minutes left, with no step failed. Extend the window and run the Job again with the same key. Put a fresh window key in Conjur for the run and remove it once the release is deployed. Maker-checker commands lists the steps. While maker-checker is off, or before the directory links an access manager, a key that holds no open window, such as the key that first deployed the network, runs as before. With maker-checker on, the Job refuses such a key before it sends anything.

The journal lives on a volume that Helm keeps on upgrade and uninstall, so a re-run resumes instead of deploying the contracts again at new addresses. Put it on a Retain-policy StorageClass (see Prerequisites). Each run stops after contractsDeploy.activeDeadlineSeconds, one hour by default.

Documentation host

The documentation pod writes one public host into llms-full.txt, the “Agent endpoints” section of llms.txt, markdown canonical Link headers, canonical and Open Graph tags, sitemaps, robots.txt and Model Context Protocol URLs.

AI agents follow these links directly, so the host must match the public URL serving your docs. The chart passes that host to the pod via PUBLIC_URL. Page links inside llms.txt are host-relative paths resolved against the host that served the index.

With the default values the documentation runs under /docs on the Console hostname, and the chart takes that host from the first docs.ingress.hosts entry. That entry ships as dapp.k8s.orb.local with the ingress class dalp-nginx, both development values, so set docs.ingress.hosts to your Console hostname and docs.ingress.ingressClassName to your class. The OpenShift profile serves the documentation on its own Route host and takes the host from docs.openShiftRoute.host. Set docs.publicUrl only to override the host the chart picks.

Give docs.publicUrl as a scheme and a host with no path, such as https://console.example.com. The site adds the /docs path itself. The chart's values schema rejects a value with a path, so helm install, helm upgrade and helm template fail on one.

When docs.publicUrl is empty, which is the default, the chart uses https:// and the first host it finds:

  1. The first host in docs.ingress.hosts, when docs.ingress.enabled is true.
  2. The first entry in docs.httpRoute.hostnames, when docs.httpRoute.enabled is true.
  3. docs.openShiftRoute.host, when docs.openShiftRoute.enabled is true.

The documentation chart enables its HTTP route by default with the hostname docs.settlemint.com. An install that turns off docs.ingress and keeps this HTTP route must set docs.httpRoute.hostnames or docs.publicUrl, or the links point at the public documentation host, docs.settlemint.com. With no enabled route and no docs.publicUrl, the chart sets no PUBLIC_URL, and the links also point at docs.settlemint.com.

A PUBLIC_URL entry in docs.env replaces the value the chart works out. The schema does not check this entry, so give it a scheme and a host with no path.

Ask AI, the documentation's question-and-answer chat, turns on only with its own key. Ask AI provider key describes that OpenRouter key and the limits on questions.

Documentation served from the Console

The Console also answers /docs on its own hostname. When a /docs request reaches the Console instead of a documentation route, the Console forwards it to the documentation service and returns the response, so the reader stays on the Console hostname. A request for /docs itself is redirected to /docs/operators/introduction. The chart builds the Console configuration from global.dalpApp.config, and the Console reads two keys under global.dalpApp.config.docs to decide where to forward. The chart sets neither key.

Key
What it does
global.dalpApp.config.docs.internalUrl
The address the Console forwards to. When it is empty the Console uses global.dalpApp.config.docs.url, and when both are empty it uses http://docs:3030.
global.dalpApp.config.docs.proxyAllowedHosts
A comma-separated list of host names. The Console forwards only to the host docs, a host on this list or a host name that ends in .localhost. The default is an empty list.

The address must use http or https, and the Console keeps only its scheme, host and port. An address with another scheme, or with a host the list does not admit, is ignored and the Console forwards to http://docs:3030. To forward to a documentation service under another name, set internalUrl to its address and add its host name to proxyAllowedHosts.

The Console removes the authorization, cookie and x-api-key headers from each request before it forwards it, so a Console session credential never reaches the documentation service. It also removes set-cookie from the response, so the documentation service cannot set a cookie on the Console hostname.

Frequently asked questions

Can I supply a datastore password through a plain Kubernetes Secret instead of Conjur?

Yes. Each postgresql and redis block under global.datastores accepts its own existingSecret, which the chart reads as an ordinary Kubernetes Secret, with or without Conjur. The application's other secrets, such as the encryption master password, reach the pods through the shared Secret the chart renders from global.dalpApp.env, or through Conjur and summon when you switch Conjur on.

If I set the application's DATABASE_TLS value while pooling is enabled, does it do anything?

No. The platform ignores it and raises no error. When global.pgbouncer.enabled is true, the application connects to the pooler's plaintext in-cluster listener with its own TLS setting turned off. DATABASE_TLS takes effect only on direct connections, such as the migrator's, or on every connection when pooling is off.

Which model provider keys does Ask AI accept?

Ask AI accepts only an OpenRouter key. A key from another provider still makes /docs/api/chat-config report enabled, and every answer then ends with “The answer could not be completed. Try again.” The platform chooses the model, and the key does not change it. Ask AI provider key shows where to set the key.

Can the documentation run without internet access?

Yes, apart from Ask AI and changelog release videos. The documentation pod serves all pages, search and video posters locally without contacting external hosts. Pressing play on a release video loads the player from www.youtube-nocookie.com (and Watch on YouTube opens www.youtube.com), which fails offline while keeping the poster and caption visible.

In offline clusters, set docs.openRouter.existingSecret: "" and leave docs.openRouter.apiKey empty so Ask AI stays hidden. The bundled docs load no third-party analytics unless docs.leadCapture.enabled is true (default false, reported as leadCapture on /docs/api/site-config).

Does postgres-exporter route through PgBouncer like the application does?

No, it connects directly to Postgres. With it off you lose the aggregate backend-count view and PostgresAggregateBackendsHigh, while the pods' own pool-pressure gauges keep working.

Was this page helpful?