Does Temporal help with PCI DSS for card data in workflow payloads?
If your team runs card-related workflows on Temporal, you need to show that stored primary account number (PAN) is unreadable and that card data is protected in transit. Encrypting payloads with a payload codec before data reaches the Temporal Service, and using mTLS between Temporal components, both support specific PCI DSS requirements. The assessment itself, the key management program and the decisions about which systems are in scope stay with your organization and its Qualified Security Assessor (QSA). Temporal does not make a system compliant on its own, and DeployOpen prepares systems, configuration and evidence for your assessor but does not issue reports, attestations or certifications.
PCI DSS v4.0.1 is the only active version of the standard. It was published on 11 June 2024 as a limited revision of v4.0 with no added or deleted requirements, and v4.0 was retired on 31 December 2024. Requirement 3.5.1 lists the accepted ways to render stored PAN unreadable, including strong cryptography with key management, and requirement 3.6.1.2 governs how secret and private keys are stored, such as under a key-encrypting key or in an HSM. Confirm with your QSA which of these approaches your design meets, and whether any requirement is being met through the customized approach.
Several things remain outside what Temporal provides. Temporal does not decide which payment brand rules apply to you, and the self-hosted default Authorizer allows every API request until you configure one, so access control must be designed and tested separately. Event histories, search attributes and logs can still expose data if teams place PAN in them unencrypted, so you should review what your workflows record. Ask your QSA early how the Temporal cluster, its persistence and visibility stores and any codec server affect the cardholder data environment and its penetration testing scope.
Which PCI DSS requirements map to which Temporal controls
This table compares each PCI DSS requirement that touches Temporal workflow payloads with the platform capability that supports it, the configuration it needs and who usually owns the work. Read it as a list of inputs to your assessor's evidence, not as proof of compliance. Temporal provides the codec, transport and authorization hooks, while the key management, data handling and assessment decisions stay with your team.
| Requirement | Platform capability and configuration | Primarily the team's responsibility |
|---|---|---|
| PCI DSS 3.5.1: render stored PAN unreadable | Custom payload codec encrypts card data before it reaches the Temporal Service, so histories hold ciphertext. Strong cryptography with key management is one of the accepted approaches, and the team must confirm which method its assessor accepts. | Yes. The team chooses the method, scopes which payload fields carry PAN, and proves that plaintext is absent from histories, logs and the Web UI. |
| PCI DSS 3.6.1.2: store keys encrypted, in an HSM, or as key components | Temporal does not hold the codec keys. The codec server decodes for the Web UI and CLI without exposing keys to the service. Key storage is set in the team's own key management system. | Yes. The team selects the key store (for example an HSM or a managed KMS), manages key-encrypting keys and documents key custodians and rotation. |
| Transport encryption between services (mTLS, Requirement 4.2.1 family) | Self-hosted Temporal supports mTLS with separate settings for internode and frontend traffic. Configure certificates for both paths and keep the Temporal Service off public networks. | Yes. The team issues, rotates and revokes certificates and confirms that no plaintext listener remains enabled. |
| Access control to namespaces and APIs (Requirements 7 and 8 family) | Replace the default noopAuthorizer, which allows every API request, with an Authorizer plugin. Use the ClaimMapper to map JWT or certificate claims to namespace roles, and enable OIDC single sign-on for the Web UI. | Yes. The team writes the role model, assigns least privilege to workers, clients and operators, and reviews access on a schedule. |
| Access to the codec server and decrypted views | The codec server is the only component that decodes payloads for people. Place it behind the same authentication as the Web UI and limit who can call it. | Yes. The team restricts who can decode, logs decode access and decides which operators may view card-related fields at all. |
| Scope of the cluster (Requirements 1 and 12 family) | Keeping encrypted payloads means the cluster may hold data the team still treats as in scope if keys or decoding paths are reachable. Confirm scope with the QSA before building. | Yes. The team and its assessor decide whether Temporal components, databases and visibility stores fall inside the cardholder data environment. |
How payload codecs keep card data out of plaintext histories
A custom payload codec encrypts data inside the SDK before it leaves the worker, so the Temporal Service stores ciphertext and never holds the keys. Workflow inputs, activity arguments and results that carry a primary account number, or any value derived from one, should pass through the codec so that the event history, persistence store and any database backups contain only encrypted payloads. The keys live with your workers or your key management system, and the decision to make early is which key service the codec calls, who can read it, and how key rotation will be handled without breaking replay of existing workflows. Confirm the codec implementation in each SDK you use and test that a raw history export shows no readable card data.
The Codec Server is the operator's way to read those histories. It runs as a separate service that decodes payloads for the Web UI and CLI, so engineers can inspect a failed execution without the Temporal Service itself ever receiving the keys. Treat the Codec Server as a sensitive component in its own right: restrict who can reach it, authenticate its callers, and place it inside the cardholder data environment if it can return clear card data. Access to decoded payloads should be logged and limited to roles that need them, because a permissive codec server undoes the protection the codec provides.
Tokenization is the alternative to encryption and is placed before the workflow starts, so the card number is replaced by a token at the point of capture and only the token is ever passed as workflow input. This can reduce what enters the cluster at all, but it moves the cardholder data problem into the token vault, which must meet the storage requirements of PCI DSS. Whichever approach you choose, remember that some fields still reach the service in plaintext: workflow IDs, search attributes, workflow and activity type names and some metadata. Check each of these against the cardholder data definition, because an order or customer identifier that is combined with other data may still bring the environment into scope.
What evidence the configuration produces for a QSA
A QSA will ask how cardholder data is protected in workflow payloads and how that protection is kept working over time. The items below are the records a self-hosted Temporal configuration should produce, and each one needs an owner and a refresh point tied to upgrades and key changes.
Codec implementation and review record
Keep the source of the payload codec that encrypts card data before it reaches the Temporal Service, along with the review record showing who approved it and which version is deployed. Tie each review to a commit hash so the assessor can see that the code running in production is the code that was reviewed. Re-review whenever the codec, the SDK or the worker image changes, since a changed serializer can alter what lands in history. Confirm with your assessor which review format they expect.
Codec Server docsKey management records for 3.6.1.2
Document where the payload encryption keys are stored, how they are wrapped by a separate key-encrypting key, and whether an HSM or key components hold them. Record key creation, rotation, access grants and destruction, with dates and approvers. The Temporal Service never holds these keys, so these records belong to your key management system and must show that the service cannot decrypt payloads. Review them at every key rotation and after any change to the codec's key source.
mTLS configuration and certificate inventory
Keep the Temporal configuration files that enable mTLS for internode and frontend traffic, along with an inventory of every certificate in the cluster: issuer, subject, expiry and the service that uses it. Export the active settings from each deployed environment rather than relying on the templates in your repository, since drift is common across Helm values and environment overrides. Check that the inventory is refreshed after each certificate renewal and each server upgrade.
Self-hosted security docsAuthorizer and ClaimMapper configuration
Retain the Authorizer plugin and ClaimMapper settings that map JWT or certificate claims to namespace roles, showing that the default allow-all behavior is replaced. Include a role matrix that lists which identities can start, query or access payloads in each namespace that carries card data. Test the matrix with a denied and an allowed request, and keep those test outputs with the configuration. Review the matrix when teams or namespaces change.
Codec Server access logs
Collect the access logs from the Codec Server, which decodes payloads for the Web UI and CLI. These logs show who viewed decoded card data and when, so they are the primary evidence of access to clear-text payloads. Confirm that the logs are shipped to a store the operators cannot edit and that retention meets your policy. Check that the Codec Server is reachable only from approved internal networks and that the logs cover failed decode attempts.
Penetration test results and remediation
Retain penetration test results covering the segmentation and the cluster, together with records of remediation activity, for at least 12 months under Requirement 11.4.1. Scope these tests to include the Temporal frontend, the Web UI and the Codec Server, and retest after upgrades that change exposed interfaces. Keep the test scope document with the results so the assessor can match each test to the systems it covered. Ask your QSA whether they will accept results from a provider that is not on the assessment.
How encryption choices change the cluster's PCI DSS scope
With a payload codec, card data is encrypted before it reaches the Temporal Service, so the service stores only ciphertext and never holds the keys. The Codec Server decodes payloads for the Web UI and CLI without exposing keys to the service. This reduces what the service keeps in readable form, but plaintext PAN still exists in the workers, the codec path and any code that builds workflow inputs, and encrypted data is still stored data. Assume the cluster stays in scope until your QSA confirms otherwise.
- Where plaintext PAN still exists: Workers, the Codec Server and any upstream service that builds workflow input handle clear text, so those components belong in the assessed environment.
- Key management: Keys need protection under the controls for secret and private keys, such as a separate key-encrypting key or an HSM, with access limited to the codec path.
- Encryption method: Requirement 3.5.1 accepts strong cryptography with key management as one way to render stored PAN unreadable, so document the algorithm, key lifecycle and rotation.
- Logs and errors: Application logs, stack traces and retry messages can echo plaintext if workflow or activity code is careless.
Check with your QSA whether the codec path, workers and key store fall inside the cardholder data environment before you describe scope to anyone.
Tokenization replaces the PAN with a token in a vault before any workflow data is created, so workflows carry only tokens. If no PAN enters Temporal, the cluster may fall outside the cardholder data environment, but it can still touch data that affects the security of that environment, and that is a question for your assessor. The token vault, its keys and the detokenization path carry the PAN and remain the main compliance boundary.
- Vault placement: The vault and detokenization service stay inside the cardholder data environment and need the full set of controls.
- Token design: Confirm that tokens cannot be reversed without the vault, and that payloads, search attributes and memo fields never hold PAN or a value from which it can be derived.
- Data flow evidence: Keep diagrams and tests showing that no PAN appears in workflow inputs, activity results, event histories or visibility records.
- Segmentation testing: If you rely on segmentation to reduce scope, a service provider must penetration test those controls at least every six months and after any change under Requirement 11.4.6, compared with every 12 months for other entities under 11.4.5.
- Network placement: Temporal services should run on hosts not reachable from the public internet, with access limited to trusted internal networks, and that placement needs documented evidence.
Ask your QSA or acquirer to review the data flow diagram and token design before relying on any reduction in scope.
If workflows receive PAN in plaintext with no codec or tokenization in the path, the Temporal Service writes that PAN into event histories, and it can surface through the Web UI, CLI, exports and backups. In this design, the cluster, its persistence database, its visibility store, its backups and every operator with access should be treated as part of the cardholder data environment. Scope is at its widest here, and the full set of controls applies.
- Persistence and backups: Histories are written to the persistence database, so database storage, replicas and backups all fall in scope.
- Access control: The default noopAuthorizer allows every API request, so an Authorizer, a ClaimMapper and namespace roles must be in place before any PAN is present.
- Transport: Enable mTLS for both internode and frontend traffic, and confirm that every hop carrying PAN is encrypted.
- Testing: Include the cluster in internal and external penetration testing, and apply Requirement 11.4.6 testing if you claim segmentation from the rest of the network.
- Visibility and retention: Search attributes and visibility records can hold payload-derived values, so document what is indexed and how long it is kept.
Confirm with your QSA or acquirer how this design will be scoped before you build it, because that decision shapes the whole assessment.
What Temporal does not cover for PCI DSS
Temporal gives you the mechanisms for protecting cardholder data in workflow payloads, but it does not configure them for you. The cards below cover the controls that remain your responsibility, the stores around the service that also hold data, and the parts of the standard that no platform can satisfy on your behalf.
Default allow-all authorization
If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Any service or person who can reach the frontend could read workflow histories that contain card data. Before any cardholder workflow goes live, confirm that an Authorizer, a ClaimMapper and namespace roles are configured and tested, and that the frontend is not reachable from untrusted networks.
Temporal security docsCodec and key management ownership
The payload codec and its encryption keys are written and operated by your team, not by Temporal. Temporal never holds the keys, so key generation, rotation, access grants, and recovery are entirely your process. Document who can read the codec server, how keys are stored in line with the key-protection requirements, and how you will decrypt history if a key is lost.
Codec Server docsNo built-in hardware security module
Temporal does not provide an HSM, a key vault, or a hardware-backed key store for payload encryption. Where key material must sit in a secure cryptographic device or be split into key components, you need to select and integrate that device yourself. Confirm the key storage design with your QSA before implementation, since it determines how the cluster is assessed.
Web UI and CLI access depend on configuration
Operators reach workflow data through the Web UI and the CLI, and both show decoded payloads only when the codec server is connected and the user is allowed to see them. Sign-in for the Web UI uses OIDC single sign-on that you configure, so an unconfigured UI is an access path outside your controls. Test which roles can open decoded histories and restrict the codec server to named operators.
Persistence and visibility stores in scope
Workflow histories are written to the persistence database, and searchable metadata goes to the visibility store, which is PostgreSQL, Elasticsearch, or OpenSearch in a typical self-hosted design. Any card data that leaks into search attributes, logs, or backups is stored in those systems in plaintext. Apply encryption at rest, access control, and backup protection to each store, and keep card data out of attributes that the visibility store indexes.
Persistence docsPayment page scripts and tamper detection
If the workflow sits behind a payment page, the page itself falls under requirement 6.4.3, which covers authorizing, integrity-assuring, and inventorying each script in the consumer's browser, and under requirement 11.6.1, which covers change and tamper detection on payment pages. Temporal does not touch these controls. Assign an owner for the front-end scripts and their monitoring before you describe the design as out of scope.
No platform assessment or certification
Temporal's MIT-licensed server and its security features do not, by themselves, make your deployment PCI DSS compliant, and no assessment or certification of the platform is implied. A Qualified Security Assessor or a completed Self-Assessment Questionnaire covers your entity and environment. PCI DSS v4.0.1 is the only active version after v4.0 was retired on 31 December 2024, and the PCI SSC has announced no release date for a new version as of October 2026. Confirm the version your assessor uses before mapping controls.
Configuration sequence for a PCI-scoped Temporal deployment
This sequence takes card data out of plaintext Temporal histories and produces evidence that the cluster handles only encrypted or tokenized payloads. Each step names the control, the owner and the check that shows it works before the next step begins.
Map the cardholder data flow with the assessor
Your team and your QSA or internal assessor trace every workflow input, activity result, signal, query and search attribute that could carry a primary account number or sensitive authentication data. The output is a data flow diagram that marks which Temporal namespaces, workers and Web UI views touch cardholder data, and a written decision on whether the Temporal Service itself falls inside the cardholder data environment. Confirm the scope conclusion with the assessor before building anything, because it sets the scope of every later step.
Choose tokenization or encryption for each data element
For each element in the flow, decide whether the workflow needs the real PAN at all. Where it does not, pass a token from a vault that sits outside Temporal. Where it must carry the value, use strong cryptography with key management so the stored value is unreadable under Requirement 3.5.1, which also lists keyed hashes, truncation and index tokens as accepted methods. The output is a per-element table recording the method, the owner of the vault or key and the namespace where the value may appear.
Implement and version the payload codec
Developers write a custom payload codec in the SDK your workers use so that encryption happens before data leaves the client process. Temporal payload codecs encrypt data before it reaches the Temporal Service, which never holds the keys. Pin the codec version in source control, add a key identifier to each encrypted payload so old histories remain readable during rotation, and record the change in your change management process. The check is a unit test that round-trips a sample PAN and confirms the encoded bytes contain no digits in the card format.
Deploy the codec server for authorized viewers
Deploy the Codec Server in a segment that only authorized operators can reach, so the Web UI and CLI can display decoded payloads for support staff without the Temporal Service ever holding the keys. Restrict who can call it through your identity provider and log each decode request. The check is that a viewer without the right role sees only ciphertext in the Web UI, and that an authorized viewer can decode a test workflow.
Enable mTLS for internode and frontend traffic
Configure mutual TLS separately for internode traffic between Temporal services and for frontend traffic from SDK clients and tools. Issue certificates from your own internal CA, set rotation ownership and confirm that a client without a valid certificate is refused. The output is a configuration review showing both settings enabled and a failed connection test from an unauthenticated client.
Replace the default Authorizer and configure ClaimMapper
Self-hosted Temporal uses a noopAuthorizer that allows every API request when no Authorizer is configured, so replace it before any cardholder workflow runs. Configure the ClaimMapper to map certificate or JWT claims to namespace roles, and limit the roles that can read workflow history to the staff named in the data flow map. The check is a test that a worker identity without the required role receives a denied response on history and describe calls.
Restrict network exposure and store keys in an HSM-backed service
Place Temporal services on hosts not reachable from the public internet, with network access limited to trusted internal networks, and document which segments can reach the frontend, the persistence store and the codec server. Store the key-encrypting key and data keys so that Requirement 3.6.1.2 is met, using an HSM, a key-management service with a separate key-encrypting key or key components. Verify with a network scan from outside the allowed segment and a review of key access logs.
Verify no PAN appears in histories and collect evidence
Run test workflows with synthetic card numbers through every activity, signal, query and failure path, then search the persistence store, visibility index, logs and Web UI for the test PAN in plaintext. Keep the test cases, results, config files, codec versions and key rotation records as evidence for the assessor. Schedule these checks again after each Temporal Server upgrade, applying one minor version at a time with schema upgrades before server upgrades, since the latest published server is v1.32.1 and the release notes govern each step.
Questions teams ask before hiring help with PCI DSS and Temporal
Does running Temporal make the whole cluster in scope for PCI DSS?
No single product decides scope. PCI DSS applies to any system that stores, processes or transmits cardholder data or sensitive authentication data, and to systems that could affect the security of that environment. If card data reaches Temporal payloads in plaintext, the Temporal Service, its database, its visibility store, logs and the Web UI are likely in scope. If a payload codec encrypts or tokenizes card data before it reaches the service, the service may handle only protected data, but the assessor still has to confirm that the keys, the codec server and any connected systems are excluded or controlled. Ask for a written scope that lists each data flow and the assessor's view of it before any build starts.
What drives the cost of a PCI DSS Temporal implementation?
The cost depends on the work, not on a single fee. The main drivers are the number of workflows and activities that touch card data, the complexity of the codec (for example, whether tokenization happens before the workflow or inside it), how mature your key management is, and how much assessor involvement the scope requires. Some costs are one-time, such as design, codec development and testing. Others recur, such as key rotation, codec server operation, patching and periodic penetration testing. Ask any provider for a written scope that separates design, build, testing, evidence preparation and ongoing support, and that names who is paid for each item.
How long does it take, and how does the assessment calendar affect it?
Duration depends on the number of workflows in scope, the codec and key design, and when your assessment falls. The assessment calendar matters because an assessor needs stable architecture, evidence of working controls and penetration testing results before the assessment window. PCI DSS requirement 11.4.1 expects penetration testing and remediation results to be retained for at least 12 months, so evidence must be generated on a schedule. Changes made during an assessment can push the assessor to re-review controls. Ask for a timeline tied to your assessor's dates, and confirm which milestones the assessor must sign off.
What must our team provide before the engagement starts?
Your team provides the inputs that define scope and design. Typical items include:
- An architecture diagram showing where card data enters, where it is stored and which systems can read it
- A workflow and activity inventory that marks which ones carry PAN, sensitive authentication data or related identifiers
- Named key custodians with authority over key generation, storage and rotation, and a decision on whether keys sit in an HSM or another approved cryptographic device
- Access to your Qualified Security Assessor early, so the design is reviewed before it is built
- Access to the cluster, identity provider and cloud or data center accounts for testing
Confirm these responsibilities in the written scope so no gap appears in week one.
Can an internal team implement PCI DSS controls for Temporal on its own?
An internal team can build this if it has engineers who know Temporal's workflow model, applied cryptography and PCI DSS evidence requirements. The harder parts are usually not the codec itself but the controls around it: key custody meeting requirement 3.6.1.2 in your environment, segmentation testing, change control for workflow code, and evidence that an assessor will accept. Temporal's documented controls, such as mTLS, the Authorizer and the ClaimMapper, need configuration and testing. Decide which parts your team owns, which need a specialist review, and who signs off on the assessor's evidence list.
Does DeployOpen certify that our Temporal deployment is PCI DSS compliant?
No. DeployOpen plans, implements, hardens and documents self-hosted platforms, and prepares systems, controls and evidence for compliance assessments. It does not issue Reports on Compliance, Attestations of Compliance or certifications. Those come from a Qualified Security Assessor or through the self-assessment process your payment brands accept. The PCI SSC does not enforce compliance itself; the individual payment brands decide which entities must validate. Ask your acquirer or payment brand which validation path applies to your organization before scoping the work.
Does tokenizing card data before Temporal remove the need for a codec?
Tokenization can reduce what reaches Temporal, but it does not remove the need for a clear design. If card data is replaced with a token before the workflow starts, the workflow history holds only the token, which may bring the Temporal Service out of scope for PAN. The token vault and any detokenization path then carry the card data risk. If some steps must see the real PAN, a payload codec still matters for those payloads. Ask your QSA to review the data flow diagram, the vault location and every point where detokenization occurs.
Where to check each claim against the official sources
Check every statement on this page against the source documents before you rely on it in a design, a scope decision or an assessment. Start with the Temporal codec server documentation, which describes how payload codecs encrypt data before it reaches the Temporal Service and how the codec server decodes payloads for the Web UI and CLI. Then read the self-hosted security page for the mTLS settings, the default noopAuthorizer, the ClaimMapper and the Authorizer plugin. Confirm which of these settings your target Temporal Server version supports, because the security page is the authority on what the server enforces, not this page. Record the version you tested against in your design document so that later reviews can trace each control to a specific release.
For the PCI DSS side, begin with the PCI Data Security Standard page maintained by the PCI Security Standards Council, and open the SAQ D for Service Providers to read the wording of Requirements 3.5.1 and 3.6.1.2 in full. Use the PCI SSC blog post on PCI DSS v4.0.1 to confirm which version is currently active and when the future-dated requirements took effect. Because the Council publishes no enforcement, the payment brands and your acquirer or assessor decide which requirements and evidence apply to your environment. Ask your Qualified Security Assessor how they will treat the codec server, the key store and the Temporal cluster before you finalize the design, and get that interpretation in writing.
How DeployOpen scopes and delivers Temporal compliance configuration
DeployOpen approaches Temporal for PCI DSS cardholder data in payloads as a fixed-scope implementation inside infrastructure you control. The work covers where card data is encrypted or tokenized before it reaches the Temporal Service, how keys are held, how mTLS and namespace access are configured, and how the cluster's scope is documented for your assessor. Each step is agreed in writing before work starts.
How we scope
- Map every workflow, activity and payload field that could carry primary account number or sensitive authentication data
- Agree in writing which data is tokenized before workflow start and which is encrypted with a payload codec
- Record which Temporal components, databases and operator accounts fall inside the cardholder data environment
- Confirm with your QSA or acquirer which PCI DSS requirements and assessment type apply to your organization
- Engagements are fixed-scope, with deliverables and timelines set out in a written agreement
How we build
- Design the payload codec and codec server so the Temporal Service never holds the encryption keys
- Configure mTLS for frontend and internode traffic and an Authorizer instead of the default allow-all setting
- Set up key storage, rotation and access to meet your key management design, with HSM or KMS options confirmed with you
- Test that card data is absent from plaintext histories, logs, search attributes and Web UI views
- Document the segmentation boundary and the controls that keep the cluster out of scope where your design allows
How we hand over
- Deliver architecture diagrams, data flow maps and a written list of in-scope and out-of-scope components
- Provide configuration as code, codec and key handling runbooks, and access role definitions for namespaces
- Include test evidence from payload inspection, mTLS checks and penetration testing of the configured cluster
- Prepare evidence packs that your assessor can review, without issuing any attestation or certification ourselves
- Train your platform and security staff to operate key rotation, codec updates and upgrade steps
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover
- Review changes to workflow payloads, codec logic and Temporal Server versions before they reach production
- Retest after remediation and refresh evidence when your assessor or PCI DSS version requirements change
- Keep the written scope current so each change is assessed against the cardholder data environment

