Why Temporal namespace registration and retention decisions come first
A namespace in Temporal is the unit that groups workflow executions, task queues and history for a set of teams or environments, and it is the boundary where isolation, access and retention are applied. When a platform team lets several teams and environments share one self-hosted Temporal Service, the namespace names and their retention periods are the first decisions to settle, because they shape how data is separated, who can reach it and how long history is kept. Changing a name later means moving or recreating workflows, and changing retention affects executions that already exist, so both deserve a written decision before the first production workflow starts. Confirm with your own Temporal version which namespace settings can be changed after registration and which require a new namespace.
Authorization is the part of the design that most often gets postponed. If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. That means a namespace name is not a security control on its own. Access is enforced only once a ClaimMapper maps JWT or certificate claims to namespace roles and an Authorizer is in place, so the namespace list, the role mapping and the Authorizer configuration should be designed together. Teams should agree who may register namespaces, who may read or write each one and which identities reach the frontend, before any team is onboarded.
The practical starting point is an inventory: one row per team and environment, with the proposed namespace name, the owning team, the data classification of the workflow inputs, the retention period the business needs and the identities that will use it. Review that inventory with security and compliance owners, since retention and access requirements often come from them rather than from engineering. Retention periods that are too short can remove history an investigation needs, and periods that are too long keep sensitive payloads longer than necessary. Ask your implementation partner or internal team to show how each namespace will be created, verified and recorded, so the registration can be reproduced in every environment.
Namespace options and when each fits
This table compares the namespace choices a team makes on self-hosted Temporal, from how to split namespaces across environments and teams to retention and experiment isolation. Read each row for the conditions where it fits and the costs it creates later, since namespaces are hard to merge or split once workflows are running.
| Option | When it fits | What it makes harder later |
|---|---|---|
| One namespace per environment | Small estate where dev, test and production need separate histories and a shared set of teams owns all workflows | Teams share one queue of executions and one visibility index, so access control and quota must be handled inside the namespace or by separate task queues |
| One namespace per team or product | Several teams own independent workflows and need their own access boundaries, retention settings or operational ownership | Cross-team workflows need explicit calls between namespaces, and the number of namespaces to register, monitor and grant roles on grows with every team |
| Namespace per environment and per team | Regulated or multi-tenant estates where a team's production data must stay separate from other teams and from non-production | Naming, provisioning and role mapping multiply, and each combination must be registered and checked after every change |
| Default namespace | Local development and quick experiments where no shared production data exists | Production workflows left in the default namespace are hard to isolate, rename or give their own access policy later |
| Short retention period | Workflows with short useful lives, where histories are needed only for a brief troubleshooting window and storage growth is a concern | Investigations of older failures may find no history, and any compliance need for longer history must be checked before the period is chosen |
| Long retention period | Workflows whose histories support audit, dispute handling or long-running business processes | Storage and visibility index size grow with retained history, and changing the period later affects only newer registration settings, so confirm the behavior in the release notes |
| Separate namespace for experiments or tests | Teams that run load tests, chaos tests or trial workflow code and must keep that traffic away from production metrics and quotas | Test namespaces need their own registration, roles and cleanup, and teams sometimes forget them, leaving stale executions and storage costs |
Choosing a retention period by workload
Short-lived operational workflows, such as order fulfillment steps, provisioning tasks or retries against an internal API, usually finish within minutes or hours and are rarely looked at again once they close. For these, the question is how long an operator still needs to inspect a failed or stuck execution and reset it if necessary. A shorter period keeps the history stores small and keeps the Web UI lists focused on recent work. The retention value should cover the longest window in which an incident is normally investigated, plus a margin for on-call handoffs.
- Investigation window: Count how long after a failure your operators typically need the event history to diagnose it.
- Reset and replay needs: Confirm whether a reset of a closed execution is part of your runbook, since that requires history that still exists.
- Failure volume: A workload that fails often will keep more closed executions in visibility, so check the expected rate with your application owners.
- Separate namespace: Keep these workflows in their own namespace so their retention does not force longer retention on other teams.
- Test expiry: Confirm in a non-production environment what happens to a running workflow whose history approaches the limit.
Ask the application owners to confirm the longest incident investigation window they have actually needed in the last year.
Some workflows record decisions that may later be questioned, such as payment approvals, account changes, claims decisions or customer consent events. For these, retention is set by the period in which a dispute, regulator request or internal audit can reasonably reach back, and by what your records policy says. Retention alone is not an audit trail: you also need the visibility records to find an execution by business identifier, and an export or archive plan if the period exceeds what the live stores should hold. Those requirements usually come from compliance and legal teams, not from the platform team.
- Records policy: Obtain the retention period from your records management or compliance owner in writing, not from engineering assumptions.
- Searchable records: Decide which search attributes must be indexed so that a case can be found by customer or transaction identifier during an audit.
- Archival path: Confirm how records are kept beyond the live retention period, and who is responsible for that archive.
- Legal holds: Ask whether any matter can require records to be preserved longer than the standard period, and how that would be applied.
- Evidence of the setting: Keep the namespace retention configuration under change control so auditors can see what applied at each date.
Check with your auditors which period they will expect to see documented before you record a value.
High-volume workflows, such as per-message processing, telemetry enrichment or large batch fan-outs, create the most history per day, so retention multiplies storage use. Storage growth is driven by how many executions run, how many events each execution writes, how large the payloads are, and how long closed history is kept in the persistence and visibility stores. Keeping a short period for these workflows can matter more to the storage budget than any other setting, while the workflows themselves may need only short investigation windows. Consider whether the business need is met by recording a smaller summary outside Temporal after completion.
- Event volume: Estimate events per execution from your workflow design, then multiply by daily execution counts and the retention period.
- Payload size: Large payloads increase history size in persistence, so review payload design with the development team first.
- Visibility load: Every closed execution adds visibility records, which grow with retention on Elasticsearch, OpenSearch or SQL visibility.
- Storage sizing: Ask your database and search platform owners to size the stores for the chosen period, including backups.
- Separate namespace: Put high-volume workflows in their own namespace so a larger period never applies to lower-volume teams.
Request a storage projection from your platform team that uses your real execution counts for the retention period you plan to set.
Retention is a single per-namespace setting that you choose from three inputs: the recovery need, the audit need and the storage capacity you can run. The value is not a platform default to accept without thought, and it should be recorded with the reasons so it can be revisited. Retention is also not changed silently after workflows are running, because a shortened period can remove history that operators still rely on. Review the value on a fixed schedule and whenever workload volume changes significantly.
- Written rationale: Record the recovery, audit and storage reasons behind each namespace's value.
- Owner per namespace: Name the team accountable for each retention decision.
- Change impact: Before shortening a period, identify running and recently closed workflows that depend on the older history.
- Storage alerts: Monitor persistence and visibility growth so that retention assumptions are tested against reality.
- Periodic review: Set a review date with the compliance, platform and application owners.
Check the retention value, its rationale and its owner with the people who will be asked about it during an audit or incident.
How to register a namespace on self-hosted Temporal
This sequence takes a team from a reachable self-hosted Temporal Service to a registered, verified namespace with a naming and retention decision recorded in writing. Each step ends with a check so that a failure is found before any workflow runs.
Match tool versions to the target server line
Before anything else, confirm which Temporal Server version runs in your environment and install a Temporal CLI version that matches that server line. The current supported server is v1.32.1, published on GitHub on October 8, 2026, and patch releases v1.31.4 and v1.30.8 were published on October 12, 2026 for earlier minor lines. Record the server version and CLI version in your runbook. You know this step is done when the server reports the version you expect and the CLI version is recorded beside it.
Confirm the frontend address and TLS settings
Identify the frontend address that clients and workers will use, the port it listens on, and whether mTLS is required for frontend traffic. Your platform or security team should confirm which certificate authority signs the client certificates and whether internode and frontend TLS settings are separate in your deployment. Run a connectivity test from the machine where you will run the CLI, and confirm the handshake succeeds with the certificates you intend to use. You know this step is done when the CLI connects to the frontend without a certificate or handshake error.
Confirm the server and persistence are reachable
Check that the Temporal frontend, history, matching and worker services are running and healthy, and that the persistence store (Cassandra, PostgreSQL or MySQL, as deployed) accepts connections from the Temporal services. Your database team should confirm the account and network path. Confirm that the store version is within the range Temporal documents for your server line before you proceed. You know this step is done when the cluster health check passes and the server logs show no persistence connection errors.
Record naming and retention decisions in writing
Before creating anything, write down the namespace naming convention for each environment and team, for example one pattern for production and another for staging, with the team name in a fixed position. Choose the retention period for each namespace and record who approved it and why. Decide whether the default namespace will be used at all, and if so, for what. Note that retention cannot be treated as a per-workflow setting, so the retention value should match your data handling and audit commitments. You know this step is done when a signed or reviewed document lists every planned namespace, its retention value and its owner.
Register the namespace with the CLI or an SDK
Create the namespace using the Temporal CLI register command with the name and retention value from your document, pointed at the frontend address confirmed earlier. Alternatively, an operator client in your chosen SDK can perform the same registration from a controlled deployment pipeline. Keep the command or code in version control so the registration can be repeated. Avoid running registration from a shared laptop with broad credentials. You know this step is done when the command returns without error and the namespace appears in the namespace list.
Verify the namespace with a describe call
Run a describe call against the new namespace and compare the returned name, state and retention period with the values in your written record. Confirm that the namespace is listed in the expected environment and that no unexpected namespace was created by mistake. If the retention value differs, correct it in the same way the namespace was created and rerun the describe call. You know this step is done when the describe output matches the record exactly.
Prove the namespace with a test workflow
Start a simple test workflow on a dedicated task queue in the new namespace from a client that uses the same certificates and endpoint your workers will use. Run a worker that picks up the task, completes the workflow, and then confirm the execution appears in the Web UI or through a list call with the expected status. Delete or leave the test workflow according to your retention policy and note the result. You know this step is done when the test workflow completes and its history is visible in the target namespace only.
How registration, authorization and workers connect
The operator or pipeline sends a namespace registration request through the Temporal CLI or an SDK to the frontend service, which is the trust boundary. The frontend checks the caller against the Authorizer, using claims that the ClaimMapper maps to namespace roles, before the namespace record is written to persistence. Workers and clients then use the registered namespace on their task queues. Check that the frontend and the other services sit on networks that are not reachable from the public internet, and that the default noopAuthorizer is replaced before any registration runs.
Namespace registration passes the frontend authorization check before workers can use it.
Naming conventions that survive team changes
A namespace name is not just a label. It ends up in worker and client configuration, in runbooks, in access rules and in audit records, so the scheme needs to hold up after the people who chose it have moved on. The cards below describe the components worth deciding on and the rules to write down before the first namespace is registered.
Environment component
Most teams put the environment (for example production, staging or test) in the name so that a worker pointed at the wrong namespace is easy to spot in logs and dashboards. Decide the exact tokens now and do not let teams invent their own abbreviations. Check that the environment token is never the only thing separating production from non-production, because access rules and retention settings should also follow the environment. The illustrative pattern payments-prod shows the idea, and it still needs to be checked against your own rules.
Owning team component
Including the owning team in the name helps when a workflow fails at 2 a.m. and the on-call engineer needs to know who to call. Use a stable team identifier rather than a team display name, since names change when organizations reorganize. Record who approves new namespaces for each team, so that a request for a new namespace does not become an ad hoc decision inside the platform group.
Product or domain component
A product or business domain token groups related workflows and makes it easier to answer questions such as which retention period applies to billing data. Agree on the source of truth for these tokens, such as a service catalog, so the names match what finance and operations already call the product. Avoid codenames that will be retired within a year, because every renamed namespace requires client configuration changes.
Region or site component
For multi-site or data residency needs, a region or site token shows where a namespace's history is stored. Include it only when more than one region actually exists, and confirm with your architecture team how cross-region failover would work before you encode a region into a name that will be referenced everywhere. Unused region tokens create confusion when a site is decommissioned.
Separator and length rules
Write down the allowed characters, the separator (for example a hyphen), the maximum length and the casing. Clients, CLI commands, dashboards and log queries all embed names, and small differences such as underscores versus hyphens cause silent mismatches. Confirm the accepted character set and length limits with the Temporal documentation for the server version you run, and test the chosen pattern with a dry run in a non-production environment.
Deployment docsChange cost and record keeping
Namespace names appear in client configuration, access mappings, audit records and retention decisions, so a rename is a migration, not an edit. Keep a register that records each namespace, its owner, its retention setting and the date it was created. Ask anyone proposing a rename to list every system that references the old name, and treat the scheme itself as a decision record that is reviewed when teams or products change.
Questions teams ask before registering namespaces
How much effort does namespace design and registration take?
Registering a namespace is a short administrative step, but designing the set of namespaces is where the effort sits. The work depends on how many environments you run, how many teams share the cluster, and how different their retention and access needs are. A small setup with one production and one staging environment needs a few decisions and little else. A shared platform serving many teams needs a naming scheme, an owner for each namespace, a retention value per class of workload, and a review step before anyone creates a new one. Ask any partner to break the estimate into design, registration, and the follow-on authorization and monitoring work, since that follow-on work is usually larger than the registration itself.
Can our own team register namespaces without outside help?
Yes. Registration is done with the Temporal CLI or an SDK, and an engineer who has run the server can do it in an afternoon once the decisions are made. The harder questions are the ones before the command: which namespaces exist, who owns each one, how long histories are kept, and who may read or start workflows in each. Teams that lack an internal owner for the platform, or that have no written access model, often ask for help with those decisions rather than the commands. DeployOpen can take on the design and the registration as a fixed-scope engagement, or review a design your team has drafted.
What do we need to provide before registration starts?
The work needs three inputs from your organization. First, named environment owners who can approve a new namespace and answer for its data. Second, a written retention policy that states how long workflow history must stay available for each class of workload, drawn from your own operational and audit requirements. Third, an authorization design that says which identities may create namespaces, which may operate on them, and how roles map to your identity provider. Self-hosted Temporal does not enforce access control by default, so without an authorization design the namespace boundary is a naming convention only. Confirm these inputs with your security and compliance teams before the first registration.
Can we change a namespace's retention period later?
Retention is set on a namespace when it is registered, and you can change it afterward. The practical question is what a change does to data already stored. Shortening retention means history older than the new period becomes eligible for removal, so the change should be agreed with the workflow owners and checked against any audit or legal hold obligations before it is made. Lengthening retention only affects history that is still stored when the change takes effect. Confirm the exact behavior for your server version in the Temporal documentation, and treat any retention change as a controlled change with a written record rather than a routine setting.
Should we use the default namespace for production workloads?
Generally no. A self-hosted Temporal Service includes a default namespace that is convenient for development, but it gives every caller the same boundary, retention setting and access posture. Production workloads from different teams or environments should live in namespaces of their own, each with a named owner, a retention value and an authorization rule. Using the default namespace also makes later separation harder, because workflows and their history would need to move. If you keep the default namespace, restrict it or leave it for local testing, and document that decision in your platform standards.
How does self-hosted namespace handling differ from Temporal Cloud?
In self-hosted Temporal, you create, configure and secure namespaces on servers you run, so retention, naming, persistence and access control are your responsibility. Temporal Cloud manages the service for you, and namespace creation, retention and identity are handled through the Cloud offering, with pricing and support tiers set by Temporal Technologies. The pricing page lists pay-as-you-go rates for actions and storage, including retained storage, so storage retention has a direct cost in Cloud. Self-hosted cost instead comes from the infrastructure, database and staff time you provide. Ask Temporal Cloud for its current namespace and retention terms before comparing the two models on paper.
What naming convention should we use for namespaces?
Use a convention that encodes the environment, the owning team or domain, and where useful the data classification, in a fixed order that everyone can read. For example, a pattern such as environment, then team, then workload class (illustrative only) makes ownership obvious in logs and the Web UI. Keep names lowercase, avoid personal names, and avoid anything that changes when a team is reorganized. Record the convention in a short standard, add a review step for new namespaces, and check the names against the access rules so that each pattern maps cleanly to a role. Renaming a namespace later is disruptive, so settle the scheme before the first production registration.
How DeployOpen scopes namespace and retention work
DeployOpen plans, builds and documents Temporal namespaces and retention periods inside infrastructure you control, so the namespace model matches how your teams and environments are separated. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory which teams, environments and workflow types need their own namespace and which can share one.
- Agree retention periods per namespace in writing, with the storage and compliance reasons behind each value.
- Define the naming convention, owners and who may request new namespaces before any registration begins.
How we build
- Register namespaces with the Temporal CLI or SDKs, scripted so each environment is created the same way.
- Replace or lock down the default namespace so workflows do not land in an unplanned place.
- Test retention settings against sample workflow histories and confirm visibility records behave as the design expects.
How we hand over
- Deliver a namespace register listing names, owners, retention periods and the environments each one serves.
- Document the registration scripts, the change process for new namespaces and the retention review steps.
- Walk your platform and security teams through the design so they can review and extend it independently.
How we support
- Available as a retainer for adding namespaces, adjusting retention and reviewing changes as teams grow.
- Re-check namespace and retention settings during Temporal Server upgrades, with the upgrade path agreed in scope.
- Confirm with your compliance team which retention requirements apply, since DeployOpen prepares evidence but does not issue audit reports.

