Restricting network exposure of self-hosted Temporal

Keep self-hosted Temporal services, persistence and visibility stores on private networks, expose only what workers need, and place the Web UI behind sign-in and a proxy.

On this page

Why restricting network exposure of self-hosted Temporal comes before anything else

A platform team deploying self-hosted Temporal often has a clear rule that the cluster must not sit on the public internet. That rule matters more than usual here because of the default authorization behavior. If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Until you replace that default with an Authorizer and a ClaimMapper, anyone who can reach the gRPC frontend can start, signal, read and terminate workflows. Network placement is therefore the first control to get right, because it limits who can send requests at all, while mTLS, JWT claim mapping and namespace roles are added on top of it.

Restricting network exposure covers three things. The Temporal services and the persistence database (and any visibility store such as Elasticsearch or OpenSearch) sit on private networks with no route from the internet. Workers, which run your workflow and activity code, reach only the frontend service over a private path, typically in the same VPC, cluster network or peered network. The Web UI is the one human-facing surface, so it is placed behind an identity-aware sign-in and a reverse proxy rather than exposed directly. Teams need this design whenever workflows carry business data, when the deployment runs in a regulated environment, or when more than one team or environment shares the cluster. The Temporal deployment documentation states that Temporal services should run on hosts not reachable from the public internet, with network access restricted to trusted internal networks, and that guidance is the baseline your design should be checked against.

Before you choose a topology, confirm three things with your own environment: which networks your workers and any external callers actually come from, whether your ingress or load balancer can be restricted to those sources, and whether the Web UI must be reachable by staff outside the corporate network. Each answer changes whether you need a VPN, a bastion, or a private ingress with sign-in. Document the decision now, because a later change of exposure is harder to audit than a design that started private.

How the Temporal parts sit across network trust boundaries

The diagram starts with workers and operators, who sit outside the private network and reach Temporal through different doors. Workers connect only to the Temporal frontend, the one service that should be reachable from their side of the boundary. Operators reach the Web UI through an authenticating proxy that enforces sign-in before any request reaches the UI. Inside the network, the frontend hands work to the history, matching and worker services, which read and write the persistence and visibility stores. Check that no arrow from the outside reaches those inner services or the stores directly.

Only the frontend faces worker traffic; the Web UI sits behind sign-in.

Which network exposure pattern fits your deployment

This table compares four ways to place self-hosted Temporal relative to workers, operators and the public internet. Read each row against your worker locations, whether workers run outside your private network, and who needs Web UI access. The main takeaway is that the more of the frontend you expose, the more you must add in authentication, authorization and monitoring.

PatternWhen it fitsWhat it requiresMain trade-off
Fully private cluster with workers inside the same networkAll workers run in the same private network as the Temporal services and database, with no external callersPrivate subnets for services and persistence, internal DNS for the frontend, and no public load balancerLowest exposure, but every worker location must reach the network, which limits multi-site or partner workers
Private frontend reached through a VPN or private linkWorkers or applications in other networks, data centers or cloud accounts need the frontend without public accessVPN or private connectivity between networks, routing and DNS for the frontend address, and firewall rules limited to known sourcesKeeps traffic off the internet, but adds network operations and a shared path that must be monitored and kept current
Reverse proxy or gateway in front of the frontendCallers reach Temporal through a controlled entry point, or you need a single place to enforce TLS, source limits and loggingProxy or gateway with TLS termination or pass-through, client certificate or token handling, and network rules that block direct access to internal servicesCentralizes control, but the proxy becomes a high-value component and must be patched, tested and sized with the Temporal frontend
Web UI behind OIDC sign-in and a proxyOperators and reviewers need the Web UI, which should never be open to the internet or to the whole corporate networkOIDC single sign-on for the Web UI, a proxy that enforces sign-in before the UI loads, and access limited to approved groupsGives person-level access and audit, but depends on the identity provider being available and on group mappings staying accurate

Setting up private networking for Temporal step by step

This sequence moves a self-hosted Temporal Service off the public internet in order: map every caller, isolate the services and database, expose only the frontend that workers and clients need, and put the Web UI behind sign-in and a proxy. Each step ends with a check that confirms nothing answers from outside.

  1. Inventory every service, store and caller

    Before changing any network rule, list each Temporal Server service (frontend, history, matching and worker), the persistence database, the visibility store, the Web UI, and any codec server. For each one, record which workers, application clients, CLI users, administrators and monitoring systems must reach it, and on which port. Keep this list in your architecture records. The step is done when every listed connection has a named owner and a documented source network, and nothing is left as 'any'.

  2. Deploy services and persistence in private subnets

    Using the self-hosted deployment guide for your chosen method (Docker Compose, binaries or the Helm chart), place the Temporal Server services and the persistence and visibility databases in private subnets with no public IP addresses or internet gateway route. Confirm the database platform against the persistence documentation before you size the network. The check is that a scan from an external host returns no open Temporal or database ports, and that the services still start and reach each other internally.

  3. Restrict frontend access to worker and client networks

    Create security group or firewall rules that allow the frontend gRPC port only from the networks where your workers, application clients and CLI operators run. Keep internode traffic inside the service network, and deny the database port to everything except the Temporal services. Ask your platform team to confirm how the chosen load balancer or Kubernetes service type publishes the port. The step is complete when a worker in an approved network connects and a host outside those networks is refused.

  4. Place the Web UI behind sign-in and a proxy

    Publish the Web UI only through an internal reverse proxy or load balancer that is reachable from your corporate network or VPN, not from the public internet. Configure sign-in with OIDC single sign-on as described in the security documentation, so every UI session is tied to an identity. Confirm that the Web UI is not directly reachable on its own port from outside the proxy. The check is an unauthenticated request from outside returning no workflow data, and an authenticated internal request succeeding.

  5. Verify exposure from outside at each boundary

    Run an external port scan and an HTTP check against the public address range, the VPN range and a sample of internal segments that should not have access. Repeat this after each earlier step, not only at the end, so a failed rule is caught where it was introduced. Record the results with the date and the rule set version. The step is done when the only reachable endpoints are the approved frontend paths and the proxied Web UI, and the results match your inventory.

  6. Confirm access control and monitor exposure drift

    Network isolation limits who can connect, but it does not authenticate requests on its own. Before go-live, confirm that the Authorizer and ClaimMapper decisions are configured as planned, since the default authorizer allows every API request. Add alerts for changes to security groups, load balancer listeners and proxy routes, and schedule the external scan to repeat. The step is complete when a change to an exposed port triggers an alert and the scan result is stored with the rule set it tested.

Security and operational risks of exposed Temporal endpoints

A self-hosted Temporal Service exposes several surfaces: the gRPC frontend, the Web UI, the persistence database, the visibility store and internode traffic between services. Each one carries a different risk when it is reachable from networks it should not reach, and the controls that close those gaps overlap.

Unauthenticated frontend API

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. A frontend reachable from the internet therefore lets anyone start, signal, terminate or read workflows in any namespace. Before any exposure, confirm which Authorizer and ClaimMapper are configured and test that an unauthenticated client is refused. Mutual TLS and the ClaimMapper are complementary controls covered on their own sibling pages.

Security docs

Web UI reachable without sign-in

The Web UI shows workflow inputs, results and event history to anyone who can load it. When it sits on a public address without OIDC sign-in or an authenticating proxy in front, that data is open to the internet. Check that the UI listener is bound only to the internal address that operators use, and that sign-in is enforced at the edge before any request reaches Temporal.

Exposed persistence and visibility stores

The database behind Temporal holds all workflow state and history, and the visibility store holds searchable workflow metadata. Either one reachable from outside the Temporal network gives an attacker direct access that bypasses every Temporal control. Confirm that the database and visibility endpoints accept connections only from the Temporal services and their admin hosts, and that credentials for them are not shared with workers.

Internode traffic on shared networks

Temporal services talk to each other over internode connections that carry cluster membership and task traffic. On a flat or shared network, any host in that segment can attempt to join or impersonate a service. Place the history, matching, frontend and worker services on a dedicated segment, restrict internode ports to those services, and confirm that the internode listener is not published through a load balancer or ingress.

Firewall drift over time

A network design that is closed on day one often opens later, when a team adds a debugging rule, a new worker subnet or a load balancer for a new client. Each change may look harmless alone. Keep the allow rules for Temporal ports in version-controlled infrastructure code, review them whenever the topology changes, and run a scheduled external scan to catch ports that should be closed.

Blind spots in access path monitoring

Without logs and alerts on the paths into Temporal, an exposure can persist for a long time unnoticed. Record connection attempts and authorization denials at the load balancer, proxy and database, and alert when traffic arrives from unexpected sources or when the frontend receives requests from networks outside the approved list. Confirm which of these logs your platform retains and for how long before relying on them.

How exposure differs across cloud, data center and air-gapped networks

In a cloud VPC, the usual pattern places Temporal Server services and the persistence database in private subnets with no route to an internet gateway. Workers run in private subnets too, or in other private subnets peered or attached to the same network. A load balancer, if you use one for the frontend, should be internal, so its address resolves only inside the VPC or through a private connection from your corporate network.

  • Private subnets for services and data: Keep the History, Matching, Frontend and Worker services, plus the database and any visibility store, in subnets without public routes.
  • Internal load balancer for the frontend: Use an internal listener so only workers and approved clients can reach the gRPC port.
  • Worker connectivity: Workers reach the frontend over private addresses. Cross-account or cross-region workers need peering, transit routing or private endpoints, each of which needs its own review.
  • Proxy placement: If you front the Web UI or a Temporal Proxy, place it in a dedicated subnet with an authenticated entry point, not in the service subnet.
  • Security groups and flow logs: Restrict inbound rules to named worker and admin sources, and enable flow logs so denied attempts are visible.

Confirm with the cloud platform team which routes, private endpoints and security group rules already exist, and who approves changes to them.

What to confirm in your network before go-live

Network exposure depends on more than firewall rules. The versions you deploy, the ports your clients use, the Web UI access path and the reachability of your data stores all need to match the design before traffic reaches the cluster. Work through these checks with your platform and security teams before go-live.

Chart and server versions match

Confirm that your Helm chart version and server image line up. Helm chart versions below 0.73.1 do not work with server images 1.30 and later, so a mismatch can fail at deploy time or leave services in a state you did not design. Record the chart version, server image tag and SDK versions in your deployment repository so that the network policies you write are tested against the exact release you run.

Deployment docs

Ports required by workers and tooling

List every port that SDK workers, the temporal CLI, the Web UI, and any codec server or CI job must reach on the frontend, and nothing else. Only the frontend service should accept connections from outside the Temporal service network. Internode and monitoring ports should stay on private addresses. Write this list as allow rules, then test that each denied port is actually unreachable from the worker subnet.

Web UI proxy and sign-in support

Confirm how your release supports placing the Web UI behind a reverse proxy and how OIDC single sign-on is configured for it. Check whether the proxy must forward headers, whether the UI path needs a prefix, and which session or token settings apply. Do not expose the Web UI directly on a public address, and test that unauthenticated requests to it are refused before users are onboarded.

Persistence and visibility reachability

Confirm that the database and visibility store accept connections only from Temporal service subnets and that no administrative console or public endpoint points at them. Your persistence choice (Cassandra, PostgreSQL or MySQL) and visibility store (Elasticsearch, OpenSearch or a SQL store) each have their own listener and credential paths. Verify reachability from a worker host as a negative test, since workers should never need direct database access.

Upgrade path fits the release

Confirm that the current release fits your upgrade path before you publish the network design. Temporal Server v1.32.1 was published on October 8, 2026, and patch releases v1.31.4 and v1.30.8 followed on October 12, 2026. Upgrade one minor version at a time, run schema upgrades before server upgrades when release notes call for them, and re-test network rules after each change to ports, proxies or services.

Upgrade guide

Common questions about restricting Temporal network exposure

How much does restricting network exposure of self-hosted Temporal cost?

The cost depends mostly on how much network work already exists and how many environments must change. The main components are the time to map which Temporal services, workers, databases and visibility stores talk to which networks, the design of private subnets and load balancers, firewall or security group changes, and the proxy or sign-in layer for the Web UI. Temporal's own deployment documentation says services should run on hosts not reachable from the public internet, so the work is mostly configuration and review rather than new software. A one-time build is separate from recurring costs such as firewall rule reviews, certificate handling and upgrades. Ask any partner for a quote that lists each environment, each network zone, who owns each firewall change and what is delivered as evidence. For reference, Temporal Cloud pay-as-you-go pricing starts at 50 US dollars per million actions, but that is a managed service price and does not measure the cost of a self-hosted network build.

How long does it take to close Temporal network exposure?

Duration depends on how quickly the network team can approve changes and how many zones and environments need work. The critical path is usually not the Temporal configuration itself but the approvals: subnet design, firewall rule requests, load balancer and DNS changes, and identity provider setup for the Web UI. Teams with current network diagrams and a change process that already handles internal service exposure generally move faster than teams that must document their topology first. Plan for at least one non-production environment to be changed and tested before production, so the rollout can be checked against worker connectivity. Ask for a written timeline that names the dependency on each team and the dates they must respond by. No duration is fixed in this page, so confirm the schedule against your own change calendar.

Can our own platform team restrict Temporal exposure without outside help?

Yes, a capable platform or infrastructure team can do this in-house if it has access to the network and firewall tooling and understands how Temporal services connect. The work involves four parts: placing the frontend, history, matching and worker-facing components on private addresses, allowing workers to reach only the frontend, keeping the persistence database and any visibility store on a private network, and putting the Web UI behind sign-in. Teams often need outside help when the topology is shared across many projects, when the firewall process is slow, or when no one has tested the result from outside the network. A partner can also review the design and produce evidence for an audit. Decide early which parts your team owns and which parts you want reviewed.

What do we need to provide before the network work starts?

The work needs accurate network diagrams, named owners for firewalls and load balancers, and access to the identity provider that will sign users into the Web UI. Useful inputs include the Temporal deployment layout (Helm chart, Docker Compose or binaries), the list of namespaces and the services and worker fleets that connect to them, the persistence and visibility databases in use, and every place traffic enters from outside your network. Identify who approves firewall changes and how long that takes. For the sign-in layer, you need the identity provider's settings, the group or role names you plan to use, and whether single sign-on for the Web UI can be configured with OIDC in your environment. Missing any of these usually adds rounds of review rather than engineering time.

Does moving to Temporal Cloud remove the need to restrict network exposure?

Temporal Cloud changes who operates the Temporal Service, but it does not remove your responsibility for how your workers and applications connect to it. With a self-hosted deployment, you control every listener, firewall rule and proxy. With Temporal Cloud, Temporal Technologies runs the service, and your work shifts to how workers reach it, how identities are granted, and how the connection is secured from your side. Temporal Cloud pricing includes SAML SSO on pay-as-you-go plans, and support tiers add SCIM on higher tiers, which affects identity work but not network placement. Your databases and any Codec Server still run where you host them. Review the Temporal Cloud pages for connectivity and identity options before deciding, and confirm current network options with Temporal directly.

How do we verify that Temporal is no longer reachable from the public internet?

Verify from outside your network, not only from the configuration files. Run scans from an external network against the frontend port, the internode ports, the database and visibility store addresses, and the Web UI, and confirm that each returns no route or is refused at the perimeter. Then test from inside the network that workers in the intended subnets still connect to the frontend, and that unauthorized subnets cannot reach the history, matching or persistence layers. Keep the results as dated evidence and repeat the test after each firewall change and each Temporal upgrade, since a new release or Helm chart change can alter listeners. A penetration test can cover the same ground with an independent view, and its scope should include the gRPC frontend, the Web UI and the misconfigurations testers find most often.

What are the most common reasons the network restriction fails in practice?

The most common failures are services left on public load balancers, a Web UI exposed without sign-in, database ports open to broad subnets, and workers placed in networks that were not included in the firewall plan. Another frequent problem is a Helm or configuration change that opens a listener on all interfaces, which can undo a correct firewall design without anyone noticing. Teams also forget monitoring and admin tools that connect to the cluster from another zone. Document each allowed path, name an owner for it, and check the list again after every upgrade. Treat any path you cannot explain as an open issue to resolve before go-live.

How DeployOpen scopes private Temporal networking work

DeployOpen starts network work with a design session held with your infrastructure and security teams before any service is installed. The output is a written exposure map that lists every Temporal component (frontend, history, matching, worker, internode traffic, the Web UI, any codec server), the persistence database, the visibility store and each client that must reach them. For each path the map records the source network, the destination, the protocol and the owner who approves changes. This is where decisions get made: which subnets host the Temporal services, whether workers run in the same VPC or across a peered network, how on-premises workers reach the frontend, and whether the Web UI sits behind a reverse proxy or a private load balancer. Ask your team to confirm the network ranges, DNS zones and firewall change process early, because those constraints shape the rest of the build.

DeployOpen then builds the design inside your own cloud accounts, data centers or air-gapped network, using your change tooling and your identity provider. Services run on hosts that are not reachable from the public internet, which is the deployment guidance Temporal documents, and the database and visibility store accept connections only from the Temporal service subnets. Only the frontend is opened to worker networks, and only on the ports and source ranges listed in the map. The Web UI is published only behind single sign-on or an authenticating proxy, with the Web UI's own authentication settings reviewed alongside it. Each rule is tested from both the allowed and the denied side, so the reviewer sees that blocked paths stay blocked. Network controls alone do not authenticate callers, so the scope should list the mTLS and Authorizer work that must sit alongside them, and ask whether that work is in the same engagement or a separate one.

Each engagement ends with evidence packaged for security and compliance reviewers: the exposure map, firewall and security group configuration exported from your environment, test results for allowed and denied paths, the list of open decisions with owners, and a runbook for changing an exposure rule. DeployOpen prepares this material so your assessors can check it against their own control requirements. DeployOpen does not issue audit reports, attestations or certifications, and that assessment remains with your independent auditor or certification body. Cost follows the written scope: the number of environments, the database and visibility options, the number of worker networks and whether the Web UI and any codec server are included. Ask for each of these to be listed as separate line items in the quote, and ask which evidence items recur after handover, such as a retest after a Temporal upgrade.

How DeployOpen scopes, delivers and supports this work

DeployOpen plans and implements self-hosted Temporal inside infrastructure you control, so the network design for Temporal services, the database and the Web UI is agreed in writing before anything is changed. The work is documented, tested from outside the trusted network and handed over so your own team can run it.

How we scope

  • Map every Temporal component, including frontend, history, matching, worker and Web UI endpoints, to the network zone it should live in.
  • Inventory the persistence and visibility stores, plus every client, worker and codec server that must reach them.
  • Record which ingress paths are in scope, such as worker access to the frontend and operator access to the Web UI.
  • Agree the scope, deliverables and timeline in writing. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we build

  • Place Temporal services and the database on private subnets with no route from the public internet.
  • Expose only the frontend endpoint that workers need, through a path your network team approves and can monitor.
  • Put the Web UI behind your sign-in provider and a reverse proxy, with access limited to named administrator networks.
  • Verify each rule with reachability tests from outside and inside the trusted network, and record the results.

How we hand over

  • Deliver a network diagram, firewall and security group rule list, and the reasoning behind each allowed path.
  • Document the runbook for adding a worker network, rotating proxy certificates and reviewing exposure changes.
  • Walk your platform, security and operations staff through the design and the test evidence.
  • Provide a retest of the agreed exposure checks so your team can repeat them after upgrades or infrastructure changes.

How we support

  • Review network exposure again when Temporal Server, the Helm chart or proxy versions change, because upgrade notes can alter service ports.
  • Offer ongoing support, upgrades and continuous testing as a retainer that covers the network controls.
  • Keep the security test scope aligned with the agreed design so new exposure is caught before it reaches production.
  • Confirm with your cloud or data center provider which network controls they operate and which ones your team owns.

Sources and further reading

Talk to our team.

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

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