Temporal for financial services and payments

Payment, lending and account workflows need durable execution, controlled access and evidence a regulator can review. This page covers how to plan self-hosted Temporal for those requirements.

On this page

Why Temporal for financial services and payments needs a planned build

A payments or lending team that moves money across several systems already knows the failure modes: a card authorization succeeds but the ledger write times out, a disbursement is sent before a credit check is recorded, or a settlement file is retried and posts twice. Durable workflows fit this problem because Temporal records each step of a money movement so that a workflow resumes from its last completed step after a worker, network or downstream failure, instead of relying on ad hoc retry tables and cron jobs. The fit only holds if the build is planned around what changes for the team: workflow code becomes the system of record for process state, every change to running workflows needs a versioning decision, workers become a separately operated fleet, and the persistence database and visibility store become regulated data stores in their own right.

This page covers self-hosted Temporal running in infrastructure the client controls, not Temporal Cloud. That choice changes who owns the server upgrade path, the database backups, the network exposure and the authorization layer. Self-hosted Temporal does not authenticate API requests unless an Authorizer is configured, so the team must design namespace roles, mTLS and identity integration before any payment workflow reaches a shared environment. Confirm early which persistence backend your standards allow, since Temporal supports Cassandra, PostgreSQL and MySQL with specific version ranges, and which visibility store will index workflow executions for operations and audit.

Before the first money-moving workflow is written, decide four things with your risk, compliance and platform owners: how payload encryption protects card data and account identifiers so that Temporal histories do not hold them in clear text, which workflow designs (sagas for transfers, entity workflows per account) map to your ledger and reconciliation rules, how long workflow histories are retained against your record-keeping obligations, and who approves changes to workflows that are in flight. Those decisions shape the scope of your PCI DSS and operational resilience evidence, so they belong in the design phase rather than in a later hardening sprint.

Which financial requirements shape the Temporal build

This table maps the financial requirements supplied for this topic to what each one means for a self-hosted Temporal design. Read each row as a question to settle with your assessor, regulator or Swift contact before the workflow and namespace layout is fixed. The main takeaway is that scope, data location, recovery evidence and access control decide most of the architecture, not the workflow code itself.

RequirementWhat it means for the Temporal designWhat to confirm with your assessor or regulator
PCI DSS scope for cardholder dataWorkflow history, activity inputs and visibility records may carry card data if payloads are not encrypted, so these stores can pull Temporal into scope. Keep card data out of payloads where possible and encrypt the rest with a custom codec.Whether your Temporal namespaces, persistence and Web UI fall inside the cardholder data environment, and which PCI DSS v4.0.1 requirements your assessor will test against them.
DORA register of ICT arrangements and exit strategyA self-hosted Temporal service and any Temporal Cloud account are ICT services that must appear in the register. Document how workflows could be drained, moved or re-hosted if the service must be exited.Whether Temporal supports a critical or important function, and the exit strategy and transition plan your competent authority expects under Article 28(8).
DORA contract terms on data location and returnWhere Temporal Server and its persistence and visibility stores run, and where any Temporal Cloud data is processed, must be stated in the contract. Plan for data return on insolvency or termination of a provider.Confirm with the Temporal Cloud vendor or your hosting provider the processing locations and data return terms before choosing a deployment model.
Swift Customer Security Controls FrameworkWhere Swift messaging is connected through workflows, the Temporal hosts, admin access and secrets used by those workers fall within the controls that Swift users must have independently assessed each year.Whether your Swift connectivity is in scope, which of the framework controls apply to the Temporal environment, and what your independent assessor will require as evidence.
FTC Safeguards Rule multi-factor authenticationSelf-hosted Temporal uses a noopAuthorizer by default, which allows every API request with no authentication. Access to the frontend, Web UI and namespaces must be gated by an Authorizer, a ClaimMapper and MFA-backed identity provider sign-in.Whether your Qualified Individual approves any equivalent control in writing, and how MFA is enforced for operators who reach Temporal administrative interfaces.
SEC ICFR IT general controlsProgram changes to workflow code and worker versions, computer operations and access to programs and data all become auditable events. Versioning, deployment records and namespace role assignments give auditors the trail they look for.Which Temporal workflows support financial reporting, which change and access controls your external auditor will test, and what log retention they expect.
Resilience and availability evidenceRegulators will ask how payment and lending workflows recover from an outage. Document the server upgrade path, persistence backups and tested recovery for each namespace that carries money movement.The recovery objectives and test frequency your regulator or card acquirer expects, and whether the evidence must come from a tested restore rather than a design document.

Which Temporal settings and integrations matter for payments

A payment team's Temporal design comes down to a few components: how money movement is compensated, how account state is isolated, how sensitive payloads are protected, and how access and evidence are controlled. Each card below names one of these decisions and what to verify before production.

Saga workflows for money movement

A saga runs each step of a transfer, such as a debit, a fee, and a credit to a counterparty, and registers a compensating action for every completed step. If a later step fails, Temporal runs the compensations in reverse order. Payment teams should define which steps are reversible, which need manual review, and how a compensation that itself fails is escalated. Test these paths with forced failures before go-live.

Entity workflows per account

An entity workflow holds the state of one account or loan and receives updates through signals, so changes to a single account are ordered and do not race each other. Teams should decide the workflow ID scheme, how long an entity workflow stays open, and when it should continue as new to keep history small. Confirm how many concurrent entities the design must hold before sizing the cluster.

Payload encryption with a codec server

Temporal stores workflow inputs, results and activity payloads in its persistence layer. A custom payload codec encrypts them before they leave the worker, and a codec server lets the Web UI decrypt them for authorized users only. Card data should not enter workflow payloads at all, so tokenize it first. Confirm where keys live, how they rotate, and who can call the codec server.

Self-hosted security docs

Namespace roles through ClaimMapper and Authorizer

If no Authorizer is configured, self-hosted Temporal uses the noopAuthorizer, which allows every API request with no access control. Production clusters need an Authorizer plugin and a ClaimMapper that maps JWT or certificate claims to namespace roles, so payment services, operators and auditors each get only the namespaces they need. Verify this in a test cluster by attempting calls with each role.

Security configuration docs

OIDC single sign-on for the Web UI

The Web UI shows workflow inputs, histories and failures, so it is often the place where operators see sensitive data. Self-hosted Temporal supports OIDC single sign-on for the Web UI, which lets the identity provider enforce MFA, session lifetime and group membership. Check that group-to-role mappings match the namespace roles above and that access is removed when staff change teams.

Persistence and advanced visibility choices

Temporal persistence is tested on PostgreSQL 13 to 16, MySQL, and Cassandra, and advanced visibility runs on Elasticsearch or OpenSearch for anything beyond a few workflow executions. Payment teams need the persistence store backed up and restorable within their recovery targets, and visibility queries that support reconciliation and audit without exposing payloads. Confirm the supported versions for your Temporal release before choosing a store.

Persistence docs

Self-hosted Temporal or Temporal Cloud for regulated payment workloads

Self-hosted Temporal keeps the Temporal Service, its persistence store and its visibility store in infrastructure you choose, so the location of workflow histories and payloads is under your control. Temporal Cloud is a managed service run by Temporal Technologies, so the regions it offers, where history and metadata are stored, and how data leaves those regions must be confirmed in the contract and the service documentation rather than assumed from the product. Payment and lending data often falls under contractual or supervisory requirements on where processing happens, and under sub-processor and data return terms. For EU-regulated entities, DORA Article 30(2) requires an ICT services contract to state where services are provided and data processed, so a managed option needs that statement in writing.

  • Processing location: confirm the regions in which Temporal Cloud namespaces can be placed and whether your chosen region is one of them.
  • Data in workflow payloads: payloads can carry account or card-related data, so decide whether they are encrypted by your own codec before they leave your systems.
  • Sub-processors and support access: ask who can access your namespaces during support and under what controls.
  • Data return and exit: confirm how histories are exported and what happens to data on termination.
  • Backups and replicas: confirm where backups and any high availability replicas are held.

Check each point against the signed agreement and your regulator's expectations for the type of entity you are.

How a financial Temporal rollout moves from design to evidence

The sequence turns a payments or lending workload into a Temporal deployment whose design, keys, access, upgrades and resilience results can each be reviewed by security, compliance and risk teams before customers depend on it.

  1. Scope workflows and classify data

    The team lists the money movement, lending and account workflows that will run on Temporal, marks which steps touch cardholder data, account numbers or personal data, and identifies which ones support critical or important functions. Compliance, risk and engineering sign off on the scope document. The step is done when every workflow has a named owner, a data classification and a stated reason for its place in the scope, and any PCI DSS scope question has been referred to the assessor or payment brand contact the organization already works with.

  2. Design sagas and entity workflows

    Engineers model each money movement as a saga with explicit compensation steps, and model each account or loan as an entity workflow that serializes updates for that account. Reviewers check idempotency keys on external calls, retry and timeout policies, and how a partial failure is reconciled with the core ledger. The step closes when a design review has walked through the failure paths of each saga and the team can show which compensations are tested and which need manual handling.

  3. Set codec and key design

    The team decides which payload fields are encrypted with a custom codec, where keys live, how they rotate, and how the codec server authenticates callers. Card data should stay outside workflow payloads wherever the design allows, with tokens or references passed instead, and the team confirms this against its own PCI DSS scope analysis. The step is complete when key ownership, rotation procedure and codec server access are documented and a test shows that stored history contains only encrypted or reference values.

  4. Build namespaces and identity

    Operators create namespaces per trust boundary, such as separate namespaces for payment processing and lending, and connect the frontend to an identity provider through a ClaimMapper and Authorizer rather than leaving the default noopAuthorizer in place. mTLS is configured for internode and frontend traffic, and the Web UI uses OIDC single sign-on. The step is done when access tests show that each role can reach only its namespaces, that unauthenticated API calls are rejected, and the access matrix is stored with the control evidence.

  5. Build persistence and visibility

    Platform engineers select a persistence store and an advanced visibility store from the versions the Temporal documentation lists, deploy the services on hosts not reachable from the public internet, and confirm backup and restore procedures for both stores. Monitoring and audit logging are wired to the visibility and history layers. The step is complete when a restore has been rehearsed against a copy of the production configuration and the results are recorded.

  6. Write the upgrade and versioning runbook

    The team documents how workflow code changes are versioned for running executions, and how Temporal Server upgrades proceed one minor version at a time, with schema changes applied before server changes when release notes require them. The runbook names approvers, rollback conditions and a staging environment that mirrors production. It is done when a dry-run upgrade in staging has followed the runbook end to end and the change record format is accepted by the change advisory board.

  7. Test resilience and capture evidence

    Testers simulate worker loss, database failover, network partition and a failed downstream payment provider, then confirm that sagas compensate, entity workflows resume and no duplicate money movement occurs. Results are mapped to the operational resilience and incident evidence the organization must produce for its regulators, and any gaps go into a tracked remediation list. The step closes when the test report, retest results and evidence index are complete and the risk owner has accepted or closed each finding.

  8. Go live in controlled stages

    Traffic moves to Temporal in limited stages, starting with low-value or internal workflows, with monitoring thresholds, a named incident contact and a documented rollback path agreed beforehand. Each stage is reviewed against the test evidence before the next one opens. The rollout is finished when the full workflow set runs under the agreed controls, the operations runbooks have been used in a live incident or drill, and the evidence pack is filed with the governance team.

How payment workers, Temporal services and codec server fit inside trust boundaries

The diagram starts at the payment API, which sits inside the cardholder data environment and starts workflows through the Temporal frontend. Payment workers in the same zone poll task queues and exchange only encrypted payloads, and the codec server is the one component in that zone that decodes them. The frontend hands work to the history service, which writes execution state to the persistence store and searchable records to the visibility store, both outside the cardholder data environment. The Web UI reaches the frontend only after single sign-on. Check that no path carries plaintext card data across the boundary, and that the codec server and its keys fall under the same controls as the cardholder data environment.

Trust boundaries and encryption points for payment workflows on self-hosted Temporal.

Designing sagas for money movement that can be compensated

A saga in Temporal is ordinary workflow code that records each step it has completed, so when a later step fails, the workflow can run compensating actions in reverse order. For payments, the steps are the financial actions themselves: a debit on the payer's account, a hold that reserves funds, a credit to the payee, and a release that frees a hold that will not be used. Each forward step needs a named compensation (a reversal of the debit, a credit back, a release of the hold), and the design review should confirm that every compensation is itself an activity that can be retried and that the team can explain what happens if the compensation cannot complete. Temporal retries failed activities by default, so an activity that calls a payment rail must be written so that a retry does not move money twice. Confirm which activities are retried and with what retry policy, and whether any activity is marked as non-retryable because its failure must be handled by business logic instead.

External payment rails and processors do not join Temporal's transaction. A call can time out after the rail has accepted it, and the workflow then cannot tell whether the payment happened. The usual control is an idempotency key generated once per business operation, stored in workflow state before the call, and sent with every attempt so the provider can deduplicate it. Review the provider's documented idempotency window and the key format, and decide how a "status unknown" outcome is resolved: by querying the provider with the same key, by a reconciliation activity, or by routing to manual review. Do not rely on the workflow ID alone as the key, because a retry of a new run would not share it. Write the decision on each rail into the design record, since it determines whether a compensation is safe to run.

Workflow versioning protects payments that are already in flight when code changes. Temporal replays a workflow's event history against the current code, so changing the order or type of commands in a running workflow can cause a non-determinism error or, worse, a different money movement than the one originally approved. Use the versioning APIs in your SDK to branch on new code paths for new executions only, and confirm the approach with replay tests that load recorded histories from production before each release. Treat the retirement of an old branch as a separate decision that waits until no open executions still need it. Review how long your longest payment workflows can run, including holds that wait for settlement, because that period sets how long old code must remain deployed on your workers.

Which compliance obligations the Temporal design must support

Does PCI DSS v4.0.1 apply to a Temporal payment workflow platform?

It applies only if the platform stores, processes or transmits cardholder data or sensitive authentication data, or could affect the security of the cardholder data environment. Scope is decided by the entity and its assessor, not by the workflow engine itself. If payment payloads carry card data, Temporal's history, payloads, logs and visibility store can fall inside scope, which is why payload encryption and network placement are designed early. PCI DSS v4.0.1 is the only active version, and its 12 requirements are grouped under six goals, from network security to an information security policy. Confirm scope with your acquirer or assessor before design starts.

Who decides which PCI DSS validation an entity must complete?

The payment brands decide who must validate and run any enforcement programs, not the PCI Security Standards Council. The PCI SSC owns and maintains the standard and does not enforce compliance or impose penalties. Your acquirer and the card brands set the validation level and the assessment type for your organization. Ask them in writing which obligations apply to your workflows before you commit to a design, because the answer changes how much of the Temporal environment must be assessed.

What evidence does a PCI DSS assessment produce, and who signs it?

An assessment is documented either as a Report on Compliance completed by a Qualified Security Assessor, or as a Self-Assessment Questionnaire, and each is backed by an Attestation of Compliance. Certificates are not recognized as validation. DeployOpen prepares the systems, configuration records, access reviews, backup and key evidence that an assessor will sample, such as Temporal namespace role mappings, codec configuration and TLS settings. DeployOpen does not issue reports, attestations or certifications. The QSA or the entity signs the ROC or SAQ and AOC.

What does DORA Articles 28 and 30 require for Temporal as an ICT service?

Article 28(3) requires a register of information covering all contractual arrangements for ICT services, and Article 28(8) requires documented, tested exit strategies and transition plans for services supporting critical or important functions. Article 30(2) requires each ICT services contract to state where services are provided and data processed, give advance notice of changes, and cover data return on insolvency or termination. For a self-hosted Temporal platform, the register should list the software, the hosting provider and any implementation partner. Exit planning should cover moving workflow histories and workers, which is a design question, not only a contract one. Confirm applicability with your competent authority.

Does DORA certify a Temporal deployment, and what is the Article 26(7) attestation?

No. DORA sets no certification scheme, and competent authorities supervise compliance using their own powers. The only authority-issued attestation the Regulation provides for is confirmation that a threat-led penetration test met the requirements of Article 26(7). The ECB states that the core requirements of DORA TLPT and TIBER-EU are identical. DeployOpen can run security testing of the Temporal deployment and prepare evidence for the test, but the attestation for a threat-led test comes from the relevant authority after a qualifying test. Confirm the test scope and the authority's process in writing.

How does a Swift Customer Security Controls Framework assessment apply to a Temporal platform?

Swift users must have the controls independently assessed and attest compliance annually in the KYC-SA application. The Swift Customer Security Controls Framework v2026 has 32 controls, 26 mandatory and 6 advisory. A Temporal platform that initiates or processes Swift messages falls within the controls for the connected environment, so access control, secure configuration, logging and patching of the workflow infrastructure need evidence. DeployOpen can prepare that evidence for the independent assessor. The assessment and the attestation are the responsibility of the Swift user and its assessor.

Which SEC ICFR IT general controls must a Temporal design support?

SEC Release 33-8810 names program development, program changes, computer operations and access to programs and data as example IT general control areas for SOX Section 404 assessments. For Temporal, that means workflow code changes go through controlled review and deployment, workflow versioning is documented, operators have restricted and logged access to namespaces, and job and worker operations are monitored. DeployOpen can design these controls and produce the change records, access reviews and configuration evidence. Management's assessment and the external auditor's opinion remain with your organization and its auditor.

Where does multi-factor authentication fit under the FTC Safeguards Rule for Temporal access?

The FTC Safeguards Rule, 16 CFR 314.4(c)(5), requires multi-factor authentication for any individual accessing any information system unless the Qualified Individual approves an equivalent control in writing. For self-hosted Temporal, that covers the Web UI, administrator CLI access, and access to the hosts and Kubernetes clusters running the server. The Web UI can use OIDC single sign-on, and the Authorizer and ClaimMapper control namespace roles, but MFA itself comes from your identity provider. Confirm that the identity provider enforces it for every path into the platform, and record any written exception.

What to ask a partner before you sign a Temporal scope

Put the payload encryption question first. Ask who holds the codec keys for payloads carrying account and card-related data, where those keys are stored, how they are rotated without breaking in-flight workflows, and who can decrypt payloads through the codec server. A partner should be able to show the key custody model, the rotation runbook and the list of identities allowed to reach the codec endpoint. Ask them to confirm, in your environment, that the frontend and internode traffic run over mTLS with separate settings, and that the Temporal services sit on hosts not reachable from the public internet. Because self-hosted Temporal uses a noopAuthorizer when no Authorizer is configured, ask for the written Authorizer and ClaimMapper design: which JWT or certificate claims map to which namespace roles, who can start, signal, reset or terminate workflows in payment namespaces, and how that mapping is tested before go-live.

Ask how upgrades will follow the one-minor-at-a-time rule in the Temporal upgrade guide, including schema upgrades before server upgrades where release notes require them, and how the partner will stage each step in a non-production environment that mirrors your persistence and visibility stores. Ask for the sizing basis for persistence and advanced visibility: which database engine and version your Temporal persistence will run on, the expected workflow execution volume and retention period, and whether visibility is on a supported Elasticsearch, OpenSearch or SQL store. Require the exit and data return documentation in writing, covering how workflow histories, the namespace configuration and the codec keys would be exported or handed back, and how a tested exit plan would be kept current. This supports the contract and register of ICT arrangements your legal and risk teams maintain.

Finally, define the evidence package before work starts. Ask the partner to list each artifact they will deliver to your assessor: the architecture and data flow diagram, the access control matrix for namespaces and roles, the Authorizer and ClaimMapper configuration as code, the encryption and key management procedures, the upgrade and change records, the backup and restore test results, and the logging and audit configuration. Agree in the scope who signs each item and what you own afterward. Note that DeployOpen prepares systems, controls and evidence for assessments but does not issue audit reports, attestations or certifications, so ask your qualified assessor to confirm which artifacts they need in advance.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For financial Temporal work, that means scoping the workflows, building them with controls the client's security and compliance teams can review, and handing over a deployment they can run.

How we scope

  • Map money-movement, lending and account workflows to sagas, entity workflows and namespaces before any build starts.
  • Agree the hosting model, persistence and visibility stores, and whether a self-hosted or Temporal Cloud service fits the rules that apply.
  • Record scope, deliverables and timelines in writing, since most engagements are fixed-scope.

How we build

  • Configure mTLS, a ClaimMapper, an Authorizer and OIDC single sign-on so no API runs with the default noopAuthorizer.
  • Implement payload encryption with custom codecs and a codec server, keeping card data handling inside your defined scope.
  • Test workflow versioning, replay and failure paths, then run security testing against the Temporal deployment and its interfaces.

How we hand over

  • Deliver architecture records, configuration, codec and key handling notes, and runbooks for worker deployment and upgrades.
  • Document the evidence your compliance team needs, such as access settings, audit logs and resilience test results, without issuing attestations.
  • Walk operators through the upgrade sequence, moving one minor version at a time with schema upgrades first where release notes require them.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped in writing.
  • Plan periodic reviews of Temporal Server releases, Helm chart compatibility and persistence versions against your change process.
  • Retest fixes and repeat security testing when workflows, namespaces or access roles change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.