Which GDPR retention and erasure duties Temporal helps you meet
Teams running personal data through Temporal workflows need to keep that data no longer than necessary and erase it when a data subject asks. Temporal helps with the technical side of two duties: the storage limitation principle in Article 5(1)(e), which requires personal data to be kept in identifiable form for no longer than the processing needs, and the erasure right in Article 17, which applies without undue delay where a listed ground such as no longer being necessary is met. Temporal does not decide your lawful basis, write your retention schedule or determine whether a particular erasure request is valid. Those remain the controller's decisions, and they should be recorded before anyone sets a Namespace Retention Period.
The controller keeps several duties that no platform setting discharges. Under Article 24 and Article 32, the controller must implement appropriate technical and organizational measures and ensure security of processing. Under Articles 33 and 34, the controller must handle breach notification within the time limits those articles set. Under Chapter V, every transfer of personal data to a third country, including remote access from outside the EEA and cloud storage outside it, must meet transfer conditions, and fines for infringements of Articles 44 to 49 can reach EUR 20 million or 4% of worldwide annual turnover under Article 83(5)(c). Your compliance team should confirm how each of these applies to the Temporal Service, its persistence store and its visibility store in your environment.
GDPR requires no audit, attestation or certificate, so no single document proves compliance for this topic. Certification under Article 42 is voluntary and does not reduce your responsibility. What regulators and auditors will ask for is evidence: your retention decisions, the Namespace settings that enforce them, records of erasure requests and how they were handled, and the test results showing what remained in histories and search indexes afterward. Start by asking your legal or privacy team to write down the retention period and erasure process for each workflow type, then check the sections below against that record.
Mapping GDPR Article 5(1)(e) and Article 17 to Temporal settings
This table maps each GDPR duty relevant to Temporal workflow data to the Temporal setting that supports it and the configuration you must set. Read it as a checklist: each row names what the regulation asks, which Temporal control addresses it, and what remains your responsibility to confirm in your own environment.
| Requirement | Temporal capability | Configuration to set |
|---|---|---|
| Storage limitation (Article 5(1)(e)) | Namespace Retention Period sets how long closed Workflow execution history is kept | Set the Retention Period per Namespace to the documented purpose, and confirm the value with your DPO before go-live |
| Storage limitation for data needed longer | Archival of history beyond the Retention Period is a separate decision you must design | Document where archived history lives, who can read it and when it is deleted |
| Erasure without undue delay (Article 17) | Deleting a workflow does not address copies in payloads, search attributes or external systems | Map every place personal data is written and build a deletion path for each one |
| Personal data in payloads (Article 32 security of processing) | Payload encryption through custom codecs and a codec server | Encrypt personal fields before they reach the service and manage keys outside the cluster |
| Personal data in search attributes | Search attributes are indexed in the visibility store | Do not place personal information in search attributes; use opaque identifiers instead |
| Access to personal data in the Web UI and API | Default noopAuthorizer allows every API request if no Authorizer is configured | Configure an Authorizer, mTLS and OIDC sign-in before loading personal data |
| Retention in the visibility store | Visibility records follow the Namespace and its storage backend | Confirm how visibility data ages out for your chosen backend and test it |
What the Namespace Retention Period removes and what it leaves behind
The Retention Period set on a self-hosted Temporal Namespace controls how long closed Workflow execution history is kept. That setting, not the moment a workflow finishes, sets when its history becomes eligible for removal, so it is the first number to fix when you map storage limitation to Temporal. Confirm the value you have registered for each Namespace in your environment, and record which Namespaces hold personal data, because a single Namespace-wide period applies to everything inside it. The Temporal self-hosted Namespaces documentation describes how the period is set at registration.
Deleting a workflow is a separate action from waiting out retention. An explicit delete or a reset does not rely on the period to remove data, and the period does not reach back to erase data you chose to keep in other systems. Before you rely on either path, confirm in your Temporal version exactly what is removed from the event history, from visibility records, from any archival destination and from worker-side data such as caches and logs. Test each path in a non-production Namespace and keep the evidence, since the answer depends on the version and configuration you run.
Personal data often persists outside the history. Workflow inputs, activity results and worker logs can hold names, account identifiers or contact details even when the event history is gone, and a retention setting does not touch them. Treat each of these as its own store with its own deletion route, and decide which fields should never enter a payload in the first place. Search Attributes are indexed in the visibility store, so keep personal data out of them. Map every location to an erasure method and an owner before you claim that erasure has been completed.
Where Temporal does not remove personal data on its own
Deleting or expiring a workflow does not clear every copy of personal data that passed through it. Search attributes, payloads, archives, backups and application-side copies each hold data on their own lifecycle, so erasure has to be designed across all of them.
Personal data in search attributes
Search attributes are indexed in the visibility store, which is a separate copy from the workflow history. Temporal says not to include personal information in them. Your team must define an allowlist of search attribute fields such as status, tenant identifier or internal reference numbers, and review every new attribute added by a workflow change. Check the visibility store's own retention, because records there are not removed by the same action that clears a closed execution's history.
Search attributes docsPlaintext payloads in histories
Workflow inputs, activity results and signals are stored as payloads in the workflow history. Unless a custom codec encrypts them before they reach the service, personal data is readable by anyone with access to the persistence store or the Web UI. Your team owns the codec design, the key lifecycle, and a codec server that runs inside your network. Test by reading a closed execution in the store and confirming that no personal fields appear in clear text.
Archives and exports outside Temporal
Anything your workflows export to a data lake, reporting database, file store or message topic creates a copy that the Namespace retention period does not reach. Each external copy needs its own retention rule and an erasure path that a data subject request can trigger. Document which workflow activities write outside Temporal, and make deletion of those copies an explicit step in your erasure procedure rather than an assumption.
Backups and replicas
Database backups, point-in-time snapshots and replicas of the persistence store keep history after a workflow has been deleted from the live cluster. Your backup policy must set how long these copies live, whether individual records can be removed from them, and how a restore re-applies erasure requests made after the backup was taken. Confirm this with your backup vendor and database team before you sign off on an erasure design.
Application caches and downstream systems
Workers, Web UI sessions, application caches and downstream services often hold copies of the same personal data that a workflow processed. Temporal has no visibility into them. Assign an owner for each cache and consumer, set expiry that matches your retention schedule, and include them in the erasure runbook. Log the erasure request, the systems it reached and the date completed, so the record can be produced to a supervisory authority if asked.
Encrypting personal data in payloads with custom codecs
A custom payload codec encrypts workflow and activity inputs and results before they are sent to the Temporal Service, so the persistence layer stores ciphertext rather than readable personal data. Temporal runs the codec on the client side through a codec server that the Web UI and CLI can call to decode payloads for authorized users. Payload encryption is a documented option for self-hosted Temporal, and it is the design that keeps personal data in the workflow history while limiting who can read it.
- Erasure by key destruction: Once the encryption key for a data subject or tenant is destroyed, the stored ciphertext can no longer be decrypted. Whether this satisfies Article 17 for your data depends on your legal analysis, so confirm it with your data protection officer.
- Codec server as an access point: The codec server decrypts payloads for the Web UI and CLI, so it must be reachable only by trusted operators and protected with authentication and TLS.
- Metadata is still visible: Workflow IDs, types, timestamps and search attributes are not encrypted by a payload codec, so personal data must stay out of those fields too.
- Key rotation and versioning: Plan how keys are rotated, which key decrypts which historical payloads, and how a retired key is recorded for audit.
- Replay and determinism: Codec changes must keep decoding existing histories, so test the codec against recorded workflows before rollout.
Confirm key management with your own security and platform teams, including where keys are stored, who can use them and how destruction is evidenced.
The alternative is to keep personal data out of workflow payloads altogether. The workflow carries an opaque identifier, such as a record ID or pseudonymous token, and activities look up the personal data from an external store that your application controls. Erasure then happens in that store, and the workflow history keeps only the reference. This design reduces what Temporal ever stores, but it moves the erasure duty to systems outside Temporal, which must be designed and tested with the same care.
- Erasure by deleting the source record: Deleting the record in the external store removes the personal data itself, while the workflow history keeps a reference that no longer resolves to a person.
- Pseudonymous references need care: An identifier can still be personal data if your organization can link it back to a person, so the mapping table must be protected and included in the erasure process.
- Activities must handle missing records: Workflows and activities need defined behavior when a referenced record has been erased, so that running executions do not fail unexpectedly.
- Retention in the external store: The store must apply its own retention rules, and deletions must reach backups and downstream copies.
- Search attributes remain separate: Search attributes must hold no personal data under either design, because they are indexed in the visibility store.
Verify with your data protection and application teams that the external store is the single source of personal data and that its deletion process covers every copy.
The two designs differ most in what erasure requires. Key destruction is fast and does not need to locate every ciphertext copy, but it depends on key management being sound and on the question of whether encrypted data counts as erased under your legal position. Record deletion matches the common expectation of removing data, but it requires an inventory of every place the identifier or data appears. Most teams need a clear view of both before choosing.
- Speed of erasure: Destroying one key can affect many payloads at once, while deleting records requires a deletion job per store and per copy.
- Completeness risk: Key destruction misses personal data outside payloads, such as logs, search attributes and exports. Record deletion misses copies the inventory did not list.
- Shared keys: A key shared across many data subjects cannot be destroyed without erasing others, so key scope should match the erasure unit.
- Backups: Both designs need a rule for backups, such as expiry or restore-time re-erasure.
- Evidence: Record deletion produces logs of deleted records. Key destruction needs logged, access-controlled key lifecycle events.
Ask your legal and compliance advisers which approach their reading of Article 17 accepts, and document the reasoning before build starts.
How personal data moves through Temporal and where erasure applies
The flow starts with a client application sending a workflow request that may carry personal data. A codec server encrypts the payload before the frontend service accepts it, so the cluster stores ciphertext in event history. Search attributes go to the visibility store, where personal information should not appear. The namespace Retention Period governs how long closed history is kept, and an optional archive may hold copies beyond that. The external system of record sits outside the cluster, so erasure there is an operator deletion. Check each store against your own erasure procedure.
Personal data paths through Temporal, with the retention clock and operator-run erasure.
Configuring retention and erasure before the first workflow runs
This sequence fixes what personal data may enter Temporal, how long closed history is kept, and how access and deletion are controlled before any production workflow starts. Each step produces a decision or record that the controller's compliance team can review.
Classify personal data and set retention decisions
The controller's legal and privacy team lists each personal data class that a workflow will touch, such as customer identifiers, contact details or case notes, and records the purpose, lawful basis and retention period for each class. Engineers then map every workflow input, output and signal to those classes. The step is complete when the team has a signed data inventory that states which classes may appear in workflow payloads and which must stay in the source system.
Register namespaces with the chosen retention period
Register one Namespace per data classification or retention class, setting the Retention Period to the value the inventory approved. The Retention Period controls how long closed Workflow execution history is kept, so it is the main technical lever for storage limitation. Record the namespace name, retention value and owning team in the configuration register. The step is complete when a describe call on each namespace returns the approved retention value.
Enforce search attribute rules before deployment
Define the search attributes the business needs for querying and confirm that none carries a personal identifier, because search attributes are indexed in the visibility store. Use opaque reference IDs or internal case numbers where lookup is required, and keep the mapping in the system of record. Add a code review check that rejects new search attribute keys outside the approved list. The step is complete when the approved list is versioned and the review check has been tested against a sample workflow.
Configure the codec server and key handling
Implement a custom payload codec that encrypts personal data before it reaches the Temporal Service, and deploy the codec server inside the same trusted network. Assign key ownership to a team separate from the workflow developers, store keys in a managed key service, and document the rotation and access procedure. Confirm that the Web UI and CLI decode payloads only for users authorized to see them. The step is complete when a test workflow shows ciphertext in history and plaintext only through the authorized codec path.
Restrict Web UI and API access with an Authorizer
Replace the default noopAuthorizer, which allows every API request, by configuring an Authorizer and a ClaimMapper that maps identity claims to namespace roles. Connect the Web UI to OIDC single sign-on and grant read, write and admin roles per namespace based on the approved inventory. Run negative tests with an account that lacks a role to confirm requests are denied. The step is complete when the access matrix is documented and every negative test returns a denial.
Document the deletion and erasure procedure
Write a runbook that explains what a request to erase personal data triggers in each system: the source database, the payloads still held in workflow history, the archived or exported history, and any search attribute entries. State clearly what deleting a workflow removes and what remains until the namespace retention period ends. Assign an owner for each step and agree how erasure requests are logged and answered. The step is complete when the runbook has been reviewed by the controller's legal team and a tabletop exercise has walked through one erasure request end to end.
Evidence a supervisory authority or auditor can review
The records below show how personal data is kept for a defined period, how it is protected in payloads and visibility stores, and how erasure requests were handled. They are inputs a supervisory authority or auditor can review, not a certificate. Article 42 certification is voluntary, and it does not reduce the controller's or processor's responsibility for compliance.
Retention decision per namespace
For each namespace, record the Retention Period chosen, the reason it is no longer than the processing requires, the data categories it holds, and who approved it. Tie the record to the purpose described in your processing register. Review it when a workflow type changes what data it carries. A reviewer will ask whether the period was a decision or a default left unchanged.
- Storage limitation principle
- Article 5(1)(e)
Namespace configuration exports
Keep dated exports of each namespace's settings, including retention, archival configuration and the visibility store it writes to. Store them under change control so every retention change has a before and after state. Compare exports against the retention decision record during each review. Gaps between the two are the first finding an assessor is likely to raise.
Codec and key management records
Document which payload fields are encrypted by the custom codec, which key version encrypts them, where keys are held, and who can read or rotate them. Keep the codec server's access logs and key rotation history. Erasure through key destruction only works if these records show which keys protected which histories. Confirm the process with your security team before relying on it for erasure.
Search attribute schema reviews
Keep the registered search attribute schema for each namespace and the review that confirmed no personal information is stored in it. Search attributes are indexed in the visibility store, so their contents survive beyond the execution's active life. Record any exceptions, with the reason, the data involved and the retention applied to the visibility store. Re-review the schema whenever a workflow adds a new attribute.
Search attribute docsAccess control settings
Export the Authorizer configuration and the ClaimMapper rules that map JWT or certificate claims to namespace roles. Record who holds administrative roles and when access was last reviewed. Without a configured Authorizer, the default allows every API request, so a reviewer will expect proof that this default was replaced. Keep the mTLS settings for internode and frontend traffic with these records.
Erasure request log
Log each erasure request with its receipt date, the data subject's identifier handled as personal data, the workflow executions and visibility records affected, the method used, and the completion date. Note where a request could not be fulfilled and the legal basis for keeping the data. Article 17 requires erasure without undue delay where a ground applies, so the log should show the elapsed time for each request.
GDPR textQuestions teams ask before fixing Temporal retention for GDPR
Does running Temporal make us GDPR compliant?
No. Temporal is software, and the GDPR places duties on the controller and processor, not on a tool. Temporal can hold personal data in workflow histories, payloads and search attributes, so your organization still has to decide what personal data flows through workflows, why it is kept, how long it stays, and how it is erased. Article 5(1)(e) requires personal data to be kept no longer than necessary for the purpose of the processing, and Article 17 gives data subjects a right to erasure where a listed ground applies. Temporal's retention period and deletion behavior are inputs to meeting those duties. Whether they are sufficient depends on your data map, your legal basis and your processes, which a legal and privacy team should confirm. No Temporal configuration produces a certificate, and the GDPR does not require an audit or attestation.
What does a Temporal retention and erasure review cost?
The cost depends on how many workflow types carry personal data, how many namespaces and environments exist, and how many personal data categories need a documented retention decision. A review is usually paid for as scoped work: a data map of workflows and payloads, a retention decision for each category, a configuration plan for namespace retention and archival, and an erasure runbook. Costs rise with the number of systems that receive workflow data, the amount of legacy history already stored, and whether a codec server or search attribute changes are needed. Costs fall when workflow inputs are already minimal and documented. DeployOpen does not publish prices. Ask for a written scope listing deliverables, assumptions and what the client provides, then compare quotes against that list.
How long does configuring Temporal retention take?
The duration depends on the decisions that come before the configuration, not on the configuration itself. Setting a namespace Retention Period is a single registration step in a self-hosted Temporal deployment, but choosing the right period for each category of personal data needs input from legal, business owners and data protection staff. Other drivers include the number of namespaces, whether archival is needed for records you must keep for other reasons, how payloads are encrypted, and how many environments must be tested before production. No duration is given here because no researched figure supports one. Ask for a timeline in the written scope that links each phase to the decisions it depends on.
What must our team provide before retention work starts?
Three inputs matter most, and the work stalls without them:
- A data map of which workflow types, activities, signals and search attributes carry personal data, and which systems receive that data.
- Legal and business decisions on the lawful basis, the retention period per data category, and any obligation to keep records for longer.
- Named key owners for payload encryption keys, the codec server and any key rotation process, plus a contact who can approve namespace changes.
You should also provide access to your existing Temporal environments, a test namespace for validation, and your current process for responding to erasure requests. Confirm with your data protection officer which of these decisions they own before the scope is signed.
Can our in-house team do Temporal retention work themselves?
Often yes, if the team already runs Temporal and has the decisions above. Registering namespaces, setting retention periods and documenting workflow inputs are within the reach of a platform team that knows Temporal's self-hosted model. The harder parts are the design choices: separating personal data from workflow inputs, choosing payload encryption, deciding what erasure means across histories and archives, and testing that the process works. Teams without those skills, or without a privacy lead to approve decisions, usually benefit from an outside review. A fixed-scope engagement with written deliverables can cover the design and leave the operations with your team. Decide this by comparing your skills against the list of design decisions, not by the size of your Temporal estate alone.
Does deleting a workflow remove copies in archives or backups?
Do not assume it does. Deleting a workflow execution is not the same as erasing the personal data it contained across every store. Closed execution history is kept for the namespace Retention Period, so personal data in histories remains until that period ends unless your process removes it earlier. Search attributes are indexed in the visibility store, and Temporal advises against putting personal information in them, so those entries need their own check. Archival copies, database backups, codec server logs, and any systems your workers wrote to are separate stores. Your erasure runbook should list each store, its retention, and how erasure is verified there. Confirm the exact behavior of deletion and archival in your Temporal version with the Temporal documentation and your own tests before relying on it.
Does encrypting payloads solve erasure?
Encryption helps with confidentiality and can support erasure, but it does not remove the duty to erase. If personal data in payloads is encrypted with a per-subject key and that key is destroyed, the ciphertext left in histories becomes unreadable to anyone without the key. That approach needs a key design that maps keys to data subjects and a documented destruction procedure, and it must be tested across backups. Encryption through a custom codec and a codec server is a documented self-hosted option, but it is one control among several. Ask your security team to confirm key storage, rotation and access, and ask your privacy team whether unreadable ciphertext meets their erasure standard for each data category.
Does our Temporal data leave the EEA, and why does that matter for retention?
It depends on where you host Temporal and who can access it, so check this before setting retention. Under Chapter V of the GDPR, a transfer includes storage in a cloud outside the EEA and remote access from a third country, even only to view data for support. Under EDPB Guidelines 05/2021, those cases are transfers. Temporal Cloud is a managed service run by Temporal Technologies, so a hosted option adds a processor relationship and possible third-country access to assess. A self-hosted deployment in your own infrastructure keeps control in your hands, but support access, backups and logs still need review. Confirm hosting locations, support access paths and the legal basis for each with your legal team.
Why hosting location and third-country access still matter
A self-hosted cluster in your own infrastructure does not end the transfer question. Running Temporal in your cloud accounts or data centers removes a processor from the picture for the workflow history, but the GDPR still applies to every person whose data crosses a border. Under EDPB Guidelines 05/2021 (version 2.0), remote access from a third country counts as a transfer even when the person only views data on a screen for support or administration, and so does storage in a cloud located outside the EEA. An engineer in another country who opens the Web UI to debug a stuck execution, or a vendor support session that exposes workflow payloads, can therefore trigger Chapter V obligations. Map who can reach the frontend, the Web UI and the database from outside the EEA, and record each case in your transfer inventory.
The jurisdiction of the provider also matters when a cloud platform hosts the database, the storage or the infrastructure beneath your cluster. The US CLOUD Act, through 18 U.S.C. 2713, requires electronic communication and remote computing service providers to preserve or disclose data in their possession, custody or control, whether that data sits inside or outside the United States. This is a neutral statement of scope, not a conclusion about any particular provider. Confirm with your cloud and database vendors which entity controls the data, where the keys are held, and how they handle government requests, and assess the result against your own risk analysis.
Temporal Cloud and any hosting vendor each need their own transfer assessment. Using Temporal Cloud means Temporal Technologies operates the service, so you must establish where workflow histories are stored, which sub-processors have access, and whether support staff can see payloads. The same applies to managed database services, managed Kubernetes and any outside firm that runs your cluster. Ask each one for its data location commitments, its transfer mechanism under Chapter V where relevant, and its process for third-country access requests. Record those answers before you decide where the namespaces and their retention settings will live.
How DeployOpen scopes and delivers GDPR retention configuration
DeployOpen is a Chainscore Labs company that plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For Temporal, we work from the written scope to set retention, payload handling and erasure procedures that your compliance and security teams can review.
How we scope
- We inventory which workflows carry personal data, which namespaces hold them and who needs access to each.
- We agree retention periods per namespace with your data protection owner before any configuration changes are made.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We configure namespace Retention Periods, archival and search attribute rules to match the approved schedule.
- We design payload encryption and key handling so personal data can be rendered unreadable when erasure is due.
- We test erasure and retention behavior in a non-production namespace before any change reaches production.
How we hand over
- You receive a retention and erasure runbook covering each namespace, its period and its deletion procedure.
- Deliverables include configuration records and evidence your compliance team can use in internal reviews.
- We walk your operators through the procedures so they can run erasure requests without our involvement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- We can review retention settings again when workflows, data categories or Temporal Server versions change.
- DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.

