Configuration reference
OpenSeal is configured entirely through environment variables. These tables are generated from each program's own documentation in the source, so they list exactly what the release reads.
How settings are read
- Secrets have a file form. Every variable marked Secret can be given as
NAME_FILE, the path of a file holding the value; prefer it, and the production profile uses nothing else. Setting bothNAMEandNAME_FILEis an error (CS-KEY-0005), and so is an empty or unreadable file. - Read once, at start. A change takes effect on the next restart. The exception is the database URL file, read again every
OPENSEAL_SECRET_RELOAD_SECONDSso a credential can be rotated without a restart. - Refused, not guessed. A malformed or out-of-range value stops the program at start with one JSON
start_failedline naming the setting and, where there is one, its error code. - Security settings are pinned. With
OPENSEAL_CONFIG_MANIFEST(the production profile sets it), keyd and the worker refuse to start when a security setting differs from the recorded manifest (CS-KEY-0014). See recording the manifests. - Required means the program does not start without it; "With S3", "Outside development" and similar say when.
Server (casual-sign-server)
The API, the signing ceremony and the web app. Its subcommands (migrate, bootstrap, verify-evidence, mfa-reseal, blobs-export, blobs-import, healthcheck) read the same environment.
| Variable | Default | Required | Description |
|---|---|---|---|
OPENSEAL_DATABASE_URLSecretor OPENSEAL_DATABASE_URL_FILE | none | Yes | PostgreSQL URL of the application role |
OPENSEAL_JWT_SIGNING_KEYSecretor OPENSEAL_JWT_SIGNING_KEY_FILE | none | Outside development | P-256 PKCS#8 private key, base64 DER or PEM |
OPENSEAL_JWT_PREVIOUS_KEYSecretor OPENSEAL_JWT_PREVIOUS_KEY_FILE | none | No | Optional, during a rotation: the key the signing key replaced; tokens it signed verify until they expire and it stays in JWKS (docs/65 §Rotation) |
OPENSEAL_BLOB_DIR | none | Without S3 | Directory of the file blob store, or: |
OPENSEAL_S3_ENDPOINT | none | No | An S3-compatible bucket instead (created at start when missing) |
OPENSEAL_S3_BUCKET | none | With S3 | An S3-compatible bucket instead (created at start when missing) |
OPENSEAL_S3_REGION | us-east-1 | No | Its region (default us-east-1) |
OPENSEAL_S3_ACCESS_KEYSecretor OPENSEAL_S3_ACCESS_KEY_FILE | none | No | Its credentials (rotated by rewriting the files and a rolling restart, docs/65 §Rotation) |
OPENSEAL_S3_SECRET_KEYSecretor OPENSEAL_S3_SECRET_KEY_FILE | none | No | Its credentials (rotated by rewriting the files and a rolling restart, docs/65 §Rotation) |
OPENSEAL_S3_VIRTUAL_HOST | none | No | Virtual-host URLs (AWS) rather than path style (MinIO, SeaweedFS) |
OPENSEAL_S3_CA | none | No | PEM file of the CA the object store's TLS certificate chains to, besides the platform's roots (a private CA, the production profile) |
OPENSEAL_SECRET_RELOAD_SECONDS | 30 | No | How often the database URL file is read again for a rotated credential (default 30; 0 never; docs/65 §Rotation) |
OPENSEAL_WEBAPP_DIR | none | No | The web app's folder (webapp/), served at /; none: API only |
OPENSEAL_PUBLIC_URL | none | No | Public base URL (links, token issuer; its origin is the one staff passkeys work on) |
OPENSEAL_WEBAUTHN_RP_ID | none | No | Optional: the WebAuthn RP id of staff passkeys when not the public URL's host; must be that host or a parent domain of it. Passkeys are unavailable when the public URL's host is an IP address |
OPENSEAL_LISTEN | 127.0.0.1:8080 | No | Address to listen on (default 127.0.0.1:8080) |
OPENSEAL_OPS_LISTEN | none | No | Address of the ops listener: GET /livez (204) and GET /readyz (204; 503 while draining or while the database does not answer); never the public port; unset: none |
OPENSEAL_DRAIN_SECONDS | 0 | No | On SIGINT, how long to keep serving while /readyz answers 503, before taking no new connections (default 0, at most 300; HRD-11: the proxy in front of several replicas moves new requests away first) |
OPENSEAL_TRUSTED_PROXIES | none | No | Comma-separated CIDRs whose forwarding headers count |
OPENSEAL_GEOIP_DB | none | No | Optional GeoIP .mmdb the operator supplies |
OPENSEAL_ML_BUNDLE_ID | none | No | The model bundle deployed with casual-sign-modeld (docs/33 §7); none: document analysis is not installed |
OPENSEAL_LOG_PSEUDONYM_KEYSecretor OPENSEAL_LOG_PSEUDONYM_KEY_FILE | none | No | 32 bytes as base64: keys the pseudonyms security events give a presented e-mail or client address; share it with the console so they match; none: a key per process; malformed: the server does not start (CS-LOG-0001) |
OPENSEAL_MFA_KEYSecretor OPENSEAL_MFA_KEY_FILE | none | Outside development | 32 bytes as base64: seals staff TOTP seeds. Required outside development: administrators owe a second factor by default, and without the key none could enrol, so the server does not start without it; keep it with the backups, since a seed sealed under a lost key opens only by recovery code |
OPENSEAL_PASSWORD_PEPPERSecretor OPENSEAL_PASSWORD_PEPPER_FILE | none | No | Optional, 32 bytes as base64: the pepper staff password hashes are keyed with, held outside the database so a copy of it cannot test guesses; a hash from before it is re-made under it at the user's next sign-in. Keep it with the backups: a hash made under a lost pepper never verifies again (that user resets their password). Malformed: the server does not start |
OPENSEAL_PASSWORD_PEPPER_PREVIOUSSecretor OPENSEAL_PASSWORD_PEPPER_PREVIOUS_FILE | none | No | Optional, during a rotation: the pepper the current one replaced; hashes under it verify and are re-made under the current one at sign-in (docs/65 §Rotation) |
OPENSEAL_MFA_PREVIOUS_KEYSecretor OPENSEAL_MFA_PREVIOUS_KEY_FILE | none | No | Optional, during a rotation: the key OPENSEAL_MFA_KEY replaced; seeds sealed under it still open and are re-sealed under the new key when used, or by mfa-reseal |
OPENSEAL_DEV_INSECURE_KEY | none | No | Development only: a throwaway token key and second-factor key, plain-HTTP cookies |
OPENSEAL_CLAMD_ADDR | none | No | host:port of ClamAV's clamd: every upload is scanned before it is read or stored; none: nothing is scanned (a warning at start) |
OPENSEAL_CLAMD_TIMEOUT_SECS | 60 | No | Most seconds one scan may take, 1 to 600 (default 60) |
OPENSEAL_CLAMD_MAX_BYTES | 104857600 | No | Largest file sent to clamd (default 104857600, clamd's StreamMaxLength); at least the largest upload |
OPENSEAL_CLAMD_CONCURRENCY | 4 | No | Scans at once, 1 to 64 (default 4) |
OPENSEAL_CLAMD_FAIL_OPEN | none | No | Admit an upload clamd could not judge, recorded as upload.unscanned_admitted; default: refuse it (503 CS-SCAN-0002) |
OPENSEAL_CONVERTD_SOCKET | none | No | The Unix socket of convertd, the conversion daemon: Word (.docx) uploads are converted to PDF there; none: a Word upload is refused (415 CS-CNV-0002, a warning at start) |
OPENSEAL_CONVERTD_TIMEOUT | 90 | No | Most seconds the server waits for one conversion, 1 to 600 (default 90) |
OPENSEAL_ADMIN_PASSWORDSecretor OPENSEAL_ADMIN_PASSWORD_FILE | none | No | bootstrap only: the first administrator's password |
OPENSEAL_MIGRATE_DATABASE_URLSecretor OPENSEAL_MIGRATE_DATABASE_URL_FILE | none | No | migrate, verify-evidence and mfa-reseal only: PostgreSQL URL of the schema owner; never the application role |
OPENSEAL_KEYD_SEAL_TOKEN_KEYSecretor OPENSEAL_KEYD_SEAL_TOKEN_KEY_FILE | none | No | migrate only: keyd's seal token key (64 hex digits), installed in the database after the migrations; the server itself is never given it |
OPENSEAL_RECIPIENT_IDPS_FILESecretor OPENSEAL_RECIPIENT_IDPS_FILE_FILE | none | No | Optional: a JSON file of the OpenID Connect providers recipients may sign in with (sso); it holds client secrets, so mount it as a secret |
OPENSEAL_ALERT_WINDOW_SECS | 300 | No | Abnormal-activity detection: the sliding window, 10 to 86,400 seconds |
OPENSEAL_ALERT_REQUESTS | 6000 | No | Abnormal activity: requests per principal or address per window (0 turns the rule off) |
OPENSEAL_ALERT_RATE_LIMITED | 30 | No | Abnormal activity: 429 answers per window |
OPENSEAL_ALERT_AUTH_FAILURES | 20 | No | Abnormal activity: refused sign-ins, second factors, tokens and links per window |
OPENSEAL_ALERT_DENIED | 50 | No | Abnormal activity: 403 answers per window |
OPENSEAL_ALERT_DOCUMENT_READS | 500 | No | Abnormal activity: staff document reads per window |
OPENSEAL_ALERT_VOIDS | 25 | No | Abnormal activity: envelopes voided per window |
OPENSEAL_ALERT_SENDS | 300 | No | Abnormal activity: envelopes sent one at a time per window |
OPENSEAL_ALERT_BULK_SENDS | 10 | No | Abnormal activity: bulk sends per window |
OPENSEAL_ALERT_COOLDOWN_SECS | 900 | No | Quiet time for a subject after an alert |
OPENSEAL_ALERT_MAX_PER_MINUTE | 20 | No | Most alerts a minute across all subjects |
OPENSEAL_ALERT_MAX_TRACKED | 50000 | No | Most subjects counted, 1,000 to 10,000,000 |
RUST_LOG | info | No | Filters the operational log lines; security events are never filtered |
Worker (casual-sign-worker)
Runs every background job: email, reminders and expiry, sealing through keyd and the timestamp authorities, webhooks, daily anchoring and retention. casual-sign-worker config-manifest prints its manifest; casual-sign-worker healthcheck is its container health check.
| Variable | Default | Required | Description |
|---|---|---|---|
OPENSEAL_DATABASE_URLSecretor OPENSEAL_DATABASE_URL_FILE | none | Yes | PostgreSQL URL as the application role |
OPENSEAL_BLOB_DIR | none | Without S3 | The filesystem blob store's root, or: |
OPENSEAL_S3_ENDPOINT | none | No | An S3-compatible bucket instead, as the API server's |
OPENSEAL_S3_BUCKET | none | With S3 | An S3-compatible bucket instead, as the API server's |
OPENSEAL_S3_REGION | us-east-1 | No | An S3-compatible bucket instead, as the API server's |
OPENSEAL_S3_ACCESS_KEYSecretor OPENSEAL_S3_ACCESS_KEY_FILE | none | No | Its credentials (rotated by rewriting the files and restarting, docs/65 §Rotation) |
OPENSEAL_S3_SECRET_KEYSecretor OPENSEAL_S3_SECRET_KEY_FILE | none | No | Its credentials (rotated by rewriting the files and restarting, docs/65 §Rotation) |
OPENSEAL_S3_VIRTUAL_HOST | none | No | Virtual-host URLs (AWS) rather than path style |
OPENSEAL_WORKER_NAME | worker | No | Recorded on claimed jobs (default worker) |
OPENSEAL_BASE_URL | none | Yes | Signing links are {base}/s/{token} |
OPENSEAL_MAIL_FROM | none | Yes | The From address and name; the Message-ID domain |
OPENSEAL_MAIL_FROM_NAME | none | No | The From address and name; the Message-ID domain |
OPENSEAL_MAIL_DOMAIN | none | Yes | The From address and name; the Message-ID domain |
OPENSEAL_ABUSE | none | Yes | Where recipients report abuse (every email names it) |
OPENSEAL_SMTP_HOST | none | Yes | The SMTP relay (default port 587) |
OPENSEAL_SMTP_PORT | 587 | No | The SMTP relay (default port 587) |
OPENSEAL_SMTP_SECURITY | starttls | No | starttls (default), implicit, or plain (a local relay only) |
OPENSEAL_SMTP_USER | none | No | Relay credentials, when needed |
OPENSEAL_SMTP_PASSWORDSecretor OPENSEAL_SMTP_PASSWORD_FILE | none | No | Relay credentials, when needed |
OPENSEAL_TSA_URLS | none | Yes | RFC 3161 time-stamping authorities, comma-separated, tried in order, while the console has configured none (platform.tsa_endpoints, read at most once a minute) |
OPENSEAL_TRUST_ANCHORS | none | No | PEM file of the anchors the sealed output must chain to |
OPENSEAL_KEYD_ADDR | none | Yes, unless a development key | keyd's address, its certificate's name, and the CA it chains to (PEM path) |
OPENSEAL_KEYD_SERVER_NAME | none | Yes, unless a development key | keyd's address, its certificate's name, and the CA it chains to (PEM path) |
OPENSEAL_KEYD_CA | none | No | keyd's address, its certificate's name, and the CA it chains to (PEM path) |
OPENSEAL_KEYD_CLIENT_CERT | none | No | This worker's client certificate chain and key (PEM paths); a keyd that cannot be reached at start (CS-KEY-0011) is reached by the first seal; one that refuses (a TLS refusal CS-KEY-0013: wrong CA, name or client certificate; or an answer such as CS-KEY-0001, CS-KEY-0002) stops the worker at start |
OPENSEAL_KEYD_CLIENT_KEY | none | No | This worker's client certificate chain and key (PEM paths); a keyd that cannot be reached at start (CS-KEY-0011) is reached by the first seal; one that refuses (a TLS refusal CS-KEY-0013: wrong CA, name or client certificate; or an answer such as CS-KEY-0001, CS-KEY-0002) stops the worker at start |
OPENSEAL_KEYD_ALIAS | platform | No | The platform key's alias (default platform) |
OPENSEAL_KEYD_SANDBOX_ALIAS | none | No | Optional: the sandbox key's alias in keyd; sandbox workspaces' envelopes are sealed with it only, and wait unsealed (CS-WRK-0020) while it is unset |
OPENSEAL_WORKER_DEV_SANDBOX_KEY | none | No | Instead of keyd's sandbox alias: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1 |
OPENSEAL_WORKER_DEV_SANDBOX_CHAIN | none | No | Instead of keyd's sandbox alias: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1 |
OPENSEAL_MODELD_ADDR | none | No | Optional: the model service's address, its certificate's name and CA (PEM path); unset, document-analysis jobs end as unavailable (docs/33 §1) |
OPENSEAL_MODELD_SERVER_NAME | none | With modeld | Optional: the model service's address, its certificate's name and CA (PEM path); unset, document-analysis jobs end as unavailable (docs/33 §1) |
OPENSEAL_MODELD_CA | none | No | Optional: the model service's address, its certificate's name and CA (PEM path); unset, document-analysis jobs end as unavailable (docs/33 §1) |
OPENSEAL_MODELD_CLIENT_CERT | none | No | This worker's client certificate chain and key for the model service (PEM paths) |
OPENSEAL_MODELD_CLIENT_KEY | none | No | This worker's client certificate chain and key for the model service (PEM paths) |
OPENSEAL_WORKER_DEV_KEY | none | No | Instead of keyd: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1 |
OPENSEAL_WORKER_DEV_CHAIN | none | No | Instead of keyd: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1 |
OPENSEAL_WEBHOOK_ALLOW | none | No | Non-public ranges webhooks may reach anyway, comma-separated CIDRs (default none) |
OPENSEAL_SIGNING_PROVIDERS_FILE | none | No | Remote-provider signatures (RSP-01, docs/65): the operator's provider catalogue and the key that opens provider secrets; the provider's requests pass OPENSEAL_WEBHOOK_ALLOW's address policy (HTTP only to a loopback host) |
OPENSEAL_PROVIDER_SECRETS_KEY | none | No | Remote-provider signatures (RSP-01, docs/65): the operator's provider catalogue and the key that opens provider secrets; the provider's requests pass OPENSEAL_WEBHOOK_ALLOW's address policy (HTTP only to a loopback host) |
OPENSEAL_WEBHOOK_EXTRA_ROOTS | none | No | PEM file of CAs webhook receivers may chain to besides the platform's roots (a private CA) |
OPENSEAL_SEAL_NAME | none | No | The seal's /Name and /Reason |
OPENSEAL_SEAL_REASON | none | No | The seal's /Name and /Reason |
OPENSEAL_LOG_PSEUDONYM_KEYSecretor OPENSEAL_LOG_PSEUDONYM_KEY_FILE | none | No | 32 bytes as base64: keys the pseudonyms in security events (ASVS-08, docs/65 §Logs); none: a key per process; malformed: the worker does not start (CS-LOG-0001) |
OPENSEAL_ANCHORING | daily | No | daily (default) or off: queue each closed UTC day's anchor of chain heads (docs/32 §5); the anchor is time-stamped by the TSAs above |
OPENSEAL_RETENTION | daily | No | daily (default) or off: queue each account's retention job once a UTC day; it applies the account's retention rules, and does nothing where none is set |
OPENSEAL_ANCHOR_LOG | none | No | Optional: a file each anchor is appended to as one JSON line (openseal.anchor), for the operator to publish; unset, anchors are stored and time-stamped only |
OPENSEAL_SMS_GATEWAY_URL | none | No | Optional: the HTTPS gateway that sends SMS and voice one-time codes, and its bearer secret (messenger::HttpGateway); unset, such codes fail CS-WRK-0013 |
OPENSEAL_SMS_GATEWAY_SECRETSecretor OPENSEAL_SMS_GATEWAY_SECRET_FILE | none | No | Optional: the HTTPS gateway that sends SMS and voice one-time codes, and its bearer secret (messenger::HttpGateway); unset, such codes fail CS-WRK-0013 |
OPENSEAL_S3_CA | none | No | PEM file of the CA the object store's TLS certificate chains to, besides the platform's roots (a private CA, the production profile) |
OPENSEAL_SECRET_RELOAD_SECONDS | 30 | No | How often the database URL file is read again for a rotated credential (default 30; 0 never) |
OPENSEAL_HEALTH_FILE | /tmp/openseal-worker-health | No | Optional: while the database answers, the time is written here every 10 seconds; casual-sign-worker healthcheck exits 0 while it is at most 30 seconds old (the container health check; default path /tmp/openseal-worker-health) |
OPENSEAL_CONFIG_MANIFEST | none | No | Optional (required by the production profile): the manifest of the security settings; the worker refuses to start when they differ (CS-KEY-0014) |
Webhook signing secrets are not listed here: each subscription names its secret by reference, and the worker reads that reference as an environment variable NAME or NAME_FILE.
Key daemon (casual-sign-keyd)
Holds the seal key, one key per alias, and signs only for callers on its allow list over mutual TLS. casual-sign-keyd config-manifest prints its manifest; casual-sign-keyd verify-oplog PATH checks an operation log's chain.
| Variable | Default | Required | Description |
|---|---|---|---|
OPENSEAL_KEYD_LISTEN | 127.0.0.1:7443 | No | Address to bind (default 127.0.0.1:7443) |
OPENSEAL_KEYD_TLS_CERT | none | Yes | Server certificate chain and key (PEM paths) |
OPENSEAL_KEYD_TLS_KEY | none | Yes | Server certificate chain and key (PEM paths) |
OPENSEAL_KEYD_CLIENT_CA | none | Yes | CA a client certificate must chain to (PEM path) |
OPENSEAL_KEYD_ALLOW_LIST | none | Yes | Allowed callers: sha256-fingerprint [name] per line |
OPENSEAL_KEYD_ADMIN_ALLOW_LIST | none | No | Optional: admin callers (the console), same format; answered only list-keys, oplog-head, oplog-range and health, never a signature |
OPENSEAL_KEYD_OPLOG | none | Yes | The operation log (append-only, hash-chained) |
OPENSEAL_KEYD_ALIAS | platform | No | The key's alias (default platform) |
OPENSEAL_KEYD_CHAIN | none | No | Signer certificate chain (PEM path); with PKCS#11, optional: the signer certificate is then read from the token |
OPENSEAL_KEYD_INTERMEDIATES | none | No | With the chain from the token: intermediates (PEM path) |
OPENSEAL_KEYD_RSA_ALGORITHM | pkcs1-sha256 | No | pkcs1-sha256 (default), pkcs1-sha384, pkcs1-sha512, pss-sha256, pss-sha384, pss-sha512 |
OPENSEAL_KEYD_PKCS11_MODULE | none | No | PKCS#11 library path |
OPENSEAL_KEYD_PKCS11_TOKEN | none | With PKCS#11 | Token label |
OPENSEAL_KEYD_PKCS11_KEY_LABEL | none | No | Key label and/or id (hex) |
OPENSEAL_KEYD_PKCS11_KEY_ID | none | No | Key label and/or id (hex) |
OPENSEAL_KEYD_PKCS11_PINSecretor OPENSEAL_KEYD_PKCS11_PIN_FILE | none | No | User PIN (the file form is the private one) |
OPENSEAL_KEYD_FILE_KEY | none | No | A PEM key file instead of PKCS#11: development only, needs OPENSEAL_DEV_INSECURE_KEY=1 |
OPENSEAL_KEYD_SIGNATURES_PER_MINUTE | 600 | No | Per-caller rate (default 600) |
OPENSEAL_KEYD_NEXT_ALIAS | none | No | Optional, during a seal key rotation: a second key served beside the first, on the same token: OPENSEAL_KEYD_NEXT_PKCS11_KEY_LABEL and/or _KEY_ID (one is required), OPENSEAL_KEYD_NEXT_CHAIN or _INTERMEDIATES; development: OPENSEAL_KEYD_NEXT_FILE_KEY with OPENSEAL_KEYD_NEXT_CHAIN |
OPENSEAL_KEYD_SANDBOX_ALIAS | none | No | Optional: the sandbox key, served beside the others on the same token, whose certificate says it is not for agreements; the worker seals sandbox workspaces' envelopes with it only: OPENSEAL_KEYD_SANDBOX_PKCS11_KEY_LABEL and/or _KEY_ID (one is required), OPENSEAL_KEYD_SANDBOX_CHAIN or _INTERMEDIATES; development: OPENSEAL_KEYD_SANDBOX_FILE_KEY with OPENSEAL_KEYD_SANDBOX_CHAIN |
OPENSEAL_KEYD_SEAL_TOKEN_KEYSecretor OPENSEAL_KEYD_SEAL_TOKEN_KEY_FILE | none | No | 32 bytes as 64 hex digits, the key the database mints seal tokens under (KEYD-02, migration 0040): with it, keyd signs only for a request carrying a valid token for its envelope (CS-KEY-0015 otherwise); without it keyd signs for any envelope id and warns seal_token_not_enforced at start. The production profile sets it |
OPENSEAL_KEYD_ASP_ALIAS | none | No | Optional (ADR-047 §3.5): the India eSign ASP request-signing key, an alias beginning asp-, served beside the others on the same token: OPENSEAL_KEYD_ASP_PKCS11_KEY_LABEL and/or _KEY_ID, OPENSEAL_KEYD_ASP_CHAIN or _INTERMEDIATES; development: OPENSEAL_KEYD_ASP_FILE_KEY with OPENSEAL_KEYD_ASP_CHAIN |
OPENSEAL_KEYD_ASP_TOKEN_KEYSecretor OPENSEAL_KEYD_ASP_TOKEN_KEY_FILE | none | No | 32 bytes as 64 hex digits, the key the database mints ASP tokens under (ADR-047 §3.5, migration 0052): with it, an ASP request-signing key (alias asp-*) signs only for a request carrying a valid token for an open eSign session; without it, ASP keys never sign (CS-KEY-0015) |
OPENSEAL_CONFIG_MANIFEST | none | No | Optional (required by the production profile): the manifest of the security settings below; keyd refuses to start when they differ (CS-KEY-0014) |
OPENSEAL_LOG_PSEUDONYM_KEYSecretor OPENSEAL_LOG_PSEUDONYM_KEY_FILE | none | No | 32 bytes as base64: keys the pseudonyms in security events (ASVS-08, docs/65 §Logs); none: a key per process; malformed: keyd does not start (CS-LOG-0001) |
Conversion daemon (casual-sign-convertd)
Converts Word (.docx) uploads to PDF in its own container: no network, a read-only root, no capabilities, and a fresh child process per document with memory, CPU, time and page limits. The server reaches it over a Unix socket on the convertd volume and finds it through its own OPENSEAL_CONVERTD_SOCKET (in the server table above); with that unset, Word uploads are refused (415 CS-CNV-0002). The converted PDF is admitted like any upload and the Word file is kept as the document's original. Excel and PowerPoint are not converted. casual-sign-convertd health is its container health check.
| Variable | Default | Required | Description |
|---|---|---|---|
OPENSEAL_CONVERTD_SOCKET | /run/convertd/convertd.sock | No | The Unix socket to listen on (default /run/convertd/convertd.sock); a stale file there is replaced, and the socket is made readable and writable by its owner only |
OPENSEAL_CONVERTD_FONTS | none | No | A font directory searched before the system's (default none) |
OPENSEAL_CONVERTD_SLOTS | 2 | No | Jobs at once, 1 to 64 (default 2); a request beyond them is answered CS-CNV-0005 busy |
OPENSEAL_CONVERTD_JOB_SECONDS | 60 | No | Wall-clock seconds per job before its child is killed, 1 to 600 (default 60) |
OPENSEAL_CONVERTD_MEMORY | 2048 | No | The child's address-space limit in MiB, 256 to 16384 (default 2048; Linux) |
Production profile (deploy/compose.production.yml)
The variables the profile itself reads when Compose renders it. It maps them onto the services' variables above and sets the rest (paths under /run/secrets/, listen addresses, the ops listener, the drain period). Compose refuses to start while a required one is unset, naming it.
| Variable | Default | Required | Description |
|---|---|---|---|
OPENSEAL_ABUSE | none | Yes | Where recipients report abuse; every email names it |
OPENSEAL_MAIL_DOMAIN | none | Yes | The domain of Message-ID headers |
OPENSEAL_MAIL_FROM | none | Yes | The From address of every email |
OPENSEAL_PKCS11_DIR | none | Yes | Host directory holding the HSM vendor's PKCS#11 library, mounted read-only into keyd at the same path |
OPENSEAL_PKCS11_KEY_LABEL | none | Yes | The seal key's label in the token |
OPENSEAL_PKCS11_MODULE | none | Yes | Path of the PKCS#11 library inside that directory |
OPENSEAL_PKCS11_TOKEN | none | Yes | The HSM token (slot) label holding the seal key |
OPENSEAL_PUBLIC_URL | none | Yes | The HTTPS address people and integrations use; the server's OPENSEAL_PUBLIC_URL and the worker's OPENSEAL_BASE_URL |
OPENSEAL_SEAL_NAME | none | Yes | The seal's signer name, shown by PDF readers |
OPENSEAL_SECRETS_DIR | none | Yes | Directory of the secret files deploy/production/init-secrets.sh wrote, plus the ones you add |
OPENSEAL_SMTP_HOST | none | Yes | Your SMTP relay (STARTTLS) |
OPENSEAL_SMTP_USER | none | Yes | The relay's user name; the password is the smtp-password secret file |
OPENSEAL_TRUSTED_PROXIES | none | Yes | CIDRs whose forwarded client address is believed: include the edge network's subnet |
OPENSEAL_TSA_URLS | none | Yes | RFC 3161 time-stamping authorities, comma-separated, tried in order, until key custodians configure them in the console |
OPENSEAL_VERSION | none | Yes | The OpenSeal image tag, for example 0.1.0; a release's openseal-release.env sets it |
OPENSEAL_HTTP_PORT | 8080 | No | Port of the proxy service on the host's loopback address; your TLS edge forwards to it |
OPENSEAL_IMAGE_PREFIX | openseal | No | Image name prefix: ghcr.io/casualoffice/openseal for published releases, openseal for local builds |
OPENSEAL_MAIL_FROM_NAME | OpenSeal | No | The From display name |
OPENSEAL_PKCS11_NEXT_KEY_LABEL | none | No | During a seal key rotation: the next key's label (empty otherwise) |
OPENSEAL_SEAL_ALIAS | platform | No | The seal key's alias, shared by keyd and the worker |
OPENSEAL_SEAL_NEXT_ALIAS | none | No | During a seal key rotation: the next key's alias (empty otherwise) |
OPENSEAL_SEAL_REASON | Sealed on completion | No | The seal's reason, shown by PDF readers |
OPENSEAL_SMTP_PORT | 587 | No | The relay's port |
Evaluation stack (docker-compose.yml)
The evaluation stack sets everything it needs itself, including convertd and the server's OPENSEAL_CONVERTD_SOCKET. You may set OPENSEAL_HTTP_PORT (default 8080) and OPENSEAL_MAIL_PORT (default 8025) to move its ports, OPENSEAL_CLAMD_ADDR=clamav:3310 with --profile production to scan uploads, and OPENSEAL_IMAGE_PREFIX and OPENSEAL_VERSION to run published images. The optional settings it leaves unset (trusted proxies, GeoIP, identity providers, the SMS gateway, the model service, the webhook allow list) are yours to add.
Platform console
The separate operators' console (casual-sign-console) reads OPENSEAL_CONSOLE_DATABASE_URL and OPENSEAL_CONSOLE_MFA_KEY (secrets), OPENSEAL_CONSOLE_LISTEN, OPENSEAL_CONSOLE_ORIGIN, the OPENSEAL_CONSOLE_KEYD_* settings for its Keys page, and OPENSEAL_CONSOLE_TSA_ALLOW. They are documented with the console in docs/65.