Why configuring mTLS for self-hosted Temporal comes before go-live
Once you run a self-hosted Temporal Service, the traffic between your workers, the frontend, history, matching and internal services crosses networks your team operates. mTLS encrypts these connections and authenticates both ends in each direction, so a server only accepts peers that present a certificate it trusts. This matters before go-live because the Temporal Server's default configuration does not authenticate API callers: if no Authorizer is configured, the default noopAuthorizer allows every API request with no authentication or access control. mTLS closes the transport and peer-identity gap, but it is one layer of the access model, not the whole of it. Authorization, namespace roles and network placement still need their own design.
The Temporal server is licensed under the MIT license according to its GitHub repository, so your team can run it without a license fee for the server itself. Temporal Technologies also sells Temporal Cloud as a managed service, which moves transport, certificate and operations work to the vendor, but it is a separate decision with its own pricing and terms. If you choose self-hosting, the certificate lifecycle, internode and frontend settings, and rotation procedure become your responsibility. Ask your security team early which certificate authority will issue these certificates and who will own renewal, since these decisions affect how the rest of the deployment is built.
Teams usually need mTLS when Temporal services talk across hosts, clusters or trust zones they do not fully control, or when a compliance or security review asks how service-to-service traffic is protected. The Temporal self-hosted security documentation describes separate mTLS settings for internode and frontend traffic, which means you can plan them independently. Before go-live, confirm which connections cross a boundary, which certificate chain each side trusts, and how you will check the server name on each connection. Read the self-hosted security documentation at Temporal self-hosted security and test the settings in a non-production namespace before any worker connects.
Where mTLS applies in a self-hosted Temporal deployment
The diagram starts with workers and clients on the outside of the trust boundary, which reach the frontend service over the frontend mTLS setting. Inside the private network, the frontend, history, matching and worker services talk to each other over the internode setting, so a single certificate misconfiguration can break one path while the others keep working. Persistence and visibility stores sit behind the services and are configured separately, not by either mTLS setting. Check each arrow against the setting it uses before you write the configuration.
Frontend mTLS covers external callers; internode mTLS covers service-to-service calls.
Which mTLS settings fit each connection type
Internode traffic is the connection between Temporal Server services such as frontend, history, matching and worker, whether they run as separate processes or separate pods. Temporal's self-hosted security documentation describes separate mTLS settings for internode and frontend traffic, so the internode block is configured on its own. Changing it does not change what SDK clients or workers present to the frontend.
- Scope: Every service-to-service call falls under this block, including calls inside the same cluster network. Enabling mTLS only on the frontend leaves the rest of the cluster exposed.
- Client certificates: Each service presents a certificate and verifies its peers, so client certificate verification is the core control here. Confirm that the setting requiring client authentication is enabled for internode traffic.
- Server name checks: Enable server name verification so a service accepts only peers whose certificate matches the expected name. Confirm the exact setting for your release.
- Separate CA: Many teams use a dedicated internal certificate authority for internode traffic, limited to Temporal service identities. Choose this when the platform or security team wants service-to-service trust isolated from application and user certificates.
- Rotation: Plan a reload path for internode certificates before the first expiry, and test it on a non-production cluster.
Confirm exact key names for internode settings against your server version in the self-hosted security documentation before you write any configuration.
Frontend traffic is the connection from SDK clients and workers to the Temporal frontend service. This is the path your applications and workers use to start workflows, poll task queues and report results, so it is where most application identity decisions are made. Temporal's security documentation lists separate settings for frontend traffic, which lets you require client certificates here without changing the internode path.
- Client certificates: Requiring client certificates on the frontend gives each worker and client a verifiable identity at the transport layer. Pair this with an Authorizer and ClaimMapper if you want certificate claims to map to namespace roles.
- Server name checks: Clients should verify the frontend's certificate against the expected name, so a worker does not connect to a look-alike endpoint.
- Separate CA: Choose a separate certificate authority when workers run in another network, a partner or vendor operates workers, or application teams are issued certificates by a different authority than the platform team.
- Worker rollout: Each SDK language and client library must be configured with its client certificate, key and trusted CA. Test every worker type in a staging namespace before the frontend requires client certificates.
- Rotation: Client certificates are issued to many workers, so track expiry dates and automate reissue to avoid outages during rotation.
Confirm the exact frontend setting names, and how each SDK loads certificates, against the server and SDK versions you run.
The Web UI is a browser application that talks to the frontend on behalf of people who inspect workflows. It has two separate trust boundaries: the browser connection to the UI and the UI's connection to the Temporal frontend. The Temporal documentation describes OIDC single sign-on for the Web UI, which covers who may sign in. It does not, in the supplied guidance, describe the certificate arrangement between the Web UI and the frontend, so confirm that for your version before you design it.
- Browser certificate: Serve the Web UI over HTTPS with a certificate that browsers trust, usually issued by your public or enterprise certificate authority. This is separate from the mTLS certificates used between services.
- Sign-in: Enable OIDC single sign-on so every user is identified before reaching the UI, and map groups to access levels in your identity provider.
- Backend connection: Confirm whether the Web UI presents a client certificate to the frontend, and how its trust store is configured, in the release you run.
- Separate CA: A separate authority for the Web UI is rarely needed. Consider one only when a reverse proxy or gateway in front of the UI uses its own internal issuer.
- Exposure: Keep the Web UI off the public internet, and place it behind your sign-in and proxy design.
Confirm with the vendor's current documentation whether the Web UI supports certificate-based access to the frontend before you rely on it for transport authentication.
How to set up mTLS on a self-hosted Temporal Service
This sequence takes a self-hosted Temporal Service from plaintext internal and client traffic to mutually authenticated connections on both internode and frontend paths. Each step closes with a check, so the team knows the encryption and certificate trust work before it moves to rotation.
Inventory services, clients and certificate paths
The platform team lists every Temporal Server service, each host or pod that runs it, the database and visibility store connections, and every client that calls the frontend, including workers, the Web UI, the Temporal CLI and any codec server. For each one, record the hostnames and IP addresses it is reached by, because these become the subject alternative names. The output is a written inventory that shows which traffic is internode and which is frontend. Check: every caller in the inventory maps to a documented network path, and no client is listed without an owner.
Create a certificate authority and issue certificates
The security team creates or designates a certificate authority that is separate from public trust stores, then issues a server certificate for the internode services and a separate server certificate for the frontend. Client certificates are issued for each worker group and operator tool. Subject and SAN fields must match the names in the inventory, and each certificate should carry a clear purpose so internode and frontend identities stay distinct. Check: each certificate chains to the internal CA, and
openssl x509 -text -nooutshows the expected SAN entries and extended key usage.Enable mTLS for internode traffic
The platform team adds the internode TLS settings to the static configuration for every service, pointing each one at its certificate, private key and the CA bundle that it trusts. Internode mTLS means each service presents a certificate and verifies the peer, so a rogue host cannot join the ring. Rolling the change out one service at a time keeps the cluster reachable during the rollout. Check: all services start cleanly, and the logs show TLS handshakes between history, matching, frontend and worker services with no certificate verification errors.
Enable frontend mTLS and require client certificates
The platform team configures the frontend TLS settings so that the gRPC endpoint requires a client certificate signed by the trusted CA, and rejects clients that present none. Workers, the CLI and other clients are updated with their own certificate and key, and their trust bundle is set to the same CA. Confirm the frontend settings with the Temporal self-hosted security documentation before rollout, since the exact option names depend on the server version. Check: a client with a valid certificate can list namespaces, and a client with no certificate is refused at the TLS handshake.
Set serverName checks on every client
Each client verifies that the server certificate matches the name it intends to reach, using the server name setting in its TLS configuration. Without this check, any certificate signed by the CA could be presented by a host that impersonates the frontend. The security team reviews the names in each client configuration against the SAN list from the inventory step. Check: a client configured with a wrong server name fails the handshake, while the correct name connects.
Verify with a trusted client and a rejected untrusted client
The team runs a test client with a valid certificate from the internal CA and confirms it completes a namespace operation. Then it runs a second client using a certificate from a different or self-signed CA, and a third with no certificate, and records that both are rejected before any Temporal API call is made. Keep the outputs as evidence for reviewers. Check: the trusted client succeeds, and both untrusted clients fail with a TLS error in the frontend logs.
Document and rehearse the certificate rotation procedure
The operations team writes a rotation runbook covering how new certificates are issued, how the CA bundle is updated on every service and client, the order in which changes are applied, and how to roll back. Confirm expiry dates for every certificate and set reminders well before they lapse. Rehearse the procedure in a non-production environment, and confirm the approach against the Temporal upgrade and security documentation for the server version in use. Check: a rehearsed rotation completes with no failed handshakes, and the runbook names an owner for each certificate.
How client certificate checks and serverName validation prevent impersonation
Requiring a client certificate means the Temporal frontend or internode listener will only complete a TLS handshake with a peer that can present a certificate chained to a CA the server trusts and that proves possession of the matching private key. The handshake proves the caller holds a key the CA signed, and nothing more. It does not prove the caller is an authorized worker, a particular team or a particular namespace. In the server configuration, this is governed by the client certificate requirement settings under the frontend and internode TLS blocks (confirm the exact keys against the self-hosted security documentation for your server version, since the Temporal self-hosted security docs are the reference for current settings). Keep the frontend and internode trust stores separate so that a certificate valid for one listener is not accepted by the other unless you have decided that is acceptable.
The serverName check is the control that stops a client from accepting a certificate issued for a different host. Without it, a client that trusts the CA will accept any service certificate that CA has signed, including one issued for an unrelated machine or a compromised internal host. Setting the expected server name on each client, such as the frontend host name that workers and the CLI dial, forces the certificate's subject alternative names to match the endpoint the client intended to reach. Confirm that every SDK, worker, admin tools container and the Web UI sets this value, because a client that skips verification will still connect successfully and the gap will not show up in normal testing.
A valid certificate from a shared CA can still be too broad. If one CA signs certificates for every service, developer laptop and CI runner, then any holder of any of those certificates can open a connection to the frontend, and mTLS will report success. Ask who can issue certificates from each CA, how long leaf certificates live, and whether workers, operators and the Web UI each get their own identities. The ClaimMapper can read certificate claims and map them to namespace roles, but that mapping belongs to the authorization design covered in Temporal Authorizer and ClaimMapper with JWT. mTLS establishes who is connecting at the transport layer, while namespace authorization decides what that caller may do, so the two must be configured and tested together.
Security risks to address when enabling mTLS
Turning on mTLS encrypts and authenticates connections, but it does not close the other gaps in a self-hosted Temporal deployment. The cards below cover the controls that sit around the TLS settings, so that a working handshake does not leave the cluster open in other ways.
Default Authorizer stays open
If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Enabling mTLS proves who is connecting, but it does not restrict what a connected client may do. Confirm that an Authorizer is configured and that each client certificate maps to the namespace roles it actually needs.
Security docsPrivate key storage and access
The server and client private keys are the credentials that prove identity on every connection. Anyone who copies a worker's key can run workflows as that worker. Confirm where keys are stored, who can read them on each host and in each container image, and whether they are loaded from a secrets store rather than baked into images or configuration files.
Services exposed beyond the private network
The deployment guide says Temporal services should run on hosts that are not reachable from the public internet, with network access limited to trusted internal networks. mTLS does not replace that boundary. Check that the frontend, internode ports and database are reachable only from the networks that need them, and test the reachable set from outside your perimeter.
Overly broad certificate trust
A server that trusts every certificate issued by a shared certificate authority will accept any client that authority has signed, including certificates issued for other systems. Limit the trusted CA bundle to the authority that issues Temporal certificates, and use serverName checks so that a certificate issued for one service cannot be presented as another. Review which identities each CA is allowed to issue.
Logging rejected handshakes
Failed TLS handshakes are often the first sign of a misconfigured worker, an expired certificate or an attempt to reach the frontend without credentials. If these rejections are not logged and forwarded to your monitoring system, they are easy to miss. Confirm that handshake failures reach your log pipeline with enough context to identify the source address and the certificate involved.
Web UI behind its own sign-in
Client certificates protect the gRPC frontend, but the Web UI is a separate entry point that operators use to inspect workflow data. Put the Web UI behind your organization's single sign-on, and restrict who can reach it through a proxy or private network. Confirm that the UI cannot be reached directly from a network where only the gRPC frontend should be exposed.
Security docsQuestions teams ask before configuring Temporal mTLS
Does mTLS alone secure a self-hosted Temporal deployment?
No. mTLS encrypts traffic between Temporal services and authenticates the certificates that connect to them, but it does not decide what an authenticated caller may do. Self-hosted Temporal uses a default noopAuthorizer when no Authorizer is configured, and that default allows every API request with no authentication or access control. A complete setup pairs mTLS with an Authorizer and ClaimMapper, restricted network exposure, and a deliberate plan for payload encryption. Treat mTLS as one control in that set, and confirm each layer in your own environment before calling the deployment secured.
What does the work need from the platform and security teams?
Mostly decisions and access rather than new tooling. The security team usually owns the certificate authority, the issuance policy, the validity periods and the revocation process. The platform team owns the Temporal configuration for internode and frontend traffic, the Kubernetes or host secrets that deliver certificates, and the restart or rolling update path. Both teams need to agree on which client identities exist, such as workers, the CLI and the Web UI, and how each one gets a certificate. Ask who approves a new client certificate and who can revoke one before the build starts.
How long does mTLS rollout take, and what drives the timeline?
The timeline depends on your certificate infrastructure and the number of clients, not on a single fixed duration. Drivers include whether an internal CA already issues certificates for services, how many workers and tools connect to the frontend, whether Temporal runs in Docker Compose, binaries or Kubernetes, and how many environments need separate trust chains. Testing in a non-production namespace, updating every worker, and proving that rotation works all add time. Ask any partner for a written sequence with milestones and a list of clients in scope, since that list is what determines the schedule.
Can our team configure Temporal mTLS without outside help?
Yes, if your team already runs an internal CA, manages Kubernetes or host secrets, and has operated Temporal Server upgrades. The configuration itself is a set of settings for internode and frontend traffic, including requiring client certificates and serverName checks, so the difficulty lies in getting the certificate chain, names and client updates right. Teams without a CA practice, or with many legacy workers, often gain more from an outside review of the design. Whichever path you choose, test the handshake from every client type before you cut over.
How does certificate rotation avoid outages?
Rotation avoids outages when the new certificate is trusted by every party before the old one expires, and when each service reloads or restarts in a controlled order. Plan overlapping validity periods, confirm that the CA bundle clients use includes both old and new roots during transition, and check that serverName values still match the names on the new certificates. Rehearse rotation in a non-production environment and monitor failed handshakes during the change. Ask whether your Temporal version reloads certificates without a restart, and confirm that behavior with the vendor documentation for your release.
What should a partner quote include for this work?
A quote should follow from a written scope that names the Temporal deployment method, the services and environments in scope, and the clients that must connect over mTLS. Ask for the design of the certificate chain and issuance process, the configuration changes for internode and frontend traffic, the client update plan for workers, CLI and Web UI, the verification steps, and the rotation runbook with a rehearsal. Also ask what is one-time work and what recurs, such as certificate renewal support or retesting after upgrades. DeployOpen does not publish a price list, and a quote follows the agreed scope.
Does Temporal Cloud change the mTLS work?
It changes who operates the service, so much of the server-side configuration moves out of your scope. Temporal Cloud is a managed service, and your team still needs to decide how workers authenticate, how certificates or identity are issued to clients, and how access is governed inside your organization. Pricing and support tiers also differ, and the Temporal pricing page lists items such as SAML SSO and SCIM on higher tiers. If you are weighing self-hosting against Temporal Cloud, compare the client identity work in both models before choosing.
How to rotate Temporal certificates without downtime
Certificate rotation for self-hosted Temporal is a recurring operational task, not a one-time setup step, and it needs a named owner and an alert that fires well before expiry. Assign one team to own the certificate inventory covering the internode and frontend listeners, the worker and admin client certificates, and the CA bundles that trust them. Track each certificate's expiry date, and alert on a threshold your team sets, so a lapsed certificate is never the first sign of trouble. Confirm with your own environment how each certificate is issued and renewed, because the renewal path decides how much manual work each rotation costs.
The usual low-downtime approach is an overlapping trust window. First, add the new CA to the trust bundle that every Temporal service and client loads, so both old and new CAs are trusted at once. Then reissue server and client certificates signed by either CA, and roll them out in stages: internode first on one service group, then the frontend, then workers and admin tooling. Temporal services read TLS settings at startup, so confirm in the self-hosted security documentation and in a test cluster whether a given setting picks up new files without a restart, and plan a rolling restart for any service that does not. Only remove the old CA after every client has moved, since removing it early is the most common cause of a rotation outage.
Before touching production, rehearse the full sequence on a staging cluster that mirrors your frontend and internode settings, including serverName checks and required client certificates. Test that workers reconnect to the frontend after each stage, that the Web UI and CLI still authenticate, and that an intentionally expired or wrong-CA certificate is rejected rather than silently accepted. Record how long each stage takes and what the rollback step is. Then schedule the production rotation with the owner present and the alert tested, so the next rotation follows the same runbook.
How DeployOpen scopes and delivers Temporal mTLS work
DeployOpen plans and implements mTLS for self-hosted Temporal inside your own infrastructure, with internode and frontend encryption configured as separate settings. Each engagement starts from a written scope that names the certificate authority, the services and the rotation process your team will own.
How we scope
- Inventory every Temporal service, worker and client path that needs encrypted internode or frontend traffic
- Confirm which certificate authority issues server, client and worker certificates, and who holds its keys
- Record the serverName values, client certificate requirements and deployment method (Helm, Docker Compose or binaries)
- Agree the written scope, deliverables and timeline before any configuration changes begin
How we build
- Configure internode and frontend TLS separately, with client certificate verification enabled on the frontend
- Set serverName checks so each peer validates the expected certificate identity, not only a trusted chain
- Test connections from every worker, the Web UI and admin tooling, and confirm rejected clients fail closed
- Run the build in a non-production environment first, then repeat the same steps in production under change control
How we hand over
- Deliver the configuration files, certificate layout and step-by-step rotation runbook for your team
- Document expiry dates, renewal owners and alerting thresholds for every certificate in the chain
- Provide a verification checklist your security team can rerun after upgrades or infrastructure changes
- Walk your platform and security engineers through the build and the rotation procedure before closing the engagement
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover
- Re-verify mTLS settings when you upgrade Temporal Server, Helm chart or certificate authority
- Retest certificate rotation and new workers or namespaces as they are added to the cluster
- Scope additional work, such as a Temporal penetration test, as a separate written engagement

