Applies to v1.3.18

Configuration Reference

Reference for the settings of an AI API Mapper installation. The installer (Installing AI API Mapper) writes every required value for you, so a new installation runs without any of the settings below. Change one only when you need a behaviour the default does not give. For the shape of the deployment (services, ports, networks, data flows) see Deployment topology.

How to set a value

An installation has two files the installer owns, in the installation directory (./apimapper unless you chose another):

  • apimapper/docker-compose.yml — written again on every run of the installer, including every upgrade. Do not edit it: your change would be lost.
  • apimapper/.env — kept across runs. Every value already in it stays as it is, and lines you add are carried over.

Docker Compose uses .env only to fill in the ${...} references of the compose file; it does not pass .env entries to the containers. So:

  • A variable the installer's compose file reads (see the table below) is set in apimapper/.env.

  • Every other setting on this page is set in a compose file of your own next to the installer's, for example apimapper/docker-compose.local.yml, under the environment of each service it applies to:

    services:
      portal-api:
        environment:
          AISI__WEBHOOKS__ENABLED: "true"
          AISI__WEBHOOKS__PUBLICBASEURL: https://apimapper.example.com
      jobs-worker:
        environment:
          AISI__WEBHOOKS__ENABLED: "true"
          AISI__WEBHOOKS__PUBLICBASEURL: https://apimapper.example.com
    

    Start the platform with both files, and again after every upgrade, because the installer restarts the platform with its own file only:

    docker compose --project-directory apimapper --env-file apimapper/.env \
      -f apimapper/docker-compose.yml -f apimapper/docker-compose.local.yml up -d
    

    The installation guide uses the same pattern for an AISI spool volume and a corporate proxy; several such files can be combined with more -f options.

  • Overriding a value the installer sets. Write the key exactly as the installer's docker-compose.yml spells it (for example DataLifecycle__RefreshTokenRetentionDays, not DATALIFECYCLE__REFRESHTOKENRETENTIONDAYS). Compose then replaces the installer's value. A second spelling would put both variables into the container, and which one the platform reads is not defined.

Variables the installer's compose file reads from apimapper/.env:

Variable Written by the installer Description
REGISTRY docker.io/codedprojects (or --registry) Where the platform images come from. See Image registry.
APIMAPPER_VERSION, DATABASE_MIGRATOR_IMAGE_TAG, PORTAL_API_IMAGE_TAG, RUNTIME_HOST_IMAGE_TAG, JOBS_WORKER_IMAGE_TAG, GATEWAY_IMAGE_TAG, PORTAL_WEB_IMAGE_TAG The release being installed Image tags. Every run of the installer sets them to the release it installs.
APIMAPPER_PLATFORM linux/amd64 The image platform.
POSTGRES_IMAGE, RABBITMQ_IMAGE, VALKEY_IMAGE postgres:17-alpine, rabbitmq:3-management-alpine, valkey/valkey:8-alpine Infrastructure images. Point them at a mirror if the host cannot reach Docker Hub.
APIMAPPER_HOST localhost (or --host) The host name browsers and AI clients use. Every public address, the CORS origins and the sign-in callbacks are derived from it.
PORTAL_HTTPS_PORT, GATEWAY_HTTPS_PORT 8443, 5253 The two published HTTPS ports.
DOWNSTREAM_OAUTH_PUBLIC_BASE_URL, DOWNSTREAM_OAUTH_PORTAL_BASE_URL https://<host>:5253/portal, https://<host>:8443 See OAuth connections of authentication profiles.
LICENSE_DIR ./license The folder mounted read-only at /license in runtime-host. See License file.
CERTS_DIR ./certs The folder holding apimapper.crt and apimapper.key, used by the Gateway and the Portal.
JOBS_WORKER_REPLICAS 1 How many Jobs Worker containers run. See Running more Jobs Workers.
POSTGRES_USER, POSTGRES_PASSWORD, RABBITMQ_PASSWORD apimapper, generated Database and broker credentials.
PORTAL_SIGNING_KEY, PORTAL_SIGNING_KEY_PEM, PORTAL_PREVIOUS_SIGNING_KEY_PEM Generated; the last one empty Portal token signing. See Portal token signing.
MANAGED_SECRETS_ENCRYPTION_KEY, MANAGED_SECRETS_KEY_RING_INSTALL_1 Generated Encryption of the platform's managed secrets. Never change them: data encrypted with them would become unreadable.
A2A_PUSH_CREDENTIAL_KEY Generated Encryption key of A2A push-notification credentials.
BOOTSTRAP_SUPERADMIN_USERNAME, BOOTSTRAP_SUPERADMIN_EMAIL, BOOTSTRAP_SUPERADMIN_PASSWORD supadmin, supadmin@apimapper.local, generated The first administrator, created at the first start if no such user exists. Changing them later does not change an existing user: change the password in the Portal.

Keep apimapper/.env readable by the installing user only, and keep a backup of it: it holds the platform's own secrets.


Environment variable naming

The platform reads its settings from environment variables. A double underscore (__) separates the levels of a setting's path, and names are not case-sensitive to the platform. For example:

CONNECTIONSTRINGS__PLATFORMDATABASE  →  ConnectionStrings:PlatformDatabase
JOBS__RABBITMQ__PASSWORD             →  Jobs:RabbitMq:Password

A list setting takes one variable per entry, numbered from zero: CORS__ALLOWEDORIGINS__0, CORS__ALLOWEDORIGINS__1, and so on. Durations are written [d.]hh:mm:ss, so 1.00:00:00 is one day and 00:05:00 five minutes.


Required — all services

The installer sets all of these. They are listed so you can recognize them; there is nothing to change.

Variable Services Description
CONNECTIONSTRINGS__PLATFORMDATABASE Portal API, Runtime Host, Jobs Worker, Database Migrator Connection string of the platform database. The installer points it at its own PostgreSQL container, with POSTGRES_USER and POSTGRES_PASSWORD from .env.
PLATFORM__PERSISTENCE__PROVIDER Portal API, Runtime Host, Jobs Worker, Database Migrator PostgreSql in an installer deployment.
PLATFORM__MANAGEDSECRETS__ENCRYPTIONKEY Portal API, Runtime Host, Jobs Worker Base64-encoded AES-256 key (32 bytes), from MANAGED_SECRETS_ENCRYPTION_KEY. All three services must share the same value.
PLATFORM__MANAGEDSECRETS__CURRENTKEYID Portal API, Runtime Host, Jobs Worker The active key ring slot: install-1.
PLATFORM__MANAGEDSECRETS__KEYRING__{KEYID} Portal API, Runtime Host, Jobs Worker One variable per key ring slot; the installer writes install-1 from MANAGED_SECRETS_KEY_RING_INSTALL_1. At minimum the current key ID slot must be present.

Required — Portal API

Set by the installer:

Variable Description
AUTHENTICATION__SIGNINGKEYPEM RSA private key that Portal access tokens are signed with, from PORTAL_SIGNING_KEY_PEM (the base64 form of the PEM, on one line). Portal API refuses to start in Production without it.
AUTHENTICATION__SIGNINGKEY Symmetric signing key, from PORTAL_SIGNING_KEY. Used only when no PEM is configured.
JOBS__RABBITMQ__HOST RabbitMQ host name: rabbitmq.
JOBS__RABBITMQ__PASSWORD RabbitMQ password, from RABBITMQ_PASSWORD.
CACHING__REDIS__CONNECTIONSTRING Valkey connection string: valkey:6379.
CACHING__REDIS__INSTANCENAME Key prefix of this service's cache entries. Default: apimapper:portal:. Change it only when several installations share one Redis or Valkey.
CORS__ALLOWEDORIGINS__0 Browser origins allowed to call Portal API. The installer sets __0 to the Portal address and __1 to the Gateway address. Add __2, … for more.

Portal token signing

Portal access tokens are signed by Portal API and validated by Runtime Host. Runtime Host needs no signing configuration: Portal API publishes its validation key, and Runtime reads it from the platform database.

Variable .env Description
AUTHENTICATION__SIGNINGKEYPEM PORTAL_SIGNING_KEY_PEM The active RSA private key. Required in Production.
AUTHENTICATION__PREVIOUSSIGNINGKEYPEM PORTAL_PREVIOUS_SIGNING_KEY_PEM The retiring key during a rotation. Tokens signed with it keep validating until it is removed. Leave empty when not rotating.
AUTHENTICATION__REQUIREASYMMETRICSIGNINGINPRODUCTION — Defaults to true. Keep it: with a symmetric key, anything able to validate a token could also mint one.

Rotating the key. Generate a new key (openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out portal-signing.pem) and take its base64 form on one line (base64 < portal-signing.pem | tr -d '\n'). In apimapper/.env, move the current value of PORTAL_SIGNING_KEY_PEM to PORTAL_PREVIOUS_SIGNING_KEY_PEM, put the new value in PORTAL_SIGNING_KEY_PEM, and restart the platform. Once the access-token lifetime (30 minutes in an installer deployment) has elapsed, empty PORTAL_PREVIOUS_SIGNING_KEY_PEM and restart again. Doing it in one step invalidates every token in flight at the moment of the swap.

The public keys are published at GET /.well-known/jwks.json, and the OAuth metadata advertises jwks_uri. When no PEM is configured, that document returns an empty key set.


Required — Runtime Host

Set by the installer:

Variable Description
JOBS__RABBITMQ__HOST RabbitMQ host for the platform's message bus.
JOBS__RABBITMQ__PASSWORD RabbitMQ password.
CACHING__REDIS__CONNECTIONSTRING Valkey connection string.
CACHING__REDIS__INSTANCENAME Key prefix for Runtime cache entries. Default: apimapper:runtime:.
CORS__ALLOWEDORIGINS__0 Allowed CORS origin for direct Runtime API access. Add __1, __2, … for additional origins.

Required — Jobs Worker

Set by the installer:

Variable Description
JOBS__RABBITMQ__HOST RabbitMQ host.
JOBS__RABBITMQ__USERNAME RabbitMQ user name: apimapper. (The platform's own default, guest, is not acceptable in production.)
JOBS__RABBITMQ__PASSWORD RabbitMQ password.

Required — Gateway (YARP)

Set by the installer:

Variable Description
REVERSEPROXY__CLUSTERS__PORTAL-API-CLUSTER__DESTINATIONS__PRIMARY__ADDRESS Internal URL of Portal API: http://portal-api:5179/.
REVERSEPROXY__CLUSTERS__RUNTIME-HOST-CLUSTER__DESTINATIONS__PRIMARY__ADDRESS Internal URL of Runtime Host: http://runtime-host:5065/.
CORS__ALLOWEDORIGINS__0 Browser origins allowed to reach the Gateway: the Portal address. Add __1, __2, … for additional origins.

The service names are fixed in an installer deployment, so these addresses never need changing.


Optional — RabbitMQ TLS

By default RabbitMQ connections are plaintext (AMQP, port 5672). That is safe in an installer deployment: the broker runs on the installation's own Docker network and its port is not published on the host. Enable TLS when you point the platform at a broker outside that network, such as a managed cloud broker (Amazon MQ, CloudAMQP), or when compliance requires encryption in transit.

Variable Description
JOBS__RABBITMQ__USESSL true to enable TLS for the RabbitMQ connection. Default: false.
JOBS__RABBITMQ__PORT Change to 5671 (AMQPS) when UseSsl=true.
JOBS__RABBITMQ__SSLSERVERNAME Required when TLS is enabled. Must match the CN or SAN in the broker's server certificate.
JOBS__RABBITMQ__SSLCERTPATH Path, inside the container, to a client PFX/PEM certificate. Only needed for mutual TLS.
JOBS__RABBITMQ__SSLCERTPASSWORD Passphrase for the client certificate file.

Set them on Portal API, Runtime Host and Jobs Worker alike.


Optional — TLS / HTTPS

In an installer deployment, TLS is terminated by the Gateway (port 5253) and by the Portal container (port 8443), both with the certificate in apimapper/certs/apimapper.crt and apimapper.key. To use your own certificate, replace the two files (PEM) and restart gateway and portal-web; see After the installation. The services behind the Gateway speak plain HTTP on the installation's own network and trust forwarded headers from the private address ranges.

Variable Description
KESTREL__ENDPOINTS__HTTPS__CERTIFICATE__PATH Gateway only. Path of the certificate inside the container. The installer sets /etc/certs/apimapper.crt.
KESTREL__ENDPOINTS__HTTPS__CERTIFICATE__KEYPATH Gateway only. Path of the private key inside the container. The installer sets /etc/certs/apimapper.key.
TRANSPORTSECURITY__TRUSTEDUPSTREAMTLSTERMINATION true when TLS is terminated before the service and forwarded headers are trusted. The installer sets true on every service.
TRANSPORTSECURITY__KNOWNPROXIES__0 Address of a proxy whose forwarded headers are trusted. Add __1, __2, … for more.
TRANSPORTSECURITY__KNOWNNETWORKS__0 A CIDR range whose forwarded headers are trusted. The installer sets __0 to __2 to 172.16.0.0/12, 192.168.0.0/16 and 10.0.0.0/8.

If you place a load balancer in front of the Gateway, see Deployment topology for which proxies to trust.


Optional — Observability

The platform does not ship a collector or monitoring backends. Bring your own OpenTelemetry collector and the backends behind it; the platform sends to it and exposes a scrape endpoint for Prometheus-compatible scrapers.

  • Traces and metrics over OTLP. Every service exports over OTLP once OBSERVABILITY__OTLPENDPOINT is set; the exporter's target is taken from the standard OpenTelemetry variables, so set OTEL_EXPORTER_OTLP_ENDPOINT to the same address.
  • Metrics at /metrics. Every service also exposes Prometheus metrics at /metrics, whether or not OTLP is on.
  • Logs are not exported over OTLP. They are written to each container's standard output (docker compose logs) and to a rolling file inside the container, one line per event, with the CorrelationId the caller also receives in the X-Correlation-Id response header. Collect them from standard output with your collector's container-log receiver or a Docker logging driver.
Variable Description
OBSERVABILITY__OTLPENDPOINT Turns on the OTLP export of traces and metrics. Set it to your collector's address, e.g. http://otel-collector:4317. Unset: nothing is exported.
OTEL_EXPORTER_OTLP_ENDPOINT The collector address the exporter sends to, e.g. http://otel-collector:4317. Set it together with OBSERVABILITY__OTLPENDPOINT.
OTEL_EXPORTER_OTLP_PROTOCOL grpc (default, port 4317) or http/protobuf (port 4318).
OBSERVABILITY__ENABLEPROMETHEUSSCRAPINGENDPOINT Default true. false removes the /metrics endpoint.
OBSERVABILITY__RESTRICTDIAGNOSTICENDPOINTSTOLOCALNETWORKS Default true: /health and /metrics answer only callers from the allowed networks below (or, for /metrics, with the bearer token); anyone else receives 404. false opens them to every caller that can reach the service.
OBSERVABILITY__METRICSBEARERTOKEN Static bearer token for /metrics. When set, a scraper presenting Authorization: Bearer <token> is admitted from any address. Use it instead of network allowlisting where the scraper's address is not fixed. Generate: openssl rand -hex 32.
OBSERVABILITY__DIAGNOSTICALLOWEDNETWORKS__0 A CIDR network allowed to reach /health and /metrics. The installer sets __0 to __2 to the private ranges 172.16.0.0/12, 192.168.0.0/16 and 10.0.0.0/8; add __3, __4, … for more.
OBSERVABILITY__LOGFULLCLIENTADDRESS Default false: request logs record the client's network only (the last IPv4 octet, or the low 80 bits of an IPv6 address, are dropped). true logs the full address; consider your log retention before turning it on.

The services report themselves as CodedProjects.AI.ApiMapper.Portal.Api, CodedProjects.AI.ApiMapper.Runtime.Host, CodedProjects.AI.ApiMapper.Jobs.Worker and CodedProjects.AI.ApiMapper.Gateway.Host (service.name). Their ports are not published on the host: Portal API listens on 5179, Runtime Host on 5065 and Jobs Worker on 5188 (HTTP), and the Gateway on 5253 (HTTPS), on the installation's Docker network (apimapper_default). Run the scraper or collector on that network, or reach it from there. Set the variables on every service you want to observe. Signals and metric names: Observability Guide.


Optional — External Authentication (OIDC/Entra ID/Keycloak)

External identity providers are configured in the Portal. The installer sets the callback address from the host name and Gateway port.

Variable Description
AUTHENTICATION__EXTERNALAUTHCALLBACKBASEURL Public base URL of Portal API for OIDC redirect callbacks. The installer sets https://<host>:5253/portal.
AUTHENTICATION__EXTERNALAUTH__0__CLIENTID Client ID for the first OIDC provider.
AUTHENTICATION__EXTERNALAUTH__0__CLIENTSECRET Client secret for the first OIDC provider.

Optional — Semantic Enrichment (Portal API only)

Tunes the semantic enrichment job that generates descriptions for mapping definitions. The model it calls is not set here: enrichment uses the LLM connection and model profile assigned for mapping enrichment in the Portal (Portal LLM Connections, Semantic enrichment). Without one, enrichment produces a technical proposal only.

Variable Default Description
SEMANTICENRICHMENT__TEMPERATURE 0.2 Sampling temperature for LLM responses, 0–2.
SEMANTICENRICHMENT__TIMEOUTSECONDS 300 HTTP timeout per LLM call in seconds.
SEMANTICENRICHMENT__CHUNKSIZEOPERATIONS 3 Number of API operations per enrichment chunk before adaptive splitting applies.
SEMANTICENRICHMENT__MAXCHUNKRETRIES 2 Maximum retries per chunk on failure or invalid JSON.
SEMANTICENRICHMENT__RETRYDELAYSECONDS 2 Delay in seconds between chunk retries.
SEMANTICENRICHMENT__MAXCONCURRENTCHUNKS 1 Parallel chunk execution limit. Default is sequential (1).
SEMANTICENRICHMENT__MAXPROMPTCHARACTERS 24000 Maximum prompt size in characters per chunk.
SEMANTICENRICHMENT__ENABLEREFERENCEDISTILLATION true When a reference document is attached, distill it once into a compact glossary instead of embedding it into every operation chunk. false embeds the reference text in every chunk.
SEMANTICENRICHMENT__MAXREFERENCEDIGESTINPUTCHARACTERS 48000 Maximum characters of attached reference text fed to the glossary pass; longer input is truncated with a warning.
SEMANTICENRICHMENT__MAXREFERENCEDIGESTCHARACTERS 6000 Maximum characters of the produced glossary.

Enrichment runs in the Jobs Worker; set the same values on Portal API and Jobs Worker.


Optional — Data Lifecycle (Jobs Worker only)

Controls automated cleanup of time-limited records. The cleanup job runs on a schedule.

Variable Default Description
DATALIFECYCLE__ENABLED true Set false to disable scheduled cleanup entirely.
DATALIFECYCLE__CLEANUPCRONEXPRESSION 0 30 2 * * ? Quartz cron expression for the cleanup job. The installer sets 0 15 3 * * ? (03:15 daily).
DATALIFECYCLE__GOVERNANCEAUDITRETENTIONDAYS 365 Number of days to retain governance audit records. The installer sets 365.
DATALIFECYCLE__REFRESHTOKENRETENTIONDAYS 30 Number of days to retain inactive refresh token sessions. The installer sets 14.
DATALIFECYCLE__LLMSPENDLIVERETENTIONMONTHS 3 Whole months of hourly LLM usage kept before the current month; at least 1. An older month's hourly rows are deleted a month at a time, and only once the monthly archive has summarized it — an unarchived month is kept and logged at Warning instead.
DATALIFECYCLE__LLMSPENDARCHIVERETENTIONMONTHS 0 Archived months of LLM usage kept; 0 keeps them indefinitely (a month is a few hundred rows per tenant).
DATALIFECYCLE__AGENTEXECUTIONRETENTIONDAYS 30 Days a finished hosted-agent execution is kept, with its input (a trigger's instructions and parameters, a webhook's body), counted from when it ended. Queued and running executions are never deleted. A webhook delivery id is remembered only as long as its execution. The installer sets 30.

To override a value the installer sets, use its spelling in the installer's compose file (DataLifecycle__...); see How to set a value.


Optional — LLM usage ledger (all hosts that call a model)

The LLM Usage Dashboard reads a ledger every model call is counted into: by Runtime Host (ESRA, hosted agents), Jobs Worker (mapping enrichment, AISI) and Portal API (ESRA preview). Counting happens off the call's path: a call queues its counts in memory and a background flush writes them every few seconds. The live retention of the ledger is a Data Lifecycle setting (above).

Variable Default Description
LLMSPEND__CURRENCY USD The deployment's one currency, an ISO 4217 code. Every model profile price must be in it, so totals always add up. Set it once, before prices are entered; keep it equal on every host.
LLMSPEND__ARCHIVE__CRONEXPRESSION 0 0 3 2 * ? When the monthly archive runs: 03:00 UTC on the 2nd. A run also catches up every closed month it missed. Jobs Worker only.
LLMSPEND__ARCHIVE__GRACEPERIOD 1.00:00:00 How long after a month ends it counts as closed, so the last flushes of the month land before it is summarized. Between zero and 27 days. Jobs Worker only.
LLMSPEND__BACKFILL__BATCHSIZE 1000 Source rows one back-fill batch reads; 1 to 50000. The back-fill is not scheduled: a global administrator starts it from the LLM Usage Dashboard. Jobs Worker only.
LLMSPEND__BACKFILL__MAXBATCHESPERRUN 100 Batches one back-fill run reads before handing over to the next. Jobs Worker only.

Applies to: LLMSPEND__CURRENCY — Portal API, Runtime Host, Jobs Worker. The rest — Jobs Worker.


Optional — LLM connections (all hosts that call a model)

Variable Default Description
AI__LLM__ALLOWHOSTCLOUDIDENTITY false Whether a global connection to Claude on Amazon Bedrock, Google Cloud Vertex AI or Microsoft Foundry may sign in as the machine the platform runs on (AWS instance role or IRSA, Google workload identity, Azure managed identity) instead of with a key. Tenant connections never may. Turn it on only where that identity has been granted access to the models; turning it off stops such connections at their next call. Keep it equal on every host.

Applies to: Portal API (saving and testing connections), Runtime Host, Jobs Worker.

The Anthropic SDK reads ANTHROPIC_* environment variables (and, for Bedrock, AWS_BEARER_TOKEN_BEDROCK) of its own. The platform never uses them for a connection's endpoint or credential, but two act on every Claude call a process makes and cannot be overridden: ANTHROPIC_CUSTOM_HEADERS adds headers to each request, and ANTHROPIC_LOG turns on request logging that can include prompts. Do not set them on the platform's hosts; a host that has them logs a warning naming them once.


Optional — Enrichment Run Recovery (Jobs Worker only)

Governs recovery of semantic enrichment runs abandoned mid-flight — a worker crash, or RabbitMQ evicting the delivery for exceeding consumer_timeout. A run heartbeats while it is processed; one that goes silent past the threshold is presumed dead, so a redelivery may reclaim it (resuming from its checkpoints) and the reaper may fail it.

Variable Default Description
MAPPING__ENRICHMENTRUNRECOVERY__STALERUNTHRESHOLD 00:03:00 How long a processing run may go without a heartbeat before it is presumed abandoned. Safe to keep short because heartbeats are emitted on a timer, not only when a pass completes. Keep it comfortably above the heartbeat interval so a few missed ticks cannot cause a live run to be taken from its owner.
MAPPING__ENRICHMENTRUNRECOVERY__HEARTBEATINTERVAL 00:00:30 How often a claimed run reports liveness while being processed.
MAPPING__ENRICHMENTRUNRECOVERY__PROGRESSSTALLTHRESHOLD 00:20:00 How long a run may go without completing a chunk before it is treated as hung, even while still heartbeating. Catches a worker blocked inside an LLM call that never returns. Must exceed the slowest single chunk including its retries, or a legitimately slow chunk is mistaken for a hang.
MAPPING__ENRICHMENTRUNRECOVERY__REAPERINTERVAL 00:05:00 How often to sweep for abandoned runs.
MAPPING__ENRICHMENTRUNRECOVERY__REAPERBATCHSIZE 50 Maximum runs handled in a single sweep.
MAPPING__ENRICHMENTRUNRECOVERY__MAXRECOVERYATTEMPTS 3 How many times an abandoned run may be re-queued to resume before it is failed for good. Bounds a run that dies repeatedly.

Related broker setting. Long enrichment runs also require RabbitMQ's consumer_timeout to exceed the total run duration, not just one pass. The installer's RabbitMQ container raises it from RabbitMQ's 30-minute default to 3 hours. A run that outlives it is evicted and requeued mid-flight. If you use a broker of your own, raise it there.


Optional — Job Scheduler (Jobs Worker only)

Each Jobs Worker runs its own in-memory scheduler. Several workers coordinate through the database, so a recurring job fires once however many workers run, and they may all keep the same scheduler ID and name.

Variable Default Description
JOBS__QUARTZ__ENABLED true Set false to start the Jobs Worker without scheduling any jobs. The installer sets true.
JOBS__QUARTZ__SCHEDULERID api-mapper-jobs Scheduler instance ID, shown in the worker's logs. The installer sets api-mapper-jobs-worker.
JOBS__QUARTZ__SCHEDULERNAME CodedProjects.AI.ApiMapper Jobs Human-readable scheduler name. The installer sets AI API Mapper Jobs Worker.

Optional — Outbound HTTP security

Controls the platform's SSRF protection layer and outbound host allowlist behaviour. The allowlist itself is managed in the Portal (Security → Outbound Allowlist).

Variable Default Description
OUTBOUNDSECURITY__ALLOWLISTCACHETTLSECONDS 30 How long the in-process outbound allowlist cache is valid before being re-read from the database. Lower values make Portal changes take effect faster at the cost of more database reads.
OUTBOUNDSECURITY__ALLOWLOCALREQUESTS false Lets the local host names localhost, *.localhost and *.local through without an allowlist entry. It changes nothing else. Never enable in production: Portal API and Runtime Host refuse to start with it set there. The installer sets false.
OUTBOUNDSECURITY__ALLOWPRIVATENETWORKHOSTS true Whether a private or loopback host may be added to the outbound allowlist at all. Allowlisting an internal address is a legitimate deployment (an audit target on an RFC 1918 syslog host), so this defaults to permitting it — and adding one requires platform scope, so a tenant administrator cannot point an outbound purpose at the platform's own network. Set false to turn it off estate-wide.

Applies to: Portal API, Runtime Host.

Outbound proxies

Managed HTTP proxies are configured in the Portal (Security → HTTP Proxies), not here. Only the resolution cache is a setting.

Variable Default Description
OUTBOUNDPROXY__CACHETTLSECONDS 30 How long a process keeps a tenant's resolved proxies and defaults (1–3600). A Portal change reaches every Portal API, Runtime Host and Jobs Worker replica at once over RabbitMQ; this bounds how long one that missed the announcement keeps the old routes.

Until an administrator chooses otherwise, the platform default proxy is System: every outbound call follows the process's HTTPS_PROXY, HTTP_PROXY and NO_PROXY environment variables. When HTTPS_PROXY is set on a host, its NO_PROXY must list the platform's own services (database, RabbitMQ, Valkey and the other hosts), which never go through a managed proxy. Behind a corporate proxy shows the compose file.

Applies to: Portal API, Runtime Host, Jobs Worker.


Optional — Allowed usages (secrets and LLM connections)

An administrator can limit a secret or an LLM connection to the features that may use it. Nothing here changes what an unrestricted item may do.

Variable Default Description
ALLOWEDUSAGES__NARROWINGINUSE Refuse What happens when an administrator removes a usage that something still relies on, such as an ESRA source using a secret. Refuse rejects the change and lists what must be rebound first. WarnAndConfirm shows the same list but lets the administrator choose Save anyway; the listed items then stop working until they are rebound. Either way the change is audited.
SECRETS__USAGECACHETTL 00:05:00 How long each process may keep its cached copy of a secret's allowed usages. A change normally reaches every process at once over the message bus. This value only bounds the delay when that message is lost.

Applies to: ALLOWEDUSAGES__NARROWINGINUSE — Portal API (the only host that changes usages). SECRETS__USAGECACHETTL — Portal API, Runtime Host, Jobs Worker.


Optional — Runtime transport

Variable Default Description
RUNTIME__TRANSPORT__EXPOSEMCP true Whether the MCP transports are mapped at all. Set false and every MCP verb answers 404 — the kill switch for the MCP surface.
RUNTIME__TRANSPORT__MAXREQUESTBODYBYTES 1048576 Ceiling on a transport request body. A JSON-RPC envelope carrying tool arguments is kilobytes; raise it only for a tenant whose tools genuinely take large payloads. It can never exceed the web server's own request limit, which still applies underneath.

Applies to: Runtime Host.


Optional — Hosted agent triggers and executions

Hosted agents can be started by schedules, webhooks and on demand as well as by A2A callers. Scheduled and webhook runs wait in the platform database until a Runtime Host instance claims one; the Jobs Worker fires due schedules and recovers executions a stopped instance left behind. In an installer deployment a webhook trigger is called at https://<host>:5253/runtime/hooks/agents/<id>.

Variable Default Description
HOSTEDAGENTS__TRIGGERS__ENABLED true Set false to stop every trigger: schedules are not swept, webhooks answer 503 with Retry-After, and Fire now is refused. A2A and on-demand runs are unaffected. Set it the same on Portal API, Runtime Host and Jobs Worker.
HOSTEDAGENTS__TRIGGERS__FIRENOWENABLED true Offers Fire now on schedule triggers in the Portal: run the schedule once, at once, as its run identity, without moving its next slot. Never offered on webhooks. false hides the action and its endpoint answers 404. Portal API only.
HOSTEDAGENTS__TRIGGERS__SCHEDULESWEEPINTERVAL 00:00:15 How often due schedules are swept. A schedule starts within about this long of its time. Jobs Worker only.
HOSTEDAGENTS__TRIGGERS__SCHEDULESWEEPBATCHSIZE 200 The most due schedules one sweep starts; the rest are started by the next sweep. Jobs Worker only.
HOSTEDAGENTS__TRIGGERS__DEFAULTMAXQUEUEDPERAGENT 100 How many scheduled or webhook executions may wait for an agent that sets no Max queued executions of its own. Beyond it a schedule records a skipped run and a webhook sender is answered 429.
HOSTEDAGENTS__TRIGGERS__WEBHOOKMAXPAYLOADBYTES 262144 The largest webhook body any trigger may accept. A trigger may set less, never more. The Gateway caps the webhook route at the same 256 KB.
HOSTEDAGENTS__TRIGGERS__WEBHOOKRATELIMITPERMINUTE 60 Deliveries one webhook trigger accepts per minute on each Runtime Host instance; beyond it the sender is answered 429 with Retry-After. Runtime Host only.
HOSTEDAGENTS__TRIGGERS__WEBHOOKTIMESTAMPTOLERANCESECONDS 300 How far a signed delivery's timestamp may be from the Runtime's clock before it is refused as a possible replay. Runtime Host only.
HOSTEDAGENTS__TRIGGERS__WEBHOOKSECRETROTATIONOVERLAP 1.00:00:00 How long a webhook's previous signing secret is still accepted after Rotate secret, so the sender can be switched without dropped deliveries. Portal API only.
HOSTEDAGENTS__EXECUTIONS__DISPATCHENABLED true Whether this Runtime Host instance claims scheduled and webhook executions. Set false on an instance that should serve only A2A, MCP and on-demand traffic. Runtime Host only.
HOSTEDAGENTS__EXECUTIONS__POLLINTERVAL 00:00:02 How soon an instance looks for waiting executions again after finding one. At least 200 ms. Runtime Host only.
HOSTEDAGENTS__EXECUTIONS__IDLEPOLLINTERVAL 00:00:10 The longest an idle instance waits before looking again; between POLLINTERVAL and 5 minutes. A webhook delivery wakes the instance that accepted it at once. Runtime Host only.
HOSTEDAGENTS__EXECUTIONS__LEASEDURATION 00:01:00 How long a running execution's claim holds without renewal. It is renewed every third of this. Between 15 seconds and 15 minutes. Runtime Host only.
HOSTEDAGENTS__EXECUTIONS__LEASEGRACE 00:02:00 How long past an expired claim the reaper waits before ending the execution as interrupted. An interrupted execution is never run again, because it may already have called tools. Jobs Worker only.
HOSTEDAGENTS__EXECUTIONS__REAPERINTERVAL 00:01:00 How often the execution reaper runs. Jobs Worker only.

The per-instance hosted-agent turn limits are under RUNTIME__A2A__HOSTEDAGENTS__*. Execution retention is a Data Lifecycle setting (above).

Applies to: Portal API, Runtime Host, Jobs Worker, as noted per row.


Optional — Downstream limits

Variable Default Description
RUNTIME__DOWNSTREAM__MAXRESPONSEBODYBYTES 16777216 Ceiling on a downstream response body, 1 KiB–64 MiB, for HTTP, SOAP and stored-procedure tools alike. A response over it fails the call with downstream_response_too_large.
RUNTIME__DOWNSTREAM__MAXRESULTROWS 10000 Ceiling on the rows one stored-procedure call may return over all its result sets, 1–1,000,000. A Database target system can set a lower value; the lower of the two applies. Passing it fails the call with downstream_result_row_limit_exceeded; nothing is truncated.
RUNTIME__DOWNSTREAM__MAXRESULTFIELDBYTES 1048576 Ceiling on the bytes of any single value a stored procedure returns, 1 KiB–64 MiB (downstream_result_field_limit_exceeded).
RUNTIME__DOWNSTREAM__MAXRESULTSETS 10 Ceiling on the result sets one stored-procedure call may return, 1–100 (downstream_result_set_limit_exceeded).
RUNTIME__DOWNSTREAM__MCP__SESSIONIDLETTLSECONDS 300 How long an unused session with a remote MCP server (protocol 2025-11-25 and earlier) is kept for reuse, 10–3600 seconds.
RUNTIME__DOWNSTREAM__MCP__MAXSESSIONSPERTARGET 64 How many sessions one MCP server target system may hold per replica, 1–10,000 — one per credential identity; the least recently used gives way.
RUNTIME__DOWNSTREAM__MCP__DRIFTRECHECKINTERVALSECONDS 300 After a remote MCP server answers "unknown tool", how long a replica waits before asking for another immediate drift check of that server, 60–86,400 seconds.

A value outside its bounds stops the host at startup. A call that passes a limit is rolled back, but a procedure that commits on its own (a PostgreSQL COMMIT, an Oracle autonomous transaction, MySQL non-transactional tables) can leave effects behind: the error says the call failed, not that nothing happened.

Applies to: Runtime Host, Jobs Worker (hosted agents).


Optional — Stored-procedure onboarding

Variable Default Description
APIONBOARDING__SQLPROCEDURES__SESSIONTIMETOLIVE 1.00:00:00 How long a stored-procedure import session lives, 1 hour–7 days. Past it the session reads as expired, can no longer be drafted or imported, and is purged with its procedure text. A value outside the bounds stops the host at startup.
APIONBOARDING__SQLPROCEDURES__DRAFTCHUNKSIZE 5 Procedures one model exchange drafts, 1–25.
APIONBOARDING__SQLPROCEDURES__DRAFTHEARTBEATINTERVAL 00:00:30 How often a running draft reports liveness, at least 5 seconds.
APIONBOARDING__SQLPROCEDURES__DRAFTSTALETHRESHOLD 00:03:00 How long a draft may go without a heartbeat before another delivery may take it over and the sweep re-arms it; at least twice the heartbeat interval.
APIONBOARDING__SQLPROCEDURES__MAXDRAFTATTEMPTS 3 How many times a draft is restarted before its remaining procedures are marked failed, 1–10.
APIONBOARDING__SQLPROCEDURES__SWEEPINTERVAL 00:05:00 How often dead drafts are restarted and expired sessions purged, at least a minute.
APIONBOARDING__SQLPROCEDURES__SWEEPBATCHSIZE 100 Sessions one sweep handles per kind of work, 1–1,000.
APIONBOARDING__SQLPROCEDURES__DRAFT__TIMEOUTSECONDS 180 The deadline of one model exchange, retries included, 10–900 seconds. A draft that misses it fails for the procedures in that exchange only.
APIONBOARDING__SQLPROCEDURES__DRAFT__MAXRETRIES 1 Retries of an empty or unreadable answer, 0–3.
APIONBOARDING__SQLPROCEDURES__DRAFT__MAXOUTPUTTOKENS 16000 The answer's token ceiling, 1,000–64,000.
APIONBOARDING__SQLPROCEDURES__DRAFT__MAXDEFINITIONCHARACTERSPERPROCEDURE 16000 How much of one procedure's text the model sees, 1,000–64,000 characters.

A live discovery's user name and password are used for the discovery request only; they are never stored, so this section has no credential setting. Every host a discovery connection names must be in the tenant's outbound allowlist. Drafts use the tenant's model for mapping enrichment, and their spend appears in the LLM usage ledger as "Stored-procedure drafts".

Applies to: Portal API, Jobs Worker.


Optional — MCP server onboarding (Portal API, Jobs Worker)

Variable Default Description
APIONBOARDING__MCPSERVERS__SESSIONTIMETOLIVE 1.00:00:00 How long an MCP server discovery can be imported from, 15 minutes–7 days. Past it the discovery is purged with the tool declarations it read.
APIONBOARDING__MCPSERVERS__SWEEPINTERVAL 00:15:00 How often expired discoveries are purged, 1 minute–12 hours.
APIONBOARDING__MCPSERVERS__SWEEPBATCHSIZE 100 Discoveries one purge deletes, 1–1,000.

A discovery keeps only the tool declarations it read and the endpoint without its query. Credentials typed for a discovery are used for that request only and are never stored, so this section has no credential setting. A value outside its bounds stops the host at startup.

Applies to: Portal API, Jobs Worker.


Optional — MCP server drift (Jobs Worker)

Variable Default Description
REMOTEMCP__DRIFT__ENABLED true Whether the scheduled drift check runs. A check the runtime requests after an "unknown tool" answer runs regardless.
REMOTEMCP__DRIFT__INTERVAL 06:00:00 How often every active MCP server target system with published tools is compared with what was approved, 15 minutes–12 hours. Each check is a live read of the server.
REMOTEMCP__DRIFT__MINRECHECKINTERVAL 00:05:00 How long after a check a runtime-requested check of the same server is skipped, from 1 minute to the interval.

A value outside its bounds stops the host at startup. A check reads the server with the authentication profile its published tools are called with, through the tenant's outbound allowlist; it calls no tool and no model.

Applies to: Jobs Worker (Portal API validates the same values, so set them on both).


Optional — OAuth connections of authentication profiles (Portal API, Runtime Host, Jobs Worker)

Variable Default Description
DOWNSTREAMSECURITY__OAUTH__PUBLICBASEURL (empty) The HTTPS URL Portal API is reached at through the Gateway. It fixes the redirect URI a pre-registered client registers ({PublicBaseUrl}/api/v1/downstream-oauth/callback) and is required for the client ID metadata document ({PublicBaseUrl}/api/v1/downstream-oauth/client-metadata.json), which the authorization server fetches. Empty: the redirect URI is derived from the request, and the metadata-document option is not offered. The installer sets it from DOWNSTREAM_OAUTH_PUBLIC_BASE_URL in .env (https://<host>:5253/portal on a new installation).
DOWNSTREAMSECURITY__OAUTH__AUTHORIZATIONREQUESTLIFETIME 00:10:00 How long a Connect may take, from the button to the authorization server's redirect back, 2–30 minutes.
DOWNSTREAMSECURITY__OAUTH__REFRESHMARGIN 00:01:00 How long before expiry an access token is refreshed, 0–10 minutes.
DOWNSTREAMSECURITY__OAUTH__REFRESHLEASE 00:00:30 How long one replica holds a connection while refreshing it before another may take over, 5 seconds–5 minutes.
DOWNSTREAMSECURITY__OAUTH__PORTALBASEURL (empty) The HTTPS URL people open the Portal at. A caller who must consent to a per-user profile is sent to {PortalBaseUrl}/account/connected-accounts?consent=…; an MCP caller that declared URL elicitation receives that link as an elicitation. Empty: the caller is told to open Connected accounts themselves and receives no link. The installer sets it from DOWNSTREAM_OAUTH_PORTAL_BASE_URL in .env (https://<host>:8443 on a new installation).
DOWNSTREAMSECURITY__OAUTH__CONSENTTICKETLIFETIME 00:15:00 How long a consent link can be used, 2 minutes–1 hour. Each link works once, and only for the person whose call produced it.
DOWNSTREAMSECURITY__OAUTH__CLIENTNAME ApiMapper The client name the platform registers with an authorization server and publishes in its metadata document, up to 100 characters.

A value outside its bounds stops the host at startup. The redirect URI must be registered exactly with each authorization server a pre-registered or dynamically registered client uses; changing DOWNSTREAM_OAUTH_PUBLIC_BASE_URL changes it, so register it again. Tokens are kept in the secret store, so this section has no credential setting.

Applies to: Portal API (connect, callback, registration), Runtime Host and Jobs Worker (token refresh).


Optional — License file (Runtime Host)

The Runtime reads the installation's license from a read-only bind mount and reports its state on the Portal. A missing, invalid or expired license never stops anything; it is audited and shown as a yellow bar. The public keys that may sign a license are built into the Runtime image and are not configurable. See Runtime license status and Licenses.

Variable Default Description
LICENSE_DIR ./license In apimapper/.env. The host folder mounted read-only at /license in runtime-host. The license file is license.json in it. Replacing the file takes effect within a minute, without a restart.
LICENSING__LICENSEFILEPATH /license/license.json The license file inside the container. A relative path resolves against the application folder.
LICENSING__FILEPOLLINTERVAL 00:01:00 How often the file is checked for a replacement (at least 00:00:01).
LICENSING__DEGRADEDAUDITINTERVAL 01:00:00 How often license.status.degraded is audited while the license is missing, invalid or expired (at least 00:00:01).

Replace the license with install.sh update-license <file> (or install.ps1 update-license <file>), which checks the file with the platform before installing it. To check a file without installing it:

docker run --rm -v "$PWD:/license:ro" docker.io/codedprojects/ai-apimapper-runtime-host:<version> \
  --verify-license /license/license.json

The exit code is 0 valid, 2 expired, 3 missing or invalid.

Applies to: Runtime Host.


Optional — AISI (AI Storage Indexer)

AISI synchronizes file storage into full-text indexes that ESRA reads (AISI). What the settings below protect, and how to watch them in production, is described in AISI — security and governance and AISI — operations. Every value below is a platform ceiling or floor: a sync or an index may ask for less, never more, and asking for more is refused with a validation error rather than silently clamped. Every section is validated when the host starts, so a misconfigured value stops the host instead of misbehaving at the first sync.

Variable Default Description
AISI__ENABLED true Whether AISI is offered at all. false makes every AISI admin endpoint answer 404, hides the Portal screens and schedules no AISI job; rows already stored are kept. Set it on both the Portal API and the Jobs Worker, and set AISI_ENABLED on portal-web to match (see Portal SPA container).

Applies to: Portal API, Jobs Worker.

Change tracking (Jobs Worker)

Variable Default Description
AISI__CHANGETRACKING__TICKSCHEDULERINTERVAL 00:01:00 How often due change subscriptions are looked for.
AISI__CHANGETRACKING__DEFAULTPOLLINTERVAL 00:05:00 The poll interval a new sync gets when it names none. Not below MINPOLLINTERVAL.
AISI__CHANGETRACKING__MINPOLLINTERVAL 00:01:00 The shortest poll interval a sync may ask for.
AISI__CHANGETRACKING__PUSHSAFETYPOLLINTERVAL 01:00:00 The safety poll of a sync in push or queue mode — the most a lost notification can delay a change. A queue sync drains its queue at its own poll interval and runs this full pass within those ticks.
AISI__CHANGETRACKING__MAXCONCURRENTTICKS 4 Subscriptions one worker ticks at once.
AISI__CHANGETRACKING__MAXEVENTSPERTICK 5000 Change events one tick may emit before it yields and continues on the next.
AISI__CHANGETRACKING__MAXTICKDURATION 00:02:00 How long one tick may run. Must be shorter than STALELEASEAFTER.
AISI__CHANGETRACKING__LEASEHEARTBEATINTERVAL 00:00:30 How often a running tick renews its lease. Must be shorter than STALELEASEAFTER.
AISI__CHANGETRACKING__STALELEASEAFTER 00:05:00 How long a lease may go without a heartbeat before another worker may take the subscription over.
AISI__CHANGETRACKING__UPKEEPINTERVAL 00:05:00 How often native (push) subscriptions are created, renewed and pruned.
AISI__CHANGETRACKING__RENEWBEFORE 1.00:00:00 How far ahead of expiry a native subscription is renewed.
AISI__CHANGETRACKING__PROCESSINGSWEEPINTERVAL 00:01:00 How often documents whose retry backoff has elapsed are picked up. New changes start processing at once and do not wait for this.
AISI__CHANGETRACKING__REAPERINTERVAL 00:02:00 How often lapsed document claims and subscription leases are released.
AISI__CHANGETRACKING__RECONCILIATIONINTERVAL 7.00:00:00 How often each index is reconciled against the catalog.
AISI__CHANGETRACKING__HEALTHPROBEINTERVAL 00:15:00 How often the aisi-connection-health job probes every enabled storage connection and every provisioned, enabled index, and records what it finds as their health in the Portal. A throttled connection is not probed.

Document processing (Jobs Worker)

Variable Default Description
AISI__PROCESSING__MAXDEGREEOFPARALLELISM 4 Documents processed in parallel by one worker.
AISI__PROCESSING__MAXCONCURRENTPERCONNECTION 4 Documents in flight against one storage connection across all workers. A soft limit: it can be overshot by at most one claim batch per worker.
AISI__PROCESSING__MAXCONCURRENTPERTENANT 8 Documents in flight for one tenant on one worker.
AISI__PROCESSING__CLAIMBATCHSIZE 16 Documents claimed per round.
AISI__PROCESSING__MAXDOCUMENTSPERSWEEP 500 Ceiling on documents one sweep processes; logged when reached.
AISI__PROCESSING__DOCUMENTTIMEOUT 00:15:00 End-to-end limit for one document; exceeding it is retried as TIMEOUT.
AISI__PROCESSING__HEARTBEATINTERVAL 00:00:30 How often a claimed batch renews its claims. Must be shorter than STALECLAIMAFTER.
AISI__PROCESSING__STALECLAIMAFTER 00:05:00 How long a claim may go without a heartbeat before the document is returned to the queue.
AISI__PROCESSING__MAXATTEMPTS 5 Attempts before a transiently failing document is abandoned.
AISI__PROCESSING__RETRYBASEDELAY 00:01:00 The first retry delay; each later one doubles, with ±20 % jitter.
AISI__PROCESSING__RETRYMAXDELAY 06:00:00 The longest retry delay.
AISI__PROCESSING__SPOOLDIRECTORY (temp folder) Absolute path, inside the container, where fetched files are spooled while hashed and extracted. Give it a volume sized for MAXSPOOLBYTES; see Indexing file storage with AISI.
AISI__PROCESSING__MAXSPOOLBYTES 10737418240 Bytes one worker may hold in spool files at once (10 GB).
AISI__PROCESSING__MAXFILESIZEBYTES 1073741824 The largest file AISI fetches (1 GB). A sync's own cap may only be lower. Must not exceed MAXSPOOLBYTES.
AISI__PROCESSING__CIRCUITBREAKERFAILURERATIO 0.5 The share of a storage connection's or an index's documents that must fail for its own sake (a connection- or destination-level failure) before its circuit opens and the rest of its documents wait. Greater than 0, at most 1.
AISI__PROCESSING__CIRCUITBREAKERMINIMUMTHROUGHPUT 5 Documents a connection or index must have processed in the sampling window before its circuit may open. At least 2.
AISI__PROCESSING__CIRCUITBREAKERSAMPLINGDURATION 00:02:00 The window those failures are counted over. Between 0.5 seconds and one day.
AISI__PROCESSING__CIRCUITBREAKERBREAKDURATION 00:01:00 How long an open circuit holds its documents back before one is let through to test it. They wait in the queue without spending an attempt. Between 0.5 seconds and one day.
AISI__PROCESSING__QUEUEDEPTHSAMPLEINTERVAL 00:00:30 The shortest time between two samples of the aisi_queue_depth gauge, taken after a processing sweep.

Deletion guard (Jobs Worker)

Variable Default Description
AISI__DELETION__DELETIONHOLDWINDOW 01:00:00 The window deletions are counted over.
AISI__DELETION__MASSDELETIONTHRESHOLDPERCENT 20 Deletions above this share of a sync's indexed documents are held for an operator…
AISI__DELETION__MASSDELETIONMINIMUMCOUNT 100 …when they also number at least this many. A held deletion removes nothing until approved.

Extraction, OCR and summaries (Jobs Worker)

Variable Default Description
AISI__EXTRACTION__MAXEXTRACTEDCHARS 20000000 Most characters one document may extract to.
AISI__EXTRACTION__MAXPDFPAGES 5000 Most pages a PDF may have.
AISI__EXTRACTION__MAXIMAGEPIXELS 100000000 Most pixels an image may declare; read from the header before any decode. An image file over it is TOO_LARGE; a PDF with a page image over it is OCR_INCOMPLETE.
AISI__EXTRACTION__MAXTIFFPAGES 500 Most pages a TIFF may have.
AISI__EXTRACTION__MAXSPREADSHEETCELLS 2000000 Most cells a spreadsheet may have.
AISI__OCR__MINTEXTCHARSPERPAGE 16 A PDF page with an image and fewer text-layer characters than this is OCR'd when an index asks for OCR when needed.
AISI__OCR__MAXPAGESPERDOCUMENT 1000 Most pages one document may send to OCR. A document with more is not indexed in part: it is skipped as OCR_INCOMPLETE until the limit is raised and it is retried.
AISI__OCR__TESSERACT__ENABLED true Whether the Tesseract engine is offered.
AISI__OCR__TESSERACT__EXECUTABLEPATH tesseract The binary; resolved on PATH unless absolute. The Jobs Worker image installs Tesseract 5 with eng, deu, fra, ita, spa, por, nld, pol, ces and rus; another language needs its tesseract-ocr-<code> package in a derived image and an entry in ALLOWEDLANGUAGES.
AISI__OCR__TESSERACT__TESSDATAPATH — An explicit tessdata folder.
AISI__OCR__TESSERACT__ALLOWEDLANGUAGES__0 — (the ten shipped languages) Language codes an index may ask for (one variable per entry, __0, __1…), offered in the Portal's OCR languages list. Unset, the languages the image ships. Set, exactly the configured codes: the list replaces the shipped one, so name every language wanted. Set it on Portal API, which refuses an index naming another, and on the Jobs Worker alike. Each must be a plain code such as deu or chi_sim, and installed in the image.
AISI__OCR__TESSERACT__PAGETIMEOUT 00:01:00 Limit for one page.
AISI__OCR__TESSERACT__MINCONFIDENCE 40 Words recognized below this confidence (0–100) are dropped.
AISI__OCR__LLMVISION__ENABLED true Whether OCR through a vision-capable model profile is offered. Only profiles marked Supports images under AI Settings can be chosen; their tokens count as purpose ocr in the index's token usage.
AISI__SUMMARIZATION__MAXINPUTCHARSPERCALL 48000 Documents longer than this are summarized section by section.
AISI__SUMMARIZATION__MAXSECTIONSPERDOCUMENT 64 Most section summaries one document may cost; beyond it the summary is marked partial.
AISI__SUMMARIZATION__CALLTIMEOUT 00:02:00 Limit for one model call.
AISI__SUMMARIZATION__MAXTARGETCHARS 4000 The longest summary an index may ask for.
AISI__METADATA__MAXINPUTCHARS 16000 The longest excerpt one metadata classification call sends: the document's start, its heading outline and, for a workbook, the start of each sheet. At least 1000. Changing it re-classifies documents on their next processing, because the excerpt is part of the classification cache key.
AISI__ARTIFACTS__RETAINEXTRACTEDTEXT false Keep each document's extracted Markdown after it is indexed, one copy per document, in the platform database, until retention purges it. Off: only paid work (OCR pages, section summaries) is checkpointed, until the document is indexed.

Storage access (Portal API and Jobs Worker)

Variable Default Description
AISI__FTP__ALLOWPLAINFTP false Whether FTP without TLS may be used. Checked when a connection is saved and again at every session, so turning it off stops every plain-FTP connection (HOST_NOT_ALLOWED). Such connections are labelled in the Portal.

Set storage access identically on both hosts: the Portal validates against it, the worker enforces it.

Remote storage hosts (SFTP, FTP, S3, Microsoft Graph, Google Drive) are not configured here. Each must be approved in the tenant's outbound allowlist (Portal → Outbound Allowlist) before a connection can reach it; an unapproved host fails HOST_NOT_ALLOWED before any connection attempt. SFTP host keys and self-signed FTPS certificates are pinned per connection, by the operator, after Test connection shows them.

A Microsoft Graph connection needs three entries for the global cloud: login.microsoftonline.com (tokens), graph.microsoft.com (the API) and the SharePoint host its files download from (contoso.sharepoint.com, and contoso-my.sharepoint.com for OneDrive for Business; *.files.1drv.com for OneDrive personal). National clouds use their own sign-in and Graph hosts (login.microsoftonline.us and graph.microsoft.us or dod-graph.microsoft.us; login.chinacloudapi.cn and microsoftgraph.chinacloudapi.cn). A refused download names the host to add. Tokens are kept in each process's memory until shortly before they expire; nothing is configured for that.

A Google Drive connection needs two entries: oauth2.googleapis.com (tokens) and www.googleapis.com (the Drive API, from which content is also downloaded and exported). The token endpoint is fixed: a service account key file's own token_uri is ignored.

Push notifications (Portal API, Jobs Worker, Gateway)

How to set up each storage service and read a sync's state: AISI — push and queue notifications.

Variable Default Description
AISI__WEBHOOKS__ENABLED false Receive native change notifications from Microsoft Graph, Google Drive and S3-compatible stores. Off: every sync polls, and the Portal does not offer push.
AISI__WEBHOOKS__PUBLICBASEURL — Required when enabled. The public https origin vendors call, without path credentials, query or fragment. Only /portal/hooks/aisi/{id} needs to be reachable from the internet.
AISI__WEBHOOKS__MAXBODYBYTES 65536 Largest notification accepted; a longer one is refused with 413. At most 1048576. The Gateway caps the route separately (GATEWAY__ROUTES__PORTAL-AISI-WEBHOOK-ROUTE__MAXREQUESTBODYBYTES, 65536) — raise both together.
AISI__WEBHOOKS__PERMITLIMIT 120 Notifications admitted per WINDOW for each pair of client address and subscription address, in Portal API. Per pair because vendors deliver every subscription's notifications from a few addresses, so one busy sync cannot starve another.
AISI__WEBHOOKS__WINDOW 00:01:00 The rate-limit window.

Notes:

  • Set the same AISI__WEBHOOKS__* values on the Portal API and the Jobs Worker. The Portal API receives notifications and decides whether Push is offered; the worker's subscription upkeep registers {PUBLICBASEURL}/portal/hooks/aisi/{id} with each vendor and removes push subscriptions when webhooks are switched off. A sync that asked for push explicitly then polls and shows why.
  • The Gateway route portal-aisi-webhook-route is anonymous and has its own edge limit, SECURITY__RATELIMITING__GATEWAYAISIWEBHOOKEDGE__PERMITLIMIT (6000 per minute per client address). Nothing else under /portal becomes reachable through it.
  • Busy deployments: Portal API's global fallback limit (SECURITY__RATELIMITING__PORTALGLOBALFALLBACK__PERMITLIMIT, 600 per minute per client address) applies to the route too. If vendors' notifications are refused with 429, raise it; nothing is lost meanwhile — a refused notification only delays a change to the safety poll (AISI__CHANGETRACKING__PUSHSAFETYPOLLINTERVAL).
  • AISI__CHANGETRACKING__UPKEEPINTERVAL is also the first retry delay of a sync whose push subscription could not be created or kept; each later retry doubles, up to six hours. Saving the sync's connection retries at once.
  • S3 needs setup at the storage service for either native mode, so Auto never picks one for an S3 sync: Push needs a MinIO webhook target per sync, delivering to the sync's webhook address with the connection's Webhook token; Queue needs an SQS queue receiving the bucket's event notifications, named in the sync's SQS queue URL, whose host is in the tenant's outbound allowlist (purpose AISI SQS queue endpoint). Queue does not use the webhook route at all.

Optional — Portal SPA container

Settings of the portal-web container, which serves the Portal on port 8443.

Variable Default Description
GATEWAY_BASE_URL — The Gateway origin the Portal calls. The container writes it into /env-config.js and derives the connect-src of the Portal's Content-Security-Policy (plus its wss:// form) from it. The installer sets https://<host>:5253.
AISI_ENABLED true Whether the AISI screens are offered. Keep it equal to AISI__ENABLED on the Portal API; the API refuses AISI requests when its own switch is off whatever this says.
PORTAL_PUBLIC_HOST unset The one host name the container's plaintext port (8080) may redirect to HTTPS. Unset, every http:// request is answered 421 Misdirected Request. The installer sets it to APIMAPPER_HOST. The installer does not publish port 8080, so it matters only if you publish that port yourself.

The Portal container sends its own security headers on every response, including /env-config.js: a Content-Security-Policy, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy, Permissions-Policy and HSTS.


Optional — Azure Key Vault secrets backend

Secrets can be kept in Azure Key Vault in addition to the platform's managed (encrypted, in-database) store. Enable the backend on every host that resolves secrets, then add the vault as a secret-store connection in the Portal, with a managed identity or a client ID, tenant ID and client secret (Downstream security and secret management).

Variable Description
SECRETS__ENABLEDSECRETSTORES__1 azurekeyvault. The installer sets SECRETS__ENABLEDSECRETSTORES__0 to managed; keep it and add Key Vault as the next entry. Set it on Portal API, Runtime Host and Jobs Worker.

The vault's host must be reachable from the platform. A managed identity works only where the containers run on Azure with that identity assigned.


Optional — Compliance Audit Delivery Targets

Compliance targets are deployment-managed audit sinks configured entirely through environment variables. They appear in the Portal under Governance → Audit Delivery Settings as read-only entries with a Deployment-managed badge, and cannot be created, edited, or deleted from the UI.

The Jobs Worker is the only host that runs the delivery pipeline. Portal API and Runtime Host should also receive the same configuration so they can surface compliance health warnings correctly. In an installer deployment, put the variables in a compose file of your own under all three services (see How to set a value); a YAML anchor, as in the proxy example of the installation guide, keeps them in one place.

Four target kinds are available. You may define any combination of them, including multiple targets of the same kind. Target names must be unique across all kinds.


Shared properties

All target kinds accept the following base properties. Replace <KIND> and <N> with the kind-specific array prefix and the zero-based target index.

Variable Default Description
GOVERNANCE__AUDITDELIVERY__<KIND>__<N>__NAME — Required. Unique target name.
GOVERNANCE__AUDITDELIVERY__<KIND>__<N>__ENABLED true Set false to disable delivery without removing the target.
GOVERNANCE__AUDITDELIVERY__<KIND>__<N>__TIMEOUTSECONDS 30 Per-delivery network timeout. Must be > 0.
GOVERNANCE__AUDITDELIVERY__<KIND>__<N>__MAXRETRYATTEMPTS 4 Total attempt budget per event. The last allowed attempt is terminal: the delivery is marked failed rather than scheduled again. 0 or 1 = a single attempt with no retry.
GOVERNANCE__AUDITDELIVERY__<KIND>__<N>__DELIVERTELEMETRY false Also deliver operational telemetry — a hosted agent's model calls and system prompts, a tool call's transforms, credential and downstream stages, a retrieval's pipeline stages — beside the governance decisions every target receives. Telemetry stays in the platform's audit store either way.
GOVERNANCE__AUDITDELIVERY__<KIND>__<N>__ALLOWEDTENANTS__0 — Tenant ID this target is scoped to. Omit entirely for global scope (all tenants). Append __1, __2, … for additional tenant IDs.

REST Endpoint target

Array prefix: COMPLIANCETARGETS

POSTs audit events as JSON (or a Mustache-rendered body) to an HTTPS webhook.

Compliance constraint: EndpointUrl must use HTTPS. HTTP is rejected at startup.

Outbound allowlist: The hostname must also be registered in Security → Outbound Allowlist in the Portal before the Jobs Worker will open connections to it.

Variable Default Description
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__NAME — Required. Target name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__ENDPOINTURL — Required. Full HTTPS URL of the receiver.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__METHOD Post HTTP method: Post or Put.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__AUTHENTICATIONSCHEME Bearer Value sent as the Authorization header scheme, e.g. Bearer or ApiKey.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__CREDENTIALSECRET__NAME — Name of the secret holding the token or API key. See Secret provider reference below.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__CREDENTIALSECRET__PROVIDER — managed, azurekeyvault, or configuration.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__CREDENTIALSECRET__ISMANAGEDEXTERNALLY false true when the secret lives in an external vault.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__<N>__BODYTEMPLATE — Optional Mustache-style body template. Omit to send the default JSON audit envelope.
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__NAME=compliance-rest
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__ENDPOINTURL=https://audit.example.com/events
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__TIMEOUTSECONDS=30
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__MAXRETRYATTEMPTS=4
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__AUTHENTICATIONSCHEME=Bearer
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__CREDENTIALSECRET__NAME=audit-bearer-token
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__CREDENTIALSECRET__PROVIDER=managed
GOVERNANCE__AUDITDELIVERY__COMPLIANCETARGETS__0__CREDENTIALSECRET__ISMANAGEDEXTERNALLY=false

SQL Server target

Array prefix: COMPLIANCESQLSERVERTARGETS

INSERTs one row per audit event into an operator-managed SQL Server table. The connection string is supplied in plain text (server and database only — no credentials). Username and password are injected at delivery time from separate secret references.

Compliance constraints:

  • AutoCreateSchema cannot be true for Compliance-type targets. Pre-create the schema and table before enabling (see Database table provisioning).
  • Schema name and table name must match [a-zA-Z_][a-zA-Z0-9_$]*, max 128 characters.
  • LedgerTable immutability is available on SQL Server only.
Variable Default Description
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__NAME — Required. Target name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__CONNECTIONSTRING — Required. ADO.NET connection string without User ID or Password, e.g. Server=audit-db;Database=AuditEvents;TrustServerCertificate=false;
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__USERNAMESECRET__NAME — Required. Secret name for the database username.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__USERNAMESECRET__PROVIDER — Required. managed, azurekeyvault, or configuration.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__USERNAMESECRET__ISMANAGEDEXTERNALLY false
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__PASSWORDSECRET__NAME — Required. Secret name for the database password.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__PASSWORDSECRET__PROVIDER — Required. managed, azurekeyvault, or configuration.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__PASSWORDSECRET__ISMANAGEDEXTERNALLY false
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__SCHEMA audit Database schema name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__TABLENAME external_audit_events Audit table name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__BATCHSIZE 1 Rows written per transaction.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__<N>__IMMUTABILITYMODE AppendOnly None, AppendOnly, LedgerTable, or TriggerProtected.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__NAME=compliance-sqlserver
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__CONNECTIONSTRING=Server=audit-db;Database=AuditEvents;TrustServerCertificate=false;
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__TIMEOUTSECONDS=30
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__MAXRETRYATTEMPTS=4
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__USERNAMESECRET__NAME=audit-db-username
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__USERNAMESECRET__PROVIDER=managed
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__USERNAMESECRET__ISMANAGEDEXTERNALLY=false
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__PASSWORDSECRET__NAME=audit-db-password
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__PASSWORDSECRET__PROVIDER=managed
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__PASSWORDSECRET__ISMANAGEDEXTERNALLY=false
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__SCHEMA=audit
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__TABLENAME=external_audit_events
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__IMMUTABILITYMODE=AppendOnly

Database table provisioning

The Portal generates the full CREATE TABLE DDL for the configured schema and table name. Navigate to Governance → Audit Delivery Settings, open the View panel for the target, and copy the script to hand to a DBA.

Default column mapping when PropertyMappings is empty:

Column SQL Type Source field
event_id UNIQUEIDENTIFIER id
occurred_at_utc DATETIMEOFFSET occurredAtUtc
tenant_id NVARCHAR(MAX) tenantId
category NVARCHAR(MAX) category
action NVARCHAR(MAX) action
status NVARCHAR(MAX) status
subject_id NVARCHAR(MAX) subjectId
actor_user_id NVARCHAR(MAX) actorUserId
actor_name NVARCHAR(MAX) actorName
actor_email NVARCHAR(MAX) actorEmail
actor_tenant_id NVARCHAR(MAX) actorTenantId
correlation_id NVARCHAR(MAX) correlationId
host NVARCHAR(MAX) host
path NVARCHAR(MAX) path
method NVARCHAR(MAX) method
payload_json NVARCHAR(MAX) payloadJson
dimensions_json NVARCHAR(MAX) dimensionsJson
created_at_utc DATETIMEOFFSET createdAtUtc
delivered_at_utc DATETIMEOFFSET Delivery timestamp (always appended)

PostgreSQL target

Array prefix: COMPLIANCEPOSTGRESQLTARGETS

Identical semantics to SQL Server. Same credential-injection pattern via separate UsernameSecret and PasswordSecret references.

Compliance constraints:

  • LedgerTable immutability mode is not available on PostgreSQL. Use TriggerProtected instead.
  • Default ImmutabilityMode is TriggerProtected.
  • AutoCreateSchema cannot be true for Compliance-type targets.
Variable Default Description
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__NAME — Required. Target name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__CONNECTIONSTRING — Required. Npgsql connection string without username or password, e.g. Host=audit-db;Database=AuditEvents;
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__USERNAMESECRET__NAME — Required. Secret name for the database username.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__USERNAMESECRET__PROVIDER — Required. managed, azurekeyvault, or configuration.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__USERNAMESECRET__ISMANAGEDEXTERNALLY false
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__PASSWORDSECRET__NAME — Required. Secret name for the database password.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__PASSWORDSECRET__PROVIDER — Required. managed, azurekeyvault, or configuration.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__PASSWORDSECRET__ISMANAGEDEXTERNALLY false
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__SCHEMA audit Database schema name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__TABLENAME external_audit_events Audit table name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__BATCHSIZE 1 Rows written per transaction.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__<N>__IMMUTABILITYMODE TriggerProtected None, AppendOnly, or TriggerProtected.
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__NAME=compliance-postgresql
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__CONNECTIONSTRING=Host=audit-db;Database=AuditEvents;
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__TIMEOUTSECONDS=30
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__MAXRETRYATTEMPTS=4
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__USERNAMESECRET__NAME=audit-pg-username
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__USERNAMESECRET__PROVIDER=managed
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__USERNAMESECRET__ISMANAGEDEXTERNALLY=false
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__PASSWORDSECRET__NAME=audit-pg-password
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__PASSWORDSECRET__PROVIDER=managed
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__PASSWORDSECRET__ISMANAGEDEXTERNALLY=false
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__SCHEMA=audit
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__TABLENAME=external_audit_events
GOVERNANCE__AUDITDELIVERY__COMPLIANCEPOSTGRESQLTARGETS__0__IMMUTABILITYMODE=TriggerProtected

The default column layout is identical to the SQL Server target. Use the Portal DDL generator (View panel) to obtain the CREATE TABLE script.


Syslog target

Array prefix: COMPLIANCESYSLOGTARGETS

Sends RFC 5424 structured messages over UDP, TCP, or TLS to a syslog receiver.

Compliance constraint: Compliance syslog targets must use Tls transport. Plain TCP and UDP are rejected at startup unless AllowInsecureLocalComplianceSyslog=true is explicitly set.

Variable Default Description
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__NAME — Required. Target name.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__HOST — Required. Syslog server hostname or IP address.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__PORT 6514 Syslog server port. Standard: 514 UDP/TCP, 6514 TLS.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__TRANSPORT Tls Udp, Tcp, or Tls.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__APPNAME cp-apimapper Syslog APP-NAME field in the RFC 5424 header.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__FACILITY local0 Syslog facility identifier.
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__<N>__SEVERITY informational Syslog severity label.

To relax TLS enforcement across all syslog compliance targets (non-production use only):

GOVERNANCE__AUDITDELIVERY__ALLOWINSECURELOCALCOMPLIANCESYSLOG=true
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__NAME=compliance-syslog
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__HOST=syslog.example.com
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__PORT=6514
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__TRANSPORT=Tls
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__TIMEOUTSECONDS=30
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__MAXRETRYATTEMPTS=4
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__APPNAME=cp-apimapper
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__FACILITY=local0
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__SEVERITY=informational

Delivery worker tuning

These apply only to the Jobs Worker.

Variable Default Description
GOVERNANCE__AUDITDELIVERY__WORKERBATCHSIZE 25 Events processed per worker cycle. Must be > 0.
GOVERNANCE__AUDITDELIVERY__WORKERPOLLINTERVALSECONDS 15 Seconds between poll cycles.
GOVERNANCE__AUDITDELIVERY__WORKERLEASEDURATIONSECONDS 60 Lock lease duration in seconds.

Delivery health reporting

This applies to every host that surfaces audit target health (Portal API, Runtime Host, and Jobs Worker).

Variable Default Description
GOVERNANCE__AUDITDELIVERY__CRITICALHEALTHWINDOWHOURS 24 How long a permanently failed delivery keeps its target Critical, measured from that delivery's last attempt. After the window the target decays to Warning while the failed delivery is still within audit retention. Must be > 0.

Multiple targets

Targets use zero-based array indexing. Add a second target of any kind by incrementing the index:

# First SQL Server target
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__0__NAME=primary-sql
...

# Second SQL Server target (a different database)
GOVERNANCE__AUDITDELIVERY__COMPLIANCESQLSERVERTARGETS__1__NAME=secondary-sql
...

# A syslog target alongside the SQL targets
GOVERNANCE__AUDITDELIVERY__COMPLIANCESYSLOGTARGETS__0__NAME=syslog-sink
...

Names must be unique across all four kinds. Duplicate names are rejected at startup.


Secret provider reference

Credentials for compliance targets are resolved through the platform secrets system. The Provider field on a secret reference selects which backend to use.

Provider Use case How it resolves
managed Production. Secret registered in the Portal (Secret Store). Decrypted with the platform's managed-secrets key.
azurekeyvault Production when using Azure. Fetched from Azure Key Vault by name at delivery time. See Azure Key Vault secrets backend.
configuration Testing only. Read from the setting SECRETS__VALUES__<NAME> on the host. Never use in production.

Image registry

The installer writes these to apimapper/.env. Every platform image is ${REGISTRY}/ai-apimapper-<service>:<tag>.

Variable Written by the installer Description
REGISTRY docker.io/codedprojects, or the value of --registry Registry host and namespace the platform images are pulled from. Use --registry to install from a mirror; a later run keeps the value in .env.
DATABASE_MIGRATOR_IMAGE_TAG, PORTAL_API_IMAGE_TAG, RUNTIME_HOST_IMAGE_TAG, JOBS_WORKER_IMAGE_TAG, GATEWAY_IMAGE_TAG, PORTAL_WEB_IMAGE_TAG The release being installed (--version, by default the release the installer was published with) Image tag of each service. Every run of the installer moves all of them to the release it installs, so every service runs the release whose database schema the migrator applied. Do not pin them separately.

Key generation quick reference

The installer generates every key an installation needs. Use these commands when you replace or rotate one.

# Symmetric signing key (hex, 64 chars)
openssl rand -hex 32

# AES-256 encryption key, or a metrics bearer token source (base64, 44 chars)
openssl rand -base64 32

# Portal signing key (RSA), and its one-line base64 form for PORTAL_SIGNING_KEY_PEM
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out portal-signing.pem
base64 < portal-signing.pem | tr -d '\n'

Never replace MANAGED_SECRETS_ENCRYPTION_KEY or MANAGED_SECRETS_KEY_RING_INSTALL_1 on an installation that holds data: the secrets encrypted with them could no longer be read.


See also