Skip to content
Registry StackDocsv0.48.0

Registry Casework runtime configuration reference

View as Markdown

Registry Casework reads one versioned operator document, runtime.yaml. Select it with casework --runtime-config ABSOLUTE_FILE serve. caseworkctl plan, apply, status and doctor read the same file with --runtime-config. Deploy Registry Casework shows the steps; this page is the contract.

The selected file path and every operated resource path are absolute, and the selected file may not pass through a symbolic link. Local development tooling may resolve paths before it writes the file.

The shared Registry Stack runtime configuration loader reads the file. It must be a YAML mapping of at most 1 MiB, and unknown keys are refused with the path of the offending field. Every problem is reported at its line and column. A member written as null, ~ or an empty value is refused; omit the key to take its default. A secret reference, URL or digest that is not written in its form is refused at its position with config.invalid-value. A number outside its bounds is refused with config.out-of-range. Neither refusal repeats the value.

caseworkctl check PROJECT --runtime-config FILE reads the file the same way, offline and against the authored project. It opens no package, database, issuer, context provider or secret. It reports every problem in the file at its position, as the runtime does when it refuses the file at startup. A ${VAR} expression, and every rule that reads its value, stays unchecked unless --environment fills the expressions from the current environment.

String values in runtime.yaml can take a deployment value from the environment when the runtime starts:

  • ${VAR} requires VAR.
  • ${VAR:-default} falls back to default.
  • ${VAR:?message} refuses to start with message when VAR is unset.

Substitution never applies to a field whose name ends in Ref or Refs, or to any value beneath one. A secret reference must be written literally and resolved by a declared provider. Substitution never applies to the authored casework.yaml either. An environment expression there is refused, by the runtime and by caseworkctl check, with the path of the field that holds it.

The closed envelope is:

apiVersion: id.registrystack.org/formats/casework/runtime/v1alpha1
kind: CaseworkRuntimeConfig

identity.databaseId is required. It is the logical name of the database this deployment activates packages in, such as casework-production. You choose it. It is 1 to 256 bytes with no surrounding whitespace or control character, and it is never derived from a URL or a PostgreSQL database name. The first caseworkctl apply records it in the activation ledger. Every later apply, and every start of the runtime, refuses a database that recorded a different identity, without naming either value. A file that omits the block is refused with the key to add.

package.root selects one directory. The runtime always loads package.root/casework.yaml; no second project selector can override it. In every listener mode, with or without package.expectedDigest, the directory must be a package that caseworkctl package wrote. Its SHA256SUMS file lists exactly casework.yaml, its referenced display schemas and the context provider exports it names, each matching its digest. A directory without SHA256SUMS, such as an authored project, is refused and the refusal names caseworkctl package. rstack dev packages the authored project on every start and serves that package.

package.expectedDigest is optional. When set, it is sha256: followed by 64 lowercase hexadecimal digits. The runtime then starts only on the verified package whose package digest, the SHA-256 digest of its SHA256SUMS, is that value. Any other package, or a directory without SHA256SUMS, is refused before the runtime starts, and the refusal names the expected digest and the one found. The retired package.expectedPolicyDigest is refused with package.expectedDigest named as its replacement. Set it to the digest that caseworkctl package printed for the package you reviewed, so that replacing the files under package.root cannot change the policy a restart loads.

Before activation, caseworkctl plan compares the candidate package with the in-flight reviews retained in the database. caseworkctl apply refuses a package that removes a policy, profile, team, producer, provider or contract those reviews still need, or that changes pinned policy content under the same version. Let the affected reviews finish under the active package before you apply the candidate. caseworkctl doctor repeats the check for the active package. There is no override for orphaned work.

listener is required. listener.bind is required and is one numeric socket address, including bracketed IPv6 forms. listener.tlsTermination is required:

  • operator-controlled-upstream sits behind an operator-managed TLS edge.
  • development-loopback is for direct local development.

listener.networkExposure defaults to private-address. container-private permits an unspecified bind only for a listener kept on a private container network.

metricsListener is optional and absent by default. metricsListener.bind is one numeric socket address with a nonzero port. It is loopback or private (IPv4 private range or IPv6 unique local), and never shares a socket with the API listener (a wildcard on the listener’s port counts as shared). metricsListener.networkExposure defaults to private-address, which refuses a wildcard. container-private also permits 0.0.0.0 or ::, for a container whose private address is not known when the file is written, and every other refusal still applies. An IPv6 wildcard API listener counts as occupying that port on both families. When set, the runtime serves /metrics and /version there and nowhere else.

secretProviders explicitly enables each accepted reference form:

  • Declare file: {root: ABSOLUTE_DIRECTORY} before you use secret:file/name.
  • Declare environment: {} before you use secret:env/NAME.

The runtime does not fall back from one provider to another. The maintained example uses mounted files.

database.runtimeUrlRef supplies the least-privilege service connection. database.migrationUrlRef supplies the operator-run migration connection. The runtime, caseworkctl plan, status and doctor connect only with the runtime credential. Only caseworkctl apply resolves the migration credential.

When the two name different PostgreSQL roles, apply grants the runtime role the privileges it serves with and records the deployment as split. Those privileges are schema usage, read and write on the Casework tables, and read-only on the activation ledger and the schema migration table. When they name one role, or the runtime role can still write the ledger, apply records single, and status and doctor say that the runtime credential can activate packages.

database.caBundleRef is optional. Plaintext PostgreSQL is available only to builds with the postgres-test feature and an explicit testOnlyPlaintext: true setting.

Unless a database URL sets them, every Casework connection uses these values, all in seconds as Casework reads the URL:

  • connect_timeout=5
  • keepalives_idle=15
  • keepalives_interval=5
  • keepalives_retries=3
  • tcp_user_timeout=30

Libpq reads tcp_user_timeout in milliseconds; Casework reads it in seconds. A connection to a server that stopped answering therefore fails within seconds. The TCP user timeout applies on Linux only.

authentication.oidc requires issuer and audience. The issuer is an exact https URL without credentials, query or fragment. The audience is at most 512 characters. For the shared access-token profile (algorithms, token type, audience, scope and actor separation, issuer-network policy, lifetime and safe diagnostics), see Request an access token from your own code.

The issuer’s declared origin may resolve to a private address. A discovery document may name a same-origin private jwks_uri. A cross-origin private jwks_uri named by discovery is refused, and cloud metadata and link-local addresses are always refused.

Plain http is accepted on IPv4 and IPv6 loopback when listener.tlsTermination is development-loopback. Set allowInsecureHttp: true beside issuer to permit it elsewhere; startup logs a warning while that setting is active. The setting covers the issuer’s origin and a type: uri key set. It never covers a cross-origin jwks_uri named by discovery, which must use https.

jwksSource defaults to type: discovery.

  • type: uri with uri fetches the key set from a fixed address instead of the one discovery names. As an endpoint you declare, it inherits the declared issuer’s allowance and can resolve to a private or loopback address on any origin.
  • type: static with documentRef reads a pinned key set, which does no rotation of its own.

The removed jwksUri key is refused with a diagnostic naming jwksSource type: uri as its replacement.

allowedClients lists the client identifiers whose tokens the runtime admits. Each is matched against the token’s azp claim or, when it has none, its client_id claim. Every file writes the member: a list of at least one distinct client, or unrestricted, which admits every client the issuer verifies. An omitted member, an empty list and a repeated client are refused when the file is read. Under operator-controlled-upstream the member must list its clients. Development loopback accepts unrestricted as a local convenience. A configured taskAuthority requires a list in either mode, and its issuer is an absolute http or https URL with a host and no user information.

scopeClaim defaults to registry_scopes for compatibility with existing deployments. Stock ThunderID emits scope, so the maintained example and caseworkctl init set that explicit override. humanIdentity defaults to claim registry_actor_kind with value human and applies only to human roles. Principal selection belongs exclusively to each authored accessProfiles.PROFILE_ID.principalClaim in casework.yaml. The removed runtime field authentication.oidc.principalClaim is refused with that replacement. Casework trusts one issuer, so every access profile a person uses (staff, supervisor, administrator, an initiator profile and any other requester profile) must name the same principalClaim; casework.yaml is refused with casework.access-profile.mixed-principal-claims otherwise. Profiles a trusted producer uses are services and share one claim among themselves, which may differ from the people’s. A service requester profile must be named by a trusted producer’s profile to be compared apart from people; no Casework route serves a service through any other requester profile.

revokedKeyIds is an optional list of at most 128 distinct nonempty key identifiers. Casework refuses a token whose protected kid appears in the list even while the key remains in the issuer’s key set. The list refuses those keys in Casework only; it does not revoke them at the issuer.

maximumTokenLifetimeSeconds optionally limits the interval from iat to exp to 1 through 7200 seconds. Omitting either setting preserves the existing acceptance rule.

During key rotation, publish the replacement key first and confirm that Casework accepts a test token signed by it. Add the retiring key identifier to revokedKeyIds when it must stop authorising immediately, apply the runtime configuration, and confirm that a token signed by the retired key is refused. Remove the old public key from the issuer after all services have applied the change. A static jwksSource also requires atomically replacing its referenced document and restarting Casework.

delegatedStaffReaders is absent by default. When present, it is a non-empty map keyed by an operator-owned reader policy identifier, such as assistant-reader. Each entry names:

  • one existing Staff access profile;
  • one explicitly allowed OAuth client;
  • the exact trusted act.sub;
  • the exact subject-token issuer recorded by the exchange;
  • one scope used only for delegated staff reads;
  • a token lifetime ceiling of 1 through 300 seconds.

The delegated token must carry every Staff profile scope plus that one read scope; unrelated extra scopes grant no authority on these dedicated routes. It also carries one Casework audience, the configured human assertion, no grant claims and no nested actor. An act.iss is optional, and when present it must equal the verified token issuer. The ordinary authentication path continues to refuse a configured delegated-reader client’s token when it has act or the delegated-read scope.

Configure humanIdentity against an issuer-verified claim about the represented person, and preserve it through both exchanges. The gateway’s current actor category can be service while the subject is human, so that category alone cannot establish subject identity. Direct human credentials must carry the configured claim too. The issuer, rather than tool arguments, supplies the subject, purpose and jurisdiction claims used downstream.

The dedicated routes are GET /v1/delegated-staff/review-tasks and GET /v1/delegated-staff/review-tasks/{taskId}/context. A client selects the map entry with registry-casework-delegated-reader; it does not send registry-casework-profile. The list is always due-ordered work assigned to the represented Staff principal. The context route checks the current holder and revision before source I/O and again before release. Neither route offers a mutation, unclaimed-work, supervisor, administrator or general human operation. An optional sourceProfiles list is the complete set accepted from registry-source-profile; source authorisation remains separate.

For a current-source Base Registry Engine (BReg) provider, delegatedDisplayExchange is an optional provider binding dedicated to these reads. It names the token endpoint, separate client and assertion-key secret references, the required assertion audience (clientAssertionAudience, the authorization server’s issuer identifier), the exact downstream resource, non-empty scopes and a credential generation. Casework passes only verified subject-token metadata and the invocation credential to this provider boundary. The provider performs a fresh per-call exchange and sends only the exchanged bearer to BReg. It never forwards the Casework bearer and never falls back to the human-display credential.

The delegated OAuth client must differ from the provider’s unattended status client, so the authorization server can grant subject-delegation authority without granting it to the status identity. This separates OAuth policy; key material is separate only when the deployment configures separate keys.

audit selects where Casework writes its audit entries and the key that pseudonymises the principals and identifiers they name.

  • audit.hashKeyRef is that key’s secret reference and must be an exact secret:env/NAME or secret:file/name reference.
  • audit.destination is file (the default) or stdout.
  • A file destination requires the absolute audit.path of the active file.
  • A file destination accepts audit.rotateBytes (default 104857600, at least 1048576, at most 4294967295) and audit.retentionDays (default 90, at least 1, at most 36500).
  • stdout refuses path, rotateBytes and retentionDays.

A caseworkctl command that writes audit, such as an applied erasure or settlement, writes to a sibling file named for its process role beside audit.path: audit.caseworkctl.ndjson for audit.ndjson. With a stdout destination it writes to standard error, so the command’s own report keeps standard output.

Every entry carries the schema registry-casework-audit/v1, a phase, and a correlation shared by an operation’s request entry and its response entries.

  • A requested operation writes one request entry before it opens the operation’s transaction.
  • It writes one response entry for each domain event it records, after that transaction commits.
  • A destination that refuses either entry fails the request with service.unavailable, and a refused response leaves the committed change in place.
  • A requested operation that records no domain event, such as an idempotent replay, writes one response entry whose outcome is replayed or unchanged, and returns its result only after that entry is accepted.
  • Background work no caller requested, such as a review clock or retention pass, writes no request entry. It opens its transaction only while the writer reports ready, and its response entries share a correlation that identifies the run.

The database holds no audit state.

contextProviders binds declared deploymentRef values under casework.yaml:contextProviders. Unknown keys are refused. An omitted provider leaves only its current-source operations unavailable, while submitted-context reviews continue to work.

Each binding provides the BReg base URL, tokenEndpoint, clientIdRef, clientAssertionKeyRef, clientAssertionAudience and statusProfile. The status profile must equal the authored serviceProfiles.service-status for that provider. Optional taskGrantProfile must equal the provider’s separately authored serviceProfiles.task-grant-context profile. Its absence disables current-source task-grant context; the runtime never falls back to statusProfile or to the human display profile. This selection does not require the source access profile to be a singleton permission. The configured service client must be authorised for each selected profile at BReg.

clientAssertionAudience is the authorization server’s issuer identifier, exactly as its metadata publishes it: the client assertion’s sole audience, with no default. Optional resource and scopes configure the token request for the service reader. Use the exact values registered by the issuer and BReg deployment. The status credential reads only the operations and fields its source profiles grant. It does not supply fields shown to a human reviewer.

For a current-source review, the human request selects a BReg source profile with the Registry-Source-Profile header. Casework forwards that human’s bearer to BReg for the current display read. BReg authorises the profile, subject and disclosure.

The compiled Casework policy pins the producer’s context contract and vendored schema; the verified package also includes the provider’s exported description. caseworkctl check --against-breg-package compares that export with a checked native BReg package offline. Rotate transport credentials by updating their secret references without changing the policy. A changed BReg context contract needs a new export, schema pin and Casework package.

Separate resource grants can opt in per provider with humanSourceAuthentication: {audience: urn:example:breg} in the existing contextProviders binding. The audience must differ from Casework’s audience. Casework uses its existing issuer, signing-key trust, algorithms, access-token type, revocation and token lifetime policy to verify this source credential independently. It does not apply or combine Casework’s allowedClients or assertionIssuers for source-client admission. BReg independently enforces its source client, profile, scope, purpose and disclosure before any field release. This creates no new issuer or client trust.

An ordinary human request can then supply exactly one Registry-Source-Authorization: Bearer <source-access-token> alongside its Casework Authorization and an explicit Registry-Source-Profile. Both verified tokens must meet all of these conditions:

  • Each names one scalar audience.
  • They carry the same nonempty issuer and sub.
  • They carry the configured human marker and direct registry_actor_kind: human.
  • They carry no delegation or task-grant claims.

A custom Casework principal does not replace the verified subject comparison. Audience arrays, a wrong key, issuer, time or subject, and a machine identity are refused. Casework authority never supplies source authority. Duplicate or conflicting headers are refused.

The pinned task and request policy selects the provider. A collection invocation requires one unique current-source provider across the active project; zero or multiple providers are refused rather than filtering a bad credential into a partial page. Verification precedes source I/O and any output, including empty and submitted-only pages.

A submitted-context task or request ignores the source pair. Casework neither verifies nor forwards it, and the call behaves as without it, provided the pair is well formed and the caller is staff; header shape checks and the Requester refusal still apply. Registry-Source-Profile sent alone is still refused on the single task read and on request history and clocks (400 source-profile.not-applicable), because it is the single-bearer forwarding form and a submitted-context target has no source to forward it to. Source-free operations reject the header. Those operations are release, task-grant revocation, accountability, producer, directory and delegated-reader routes. An absent header preserves ordinary single-bearer and CLI forwarding behaviour. Once the header is supplied, no fallback to the Casework token or machine status token is permitted.

Credentials live only in the current request’s redacted, zeroising provider handle and its bounded source calls. They never enter tasks, decisions, drafts, audit, cursors, receipts or recovery objects. Clients borrow an explicit HumanSourceCredential per call. Language clients expose humanSourceCredentialContract() (Python: human_source_credential_contract) from the actually loaded native addon; its supported value is registry.casework.human-source-credential.v1. A facade version or a silently ignored extra argument is not capability evidence.

reviewCompletionDestinations is keyed by the logical destination ids a producer’s completion block names, kept as written: 1 to 512 characters without control characters. Each destination has one url and exactly one secret:

  • bearerTokenRef presents the secret as Authorization: Bearer <secret>.
  • auth: {secretRef} does the same.
  • auth: {header, secretRef} presents the raw secret as the value of that header instead, with no Authorization header. Use it for a receiver that authenticates with a header such as x-api-key.

The header name is HTTP token characters, at most 64 bytes, and compared case-insensitively against a reserved set the runtime refuses at load. The reserved set covers authentication, host, cookie, framing, hop-by-hop, forwarding, proxy and tracing headers, plus the completion contract’s own idempotency-key and every registry- header. The secret is visible ASCII, is never logged, and redirects are not followed. caseworkctl doctor reports the same refusal before the runtime starts.

Receive Casework completion wakes defines the POST payload, headers, bounded retries, acknowledgement and durable receiver deduplication. Delivery is at-least-once.

The table lists every key the runtime schema accepts, with its type, accepted values, defaults and constraints. The maintained runtime.example.yaml in the canonical-review example project shows a complete file.

runtime.yaml

Source preview, pre-1.0

Generated from products/casework/generated/runtime/runtime.schema.json. 99 key paths. Explained in docs/site/src/content/docs/reference/casework-configuration.mdx.

Key pathTypeRequiredAccepted valuesConstraints
apiVersionstringYes
  • id.registrystack.org/formats/casework/runtime/v1alpha1
None specified
auditThe audit journal: where it is written and the key its hashes use.objectYesNot specifiedNone specified
audit.destinationWhere audit entries go: a rotated file (the default) or stdout.stringNo
  • file
  • stdout
Schema default, where declared: "file"
None specified
audit.hashKeyRefSecret reference to the audit hash key.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
audit.pathThe active audit file. Required for, and only allowed with, file.stringConditionalNot specified
  • pattern: ^/+(?:(?:[^/.][^/]*|\.(?:[^/.][^/]*|\.[^/]+)?)/+)*(?:[^/.][^/]*|\.(?:[^/.][^/]*|\.[^/]+))$
audit.retentionDaysDelete rotated files older than this many days. Only allowed with file; omitted, rotated files are kept 90 days.integerNoNot specified
  • format: uint32
  • maximum: 36500
  • minimum: 1
audit.rotateBytesRotate the active file once it reaches this many bytes. Only allowed with file; omitted, the file rotates at 100 MiB.integerNoNot specified
  • format: uint64
  • maximum: 4294967295
  • minimum: 1048576
authenticationobjectYesNot specifiedNone specified
authentication.oidcThe access tokens this runtime accepts: the issuer and its keys, the clients admitted, the scope claim, and the claim that marks a human actor.objectYesNot specifiedNone specified
authentication.oidc.allowInsecureHttpPermit plain HTTP beyond loopback to the configured issuer and to a JWKS URI declared in configuration. TLS remains required unless the operator explicitly accepts this transport risk.booleanNoNot specifiedSchema default, where declared: falseNone specified
authentication.oidc.allowedClientsThe OAuth clients whose access tokens are admitted: unrestricted to admit a token from every client the issuer verifies, or a list of at least one distinct client. A runtime decides whether unrestricted is acceptable in production.array | stringYes
  • unrestricted

No bound

or

  • minItems: 1
  • uniqueItems: true
authentication.oidc.allowedClients[]Array itemstringConditionalNot specifiedNone specified
authentication.oidc.assertionIssuersAssertion authorities each client may exchange a subject token from, keyed by client identifier. Omitted, no assertion-issuer rule applies; written, it lists at least one client, each with at least one authority. Once a client is listed, a token it exchanged is accepted only for one of that client's declared authorities, and a client that is not listed may exchange from no authority.objectNoNot specified
  • maxProperties: 64
  • minProperties: 1
authentication.oidc.assertionIssuers.*Map valuearrayNoNot specified
  • maxItems: 16
  • minItems: 1
  • propertyNames.maxLength: 128
  • propertyNames.minLength: 1
  • propertyNames.pattern: ^[^\u0000-\u001F\u007F-\u009F]+$
  • uniqueItems: true
authentication.oidc.assertionIssuers.*[]Array itemstringNoNot specified
  • maxLength: 512
  • minLength: 1
authentication.oidc.audienceThe audience every accepted access token must carry in aud.stringYesNot specified
  • maxLength: 512
  • minLength: 1
authentication.oidc.delegatedStaffReadersExplicitly opted-in delegated staff readers, keyed by the policy id a dedicated read client sends. Absence disables delegated staff reads.objectNoNot specifiedNone specified
authentication.oidc.delegatedStaffReaders.*Map valueOne deployment-owned delegation ceiling. The policy id is the containing map key, never a human profile supplied by the HTTP caller.objectNoNot specified
  • propertyNames.pattern: ^[a-z][a-z0-9_-]{0,63}$
authentication.oidc.delegatedStaffReaders.*.actorSubjectstringYesNot specifiedNone specified
authentication.oidc.delegatedStaffReaders.*.assertionIssuerAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
authentication.oidc.delegatedStaffReaders.*.clientstringYesNot specifiedNone specified
authentication.oidc.delegatedStaffReaders.*.maximumTokenLifetimeSecondsintegerYesNot specified
  • format: uint64
  • maximum: 300
  • minimum: 1
authentication.oidc.delegatedStaffReaders.*.profileA local identifier: a lowercase letter, then up to 63 lowercase letters, digits, _, or -.stringYesNot specified
  • pattern: ^[a-z][a-z0-9_-]{0,63}$
authentication.oidc.delegatedStaffReaders.*.requiredScopestringYesNot specifiedNone specified
authentication.oidc.delegatedStaffReaders.*.sourceProfilesarrayNoNot specified
  • maxItems: 32
  • minItems: 1
  • uniqueItems: true
authentication.oidc.delegatedStaffReaders.*.sourceProfiles[]Array itemA local identifier: a lowercase letter, then up to 63 lowercase letters, digits, _, or -.stringNoNot specified
  • pattern: ^[a-z][a-z0-9_-]{0,63}$
authentication.oidc.humanIdentityobjectNoNot specifiedNone specified
authentication.oidc.humanIdentity.claimstringNoNot specifiedSchema default, where declared: "registry_actor_kind"None specified
authentication.oidc.humanIdentity.valuestringNoNot specifiedSchema default, where declared: "human"None specified
authentication.oidc.issuerExact issuer accepted in access-token iss claims, an absolute https URL, or a plain http URL when allowInsecureHttp is set.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
authentication.oidc.jwksSourceWhere the issuer's signing keys come from. Absent reads the issuer's OpenID Connect discovery document.objectNoNot specifiedSchema default, where declared: {"type":"discovery"}None specified
authentication.oidc.jwksSource.documentRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringConditionalNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
authentication.oidc.jwksSource.typestringYes
  • discovery
  • static
  • uri
None specified
authentication.oidc.jwksSource.uriAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringConditionalNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
authentication.oidc.maximumTokenLifetimeSecondsOptional deployment bound on the lifetime declared by an incoming access token, independently of the issuer's own policy.integerNoNot specified
  • format: uint64
  • maximum: 7200
  • minimum: 1
authentication.oidc.revokedKeyIdsSigning-key identifiers Casework refuses locally, even while the issuer still publishes them; listing a key does not revoke it at the issuer. Omitted, no key is refused; written, the list is non-empty.arrayNoNot specified
  • maxItems: 128
  • minItems: 1
  • uniqueItems: true
authentication.oidc.revokedKeyIds[]Array itemAn identifier another system issues, written exactly as its issuer gives it.stringNoNot specified
  • maxLength: 512
  • minLength: 1
  • pattern: ^[^\u0000-\u001F\u007F-\u009F]+$
authentication.oidc.scopeClaimstringNoNot specifiedSchema default, where declared: "registry_scopes"None specified
contextProvidersProvider transport bindings keyed by the deploymentRef casework.yaml declares.objectNoNot specifiedSchema default, where declared: {}None specified
contextProviders.*Map valueEnvironment-specific transport and reader identity. Human display always replaces it.objectNoNot specified
  • propertyNames.pattern: ^[a-z][a-z0-9_-]{0,63}$
contextProviders.*.baseUrlAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
contextProviders.*.clientAssertionAudienceThe authorization server's issuer identifier: the client assertion's sole audience. It has no default.stringYesNot specifiedNone specified
contextProviders.*.clientAssertionKeyRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
contextProviders.*.clientIdRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
contextProviders.*.delegatedDisplayExchangeDedicated per-call delegation for staff-subject source disclosure. This is separate from the provider's status and task-context service credential.objectNoNot specifiedNone specified
contextProviders.*.delegatedDisplayExchange.clientAssertionAudienceThe authorization server's issuer identifier: the client assertion's sole audience. It has no default.stringYesNot specifiedNone specified
contextProviders.*.delegatedDisplayExchange.clientAssertionKeyRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
contextProviders.*.delegatedDisplayExchange.clientIdRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
contextProviders.*.delegatedDisplayExchange.generationstringYesNot specifiedNone specified
contextProviders.*.delegatedDisplayExchange.resourcestringYesNot specifiedNone specified
contextProviders.*.delegatedDisplayExchange.scopesarrayYesNot specifiedNone specified
contextProviders.*.delegatedDisplayExchange.scopes[]Array itemstringNoNot specifiedNone specified
contextProviders.*.delegatedDisplayExchange.tokenEndpointAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
contextProviders.*.humanSourceAuthenticationOpt in to independently verified, same-human source credentials.objectNoNot specifiedNone specified
contextProviders.*.humanSourceAuthentication.audiencestringYesNot specifiedNone specified
contextProviders.*.resourcestringNoNot specifiedNone specified
contextProviders.*.scopesarrayNoNot specifiedNone specified
contextProviders.*.scopes[]Array itemstringNoNot specifiedNone specified
contextProviders.*.statusProfilestringYesNot specifiedNone specified
contextProviders.*.taskGrantProfilestringNoNot specifiedNone specified
contextProviders.*.tokenEndpointAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
databaseThe PostgreSQL connection a stateful runtime uses. Both URLs are secret references and may name the same secret.objectYesNot specifiedNone specified
database.caBundleRefSecret reference to a PEM root certificate the connection trusts. Absent, the connection trusts the platform's root certificates.stringNoNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
database.migrationUrlRefSecret reference to the migration connection URL.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
database.runtimeUrlRefSecret reference to the least-privileged runtime connection URL.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
database.testOnlyPlaintextAllow a plaintext connection. Refused outside test builds.booleanNoNot specifiedSchema default, where declared: falseNone specified
identityThe logical identity of the database this deployment activates packages in. It is chosen by the operator (for example casework-production) and never derived from a URL or a PostgreSQL database name. The first caseworkctl apply records it, and every later apply and every startup refuses a database whose recorded identity differs.objectYesNot specifiedNone specified
identity.databaseIdstringYesNot specified
  • maxLength: 256
  • minLength: 1
  • pattern: ^[^\u0000-\u001f\u007f-\u009f \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000](?:[^\u0000-\u001f\u007f-\u009f]*[^\u0000-\u001f\u007f-\u009f \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000])?$
kindstringYes
  • CaseworkRuntimeConfig
None specified
listenerThe listener of a runtime that declares its TLS termination and network exposure.objectYesNot specifiedNone specified
listener.bindSocket address the runtime listens on, written host:port with an IP address host ([addr]:port for IPv6).stringYesNot specified
  • maxLength: 128
  • minLength: 1
listener.networkExposureThe operator-declared private network placement of an HTTP listener.stringNo
  • container-private
  • private-address
Schema default, where declared: "private-address"
None specified
listener.tlsTerminationDeclares the trusted transport boundary for a runtime's plaintext HTTP listener. Production listeners require operator-controlled upstream TLS termination; direct plaintext is limited to the explicit loopback-only development mode.stringYes
  • development-loopback
  • operator-controlled-upstream
None specified
metricsListenerThe operator-private metrics listener of a runtime. networkExposure has the meaning it has on the serving listener: private-address (the default) requires a loopback or private address, and container-private also permits the unspecified address inside a private container network.objectNoNot specifiedNone specified
metricsListener.bindSocket address the runtime listens on, written host:port with an IP address host ([addr]:port for IPv6).stringYesNot specified
  • maxLength: 128
  • minLength: 1
metricsListener.networkExposureThe operator-declared private network placement of an HTTP listener.stringNo
  • container-private
  • private-address
Schema default, where declared: "private-address"
None specified
packageobjectYesNot specifiedNone specified
package.expectedDigestsha256: label of the package digest, the digest of the package's SHA256SUMS file. When set, the runtime refuses to start on any other package, and on an authored project that has no SHA256SUMS. Omitted, the runtime starts on whichever package root holds.stringNoNot specified
  • pattern: ^sha256:[0-9a-f]{64}$
package.rootAbsolute path of the package directory.stringYesNot specified
  • pattern: ^/
reviewCompletionDestinationsCompletion destinations keyed by the destination id a review producer names in casework.yaml, kept as written.objectNoNot specifiedNone specified
reviewCompletionDestinations.*Map valueobjectNoNot specified
  • propertyNames.maxLength: 512
  • propertyNames.minLength: 1
  • propertyNames.pattern: ^[^\u0000-\u001F\u007F-\u009F]+$
reviewCompletionDestinations.*.attemptTimeoutMillisecondsintegerNoNot specifiedSchema default, where declared: 5000
  • format: uint64
  • maximum: 30000
  • minimum: 100
reviewCompletionDestinations.*.authHow a completion destination presents its secret. Without header the secret is sent as Authorization: Bearer; with one, the raw secret is the value of that header and no Authorization header is sent.objectConditionalNot specifiedNone specified
reviewCompletionDestinations.*.auth.headerstringNoNot specified
  • maxLength: 64
  • minLength: 1
  • pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]+$
reviewCompletionDestinations.*.auth.secretRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
reviewCompletionDestinations.*.bearerTokenRefShorthand for auth with no header: the secret is presented as Authorization: Bearer. Exactly one of this and auth is configured.stringConditionalNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
reviewCompletionDestinations.*.maximumAttemptsintegerNoNot specifiedSchema default, where declared: 12
  • format: uint32
  • maximum: 100
  • minimum: 1
reviewCompletionDestinations.*.retryDelaySecondsintegerNoNot specifiedSchema default, where declared: 30
  • format: uint64
  • maximum: 86400
  • minimum: 1
reviewCompletionDestinations.*.urlAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
secretProvidersThe secret providers a runtime enables. A reference is resolved only by a provider declared here: secret:file/name under file.root, and secret:env/NAME only when environment: {} is present.objectYesNot specifiedNone specified
secretProviders.environmentEnables secret:env/NAME references, read from the process environment. Declared as an empty mapping: environment: {}.objectConditionalNot specifiedNone specified
secretProviders.fileEnables secret:file/name references, read from files under root.objectConditionalNot specifiedNone specified
secretProviders.file.rootAbsolute directory holding one file per secret. Each file must be a regular file owned by the runtime user, mode 0400 or 0600, with exactly one hard link.stringConditionalNot specified
  • pattern: ^/
taskAuthorityobjectNoNot specifiedNone specified
taskAuthority.exchangeAudiencestringYesNot specifiedNone specified
taskAuthority.issuerAn absolute http or https URL with a host preserved as written, no user information, and no backslash, whitespace or control character. DNS case and equivalent IPv6 literals are permitted.stringYesNot specified
  • format: uri
  • maxLength: 2048
  • pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[^/?#@\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]+([/?#][^\u005C\u0000-\u0020\u007F-\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]*)?$
taskAuthority.signingKeyRefAn exact secret reference: secret:file/name, resolved under secretProviders.file.root, or secret:env/NAME, resolved only when secretProviders.environment is declared.stringYesNot specified
  • pattern: ^(?:secret:env/[A-Z][A-Z0-9_]{0,127}|secret:file/[a-z][a-z0-9._-]{0,127})$
taskAuthority.statusClientsService client IDs mapped to their one protected resource audience.objectYesNot specifiedNone specified
taskAuthority.statusClients.*Map valuestringNoNot specified
  • propertyNames.maxLength: 512
  • propertyNames.minLength: 1
  • propertyNames.pattern: ^[^\u0000-\u001F\u007F-\u009F]+$