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 both NAME and NAME_FILE is 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_SECONDS so 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_failed line 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.

VariableDefaultRequiredDescription
OPENSEAL_DATABASE_URLSecretor OPENSEAL_DATABASE_URL_FILEnoneYesPostgreSQL URL of the application role
OPENSEAL_JWT_SIGNING_KEYSecretor OPENSEAL_JWT_SIGNING_KEY_FILEnoneOutside developmentP-256 PKCS#8 private key, base64 DER or PEM
OPENSEAL_JWT_PREVIOUS_KEYSecretor OPENSEAL_JWT_PREVIOUS_KEY_FILEnoneNoOptional, 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_DIRnoneWithout S3Directory of the file blob store, or:
OPENSEAL_S3_ENDPOINTnoneNoAn S3-compatible bucket instead (created at start when missing)
OPENSEAL_S3_BUCKETnoneWith S3An S3-compatible bucket instead (created at start when missing)
OPENSEAL_S3_REGIONus-east-1NoIts region (default us-east-1)
OPENSEAL_S3_ACCESS_KEYSecretor OPENSEAL_S3_ACCESS_KEY_FILEnoneNoIts credentials (rotated by rewriting the files and a rolling restart, docs/65 §Rotation)
OPENSEAL_S3_SECRET_KEYSecretor OPENSEAL_S3_SECRET_KEY_FILEnoneNoIts credentials (rotated by rewriting the files and a rolling restart, docs/65 §Rotation)
OPENSEAL_S3_VIRTUAL_HOSTnoneNoVirtual-host URLs (AWS) rather than path style (MinIO, SeaweedFS)
OPENSEAL_S3_CAnoneNoPEM 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_SECONDS30NoHow often the database URL file is read again for a rotated credential (default 30; 0 never; docs/65 §Rotation)
OPENSEAL_WEBAPP_DIRnoneNoThe web app's folder (webapp/), served at /; none: API only
OPENSEAL_PUBLIC_URLnoneNoPublic base URL (links, token issuer; its origin is the one staff passkeys work on)
OPENSEAL_WEBAUTHN_RP_IDnoneNoOptional: 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_LISTEN127.0.0.1:8080NoAddress to listen on (default 127.0.0.1:8080)
OPENSEAL_OPS_LISTENnoneNoAddress 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_SECONDS0NoOn 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_PROXIESnoneNoComma-separated CIDRs whose forwarding headers count
OPENSEAL_GEOIP_DBnoneNoOptional GeoIP .mmdb the operator supplies
OPENSEAL_ML_BUNDLE_IDnoneNoThe model bundle deployed with casual-sign-modeld (docs/33 §7); none: document analysis is not installed
OPENSEAL_LOG_PSEUDONYM_KEYSecretor OPENSEAL_LOG_PSEUDONYM_KEY_FILEnoneNo32 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_FILEnoneOutside development32 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_FILEnoneNoOptional, 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_FILEnoneNoOptional, 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_FILEnoneNoOptional, 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_KEYnoneNoDevelopment only: a throwaway token key and second-factor key, plain-HTTP cookies
OPENSEAL_CLAMD_ADDRnoneNohost: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_SECS60NoMost seconds one scan may take, 1 to 600 (default 60)
OPENSEAL_CLAMD_MAX_BYTES104857600NoLargest file sent to clamd (default 104857600, clamd's StreamMaxLength); at least the largest upload
OPENSEAL_CLAMD_CONCURRENCY4NoScans at once, 1 to 64 (default 4)
OPENSEAL_CLAMD_FAIL_OPENnoneNoAdmit an upload clamd could not judge, recorded as upload.unscanned_admitted; default: refuse it (503 CS-SCAN-0002)
OPENSEAL_CONVERTD_SOCKETnoneNoThe 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_TIMEOUT90NoMost seconds the server waits for one conversion, 1 to 600 (default 90)
OPENSEAL_ADMIN_PASSWORDSecretor OPENSEAL_ADMIN_PASSWORD_FILEnoneNobootstrap only: the first administrator's password
OPENSEAL_MIGRATE_DATABASE_URLSecretor OPENSEAL_MIGRATE_DATABASE_URL_FILEnoneNomigrate, 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_FILEnoneNomigrate 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_FILEnoneNoOptional: 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_SECS300NoAbnormal-activity detection: the sliding window, 10 to 86,400 seconds
OPENSEAL_ALERT_REQUESTS6000NoAbnormal activity: requests per principal or address per window (0 turns the rule off)
OPENSEAL_ALERT_RATE_LIMITED30NoAbnormal activity: 429 answers per window
OPENSEAL_ALERT_AUTH_FAILURES20NoAbnormal activity: refused sign-ins, second factors, tokens and links per window
OPENSEAL_ALERT_DENIED50NoAbnormal activity: 403 answers per window
OPENSEAL_ALERT_DOCUMENT_READS500NoAbnormal activity: staff document reads per window
OPENSEAL_ALERT_VOIDS25NoAbnormal activity: envelopes voided per window
OPENSEAL_ALERT_SENDS300NoAbnormal activity: envelopes sent one at a time per window
OPENSEAL_ALERT_BULK_SENDS10NoAbnormal activity: bulk sends per window
OPENSEAL_ALERT_COOLDOWN_SECS900NoQuiet time for a subject after an alert
OPENSEAL_ALERT_MAX_PER_MINUTE20NoMost alerts a minute across all subjects
OPENSEAL_ALERT_MAX_TRACKED50000NoMost subjects counted, 1,000 to 10,000,000
RUST_LOGinfoNoFilters 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.

VariableDefaultRequiredDescription
OPENSEAL_DATABASE_URLSecretor OPENSEAL_DATABASE_URL_FILEnoneYesPostgreSQL URL as the application role
OPENSEAL_BLOB_DIRnoneWithout S3The filesystem blob store's root, or:
OPENSEAL_S3_ENDPOINTnoneNoAn S3-compatible bucket instead, as the API server's
OPENSEAL_S3_BUCKETnoneWith S3An S3-compatible bucket instead, as the API server's
OPENSEAL_S3_REGIONus-east-1NoAn S3-compatible bucket instead, as the API server's
OPENSEAL_S3_ACCESS_KEYSecretor OPENSEAL_S3_ACCESS_KEY_FILEnoneNoIts credentials (rotated by rewriting the files and restarting, docs/65 §Rotation)
OPENSEAL_S3_SECRET_KEYSecretor OPENSEAL_S3_SECRET_KEY_FILEnoneNoIts credentials (rotated by rewriting the files and restarting, docs/65 §Rotation)
OPENSEAL_S3_VIRTUAL_HOSTnoneNoVirtual-host URLs (AWS) rather than path style
OPENSEAL_WORKER_NAMEworkerNoRecorded on claimed jobs (default worker)
OPENSEAL_BASE_URLnoneYesSigning links are {base}/s/{token}
OPENSEAL_MAIL_FROMnoneYesThe From address and name; the Message-ID domain
OPENSEAL_MAIL_FROM_NAMEnoneNoThe From address and name; the Message-ID domain
OPENSEAL_MAIL_DOMAINnoneYesThe From address and name; the Message-ID domain
OPENSEAL_ABUSEnoneYesWhere recipients report abuse (every email names it)
OPENSEAL_SMTP_HOSTnoneYesThe SMTP relay (default port 587)
OPENSEAL_SMTP_PORT587NoThe SMTP relay (default port 587)
OPENSEAL_SMTP_SECURITYstarttlsNostarttls (default), implicit, or plain (a local relay only)
OPENSEAL_SMTP_USERnoneNoRelay credentials, when needed
OPENSEAL_SMTP_PASSWORDSecretor OPENSEAL_SMTP_PASSWORD_FILEnoneNoRelay credentials, when needed
OPENSEAL_TSA_URLSnoneYesRFC 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_ANCHORSnoneNoPEM file of the anchors the sealed output must chain to
OPENSEAL_KEYD_ADDRnoneYes, unless a development keykeyd's address, its certificate's name, and the CA it chains to (PEM path)
OPENSEAL_KEYD_SERVER_NAMEnoneYes, unless a development keykeyd's address, its certificate's name, and the CA it chains to (PEM path)
OPENSEAL_KEYD_CAnoneNokeyd's address, its certificate's name, and the CA it chains to (PEM path)
OPENSEAL_KEYD_CLIENT_CERTnoneNoThis 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_KEYnoneNoThis 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_ALIASplatformNoThe platform key's alias (default platform)
OPENSEAL_KEYD_SANDBOX_ALIASnoneNoOptional: 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_KEYnoneNoInstead of keyd's sandbox alias: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1
OPENSEAL_WORKER_DEV_SANDBOX_CHAINnoneNoInstead of keyd's sandbox alias: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1
OPENSEAL_MODELD_ADDRnoneNoOptional: 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_NAMEnoneWith modeldOptional: 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_CAnoneNoOptional: 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_CERTnoneNoThis worker's client certificate chain and key for the model service (PEM paths)
OPENSEAL_MODELD_CLIENT_KEYnoneNoThis worker's client certificate chain and key for the model service (PEM paths)
OPENSEAL_WORKER_DEV_KEYnoneNoInstead of keyd: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1
OPENSEAL_WORKER_DEV_CHAINnoneNoInstead of keyd: a PEM key and its chain, development only, needs OPENSEAL_DEV_INSECURE_KEY=1
OPENSEAL_WEBHOOK_ALLOWnoneNoNon-public ranges webhooks may reach anyway, comma-separated CIDRs (default none)
OPENSEAL_SIGNING_PROVIDERS_FILEnoneNoRemote-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_KEYnoneNoRemote-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_ROOTSnoneNoPEM file of CAs webhook receivers may chain to besides the platform's roots (a private CA)
OPENSEAL_SEAL_NAMEnoneNoThe seal's /Name and /Reason
OPENSEAL_SEAL_REASONnoneNoThe seal's /Name and /Reason
OPENSEAL_LOG_PSEUDONYM_KEYSecretor OPENSEAL_LOG_PSEUDONYM_KEY_FILEnoneNo32 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_ANCHORINGdailyNodaily (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_RETENTIONdailyNodaily (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_LOGnoneNoOptional: 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_URLnoneNoOptional: 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_FILEnoneNoOptional: 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_CAnoneNoPEM 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_SECONDS30NoHow often the database URL file is read again for a rotated credential (default 30; 0 never)
OPENSEAL_HEALTH_FILE/tmp/openseal-worker-healthNoOptional: 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_MANIFESTnoneNoOptional (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.

VariableDefaultRequiredDescription
OPENSEAL_KEYD_LISTEN127.0.0.1:7443NoAddress to bind (default 127.0.0.1:7443)
OPENSEAL_KEYD_TLS_CERTnoneYesServer certificate chain and key (PEM paths)
OPENSEAL_KEYD_TLS_KEYnoneYesServer certificate chain and key (PEM paths)
OPENSEAL_KEYD_CLIENT_CAnoneYesCA a client certificate must chain to (PEM path)
OPENSEAL_KEYD_ALLOW_LISTnoneYesAllowed callers: sha256-fingerprint [name] per line
OPENSEAL_KEYD_ADMIN_ALLOW_LISTnoneNoOptional: admin callers (the console), same format; answered only list-keys, oplog-head, oplog-range and health, never a signature
OPENSEAL_KEYD_OPLOGnoneYesThe operation log (append-only, hash-chained)
OPENSEAL_KEYD_ALIASplatformNoThe key's alias (default platform)
OPENSEAL_KEYD_CHAINnoneNoSigner certificate chain (PEM path); with PKCS#11, optional: the signer certificate is then read from the token
OPENSEAL_KEYD_INTERMEDIATESnoneNoWith the chain from the token: intermediates (PEM path)
OPENSEAL_KEYD_RSA_ALGORITHMpkcs1-sha256Nopkcs1-sha256 (default), pkcs1-sha384, pkcs1-sha512, pss-sha256, pss-sha384, pss-sha512
OPENSEAL_KEYD_PKCS11_MODULEnoneNoPKCS#11 library path
OPENSEAL_KEYD_PKCS11_TOKENnoneWith PKCS#11Token label
OPENSEAL_KEYD_PKCS11_KEY_LABELnoneNoKey label and/or id (hex)
OPENSEAL_KEYD_PKCS11_KEY_IDnoneNoKey label and/or id (hex)
OPENSEAL_KEYD_PKCS11_PINSecretor OPENSEAL_KEYD_PKCS11_PIN_FILEnoneNoUser PIN (the file form is the private one)
OPENSEAL_KEYD_FILE_KEYnoneNoA PEM key file instead of PKCS#11: development only, needs OPENSEAL_DEV_INSECURE_KEY=1
OPENSEAL_KEYD_SIGNATURES_PER_MINUTE600NoPer-caller rate (default 600)
OPENSEAL_KEYD_NEXT_ALIASnoneNoOptional, 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_ALIASnoneNoOptional: 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_FILEnoneNo32 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_ALIASnoneNoOptional (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_FILEnoneNo32 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_MANIFESTnoneNoOptional (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_FILEnoneNo32 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.

VariableDefaultRequiredDescription
OPENSEAL_CONVERTD_SOCKET/run/convertd/convertd.sockNoThe 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_FONTSnoneNoA font directory searched before the system's (default none)
OPENSEAL_CONVERTD_SLOTS2NoJobs at once, 1 to 64 (default 2); a request beyond them is answered CS-CNV-0005 busy
OPENSEAL_CONVERTD_JOB_SECONDS60NoWall-clock seconds per job before its child is killed, 1 to 600 (default 60)
OPENSEAL_CONVERTD_MEMORY2048NoThe 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.

VariableDefaultRequiredDescription
OPENSEAL_ABUSEnoneYesWhere recipients report abuse; every email names it
OPENSEAL_MAIL_DOMAINnoneYesThe domain of Message-ID headers
OPENSEAL_MAIL_FROMnoneYesThe From address of every email
OPENSEAL_PKCS11_DIRnoneYesHost directory holding the HSM vendor's PKCS#11 library, mounted read-only into keyd at the same path
OPENSEAL_PKCS11_KEY_LABELnoneYesThe seal key's label in the token
OPENSEAL_PKCS11_MODULEnoneYesPath of the PKCS#11 library inside that directory
OPENSEAL_PKCS11_TOKENnoneYesThe HSM token (slot) label holding the seal key
OPENSEAL_PUBLIC_URLnoneYesThe HTTPS address people and integrations use; the server's OPENSEAL_PUBLIC_URL and the worker's OPENSEAL_BASE_URL
OPENSEAL_SEAL_NAMEnoneYesThe seal's signer name, shown by PDF readers
OPENSEAL_SECRETS_DIRnoneYesDirectory of the secret files deploy/production/init-secrets.sh wrote, plus the ones you add
OPENSEAL_SMTP_HOSTnoneYesYour SMTP relay (STARTTLS)
OPENSEAL_SMTP_USERnoneYesThe relay's user name; the password is the smtp-password secret file
OPENSEAL_TRUSTED_PROXIESnoneYesCIDRs whose forwarded client address is believed: include the edge network's subnet
OPENSEAL_TSA_URLSnoneYesRFC 3161 time-stamping authorities, comma-separated, tried in order, until key custodians configure them in the console
OPENSEAL_VERSIONnoneYesThe OpenSeal image tag, for example 0.1.0; a release's openseal-release.env sets it
OPENSEAL_HTTP_PORT8080NoPort of the proxy service on the host's loopback address; your TLS edge forwards to it
OPENSEAL_IMAGE_PREFIXopensealNoImage name prefix: ghcr.io/casualoffice/openseal for published releases, openseal for local builds
OPENSEAL_MAIL_FROM_NAMEOpenSealNoThe From display name
OPENSEAL_PKCS11_NEXT_KEY_LABELnoneNoDuring a seal key rotation: the next key's label (empty otherwise)
OPENSEAL_SEAL_ALIASplatformNoThe seal key's alias, shared by keyd and the worker
OPENSEAL_SEAL_NEXT_ALIASnoneNoDuring a seal key rotation: the next key's alias (empty otherwise)
OPENSEAL_SEAL_REASONSealed on completionNoThe seal's reason, shown by PDF readers
OPENSEAL_SMTP_PORT587NoThe 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.