Running Temporal from binaries or a custom Go build

Teams without Kubernetes, or teams that need a custom Authorizer, can run Temporal Server as Go binaries on VMs or import the server package into their own build. This page covers when each path fits, what you must build and operate, and what to confirm first.

On this page

Running Temporal from binaries or a custom Go build: when teams need it

A platform team should run Temporal from Go binaries or a custom Go build when it cannot or will not run Temporal on Kubernetes, or when it needs server-side code that the stock release does not include, such as a custom Authorizer. The deciding question is usually not whether Temporal can run outside Kubernetes (it can) but whether your organization needs to own the server build, its dependencies and its release cadence. The Temporal Server is licensed under the MIT license according to its GitHub repository, so you may modify and redistribute it, and Temporal Technologies also sells Temporal Cloud as a managed alternative. Self-hosted Temporal can be deployed in four documented ways: Docker Compose, Go binaries, Helm charts that run each server service in its own Kubernetes pods, or importing the server package into a custom Go build.

The custom build path matters most for authorization. If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Temporal's security model provides a ClaimMapper that maps JWT or certificate claims to namespace roles and an Authorizer plugin that enforces those roles, so a team with an access model that the built-in options do not express will write and maintain a Go plugin. That plugin then has to be compiled into the server build, which is the main reason to choose a custom build over the prebuilt binaries. Confirm with your security team which claims, roles and namespace boundaries the Authorizer must enforce before choosing this route, because the plugin becomes part of your security boundary and your upgrade surface.

Which deployment path fits your environment

Temporal Server can run in four shapes, and each one moves a different set of operational duties onto your team. The choice depends on what your platform already runs, who will patch and restart the services, and whether you need changes to the server code itself. Read each card against the infrastructure you already operate.

Docker Compose for small setups

Docker Compose packages the Temporal Server services and a database into one definition that a single host can run. It suits development, proof-of-concept work and small production setups where one team owns the host. Your team owns the host OS, container images, volumes, backups and restarts, and it gives up the pod-level scheduling and rolling restarts that Kubernetes provides. Check that the host is not reachable from the public internet, as the Temporal deployment documentation expects.

Deployment docs

Go binaries on virtual machines

Running compiled Temporal Server binaries under your own service manager on VMs suits organizations without Kubernetes that still want each service as a separate process. Your team writes the systemd units, configuration files, log rotation and rolling upgrade runbook. You also own the schema migration step, which must run before the server upgrade when release notes call for it. Confirm how your change process handles one-minor-version-at-a-time upgrades across every host.

Helm charts on Kubernetes

The official Helm chart runs each Temporal Server service in its own Kubernetes pod, which fits clusters your platform team already operates. Your team owns the cluster, the ingress and network policy, the database connection secrets and the chart version. Pin the chart version carefully, because chart versions below 0.73.1 do not work with server images 1.30 and later. Check that your cluster hardening and backup standards cover Temporal namespaces and databases, not only the pods.

Custom Go build importing the server

Importing the server package into your own Go build lets you add plugins such as a custom Authorizer or ClaimMapper. The default noopAuthorizer allows every API request, so teams with strict access control often need this path, or a supported plugin, before production. You own the fork, the Go toolchain, the rebase work for each upstream release and the security review of your plugin code. Plan this path only when a configuration option cannot meet the requirement, and confirm the plugin interface for your target release.

Configuration options for binaries and custom builds

This table compares the choices that shape a binary or custom Go build of Temporal Server: the build method, persistence and visibility stores, authorization, claim mapping and mTLS. Read each row as a decision with an ownership cost, and treat the development-only options as ones to rule out before production planning starts.

OptionWhen it fitsWhat it adds to ownership
Release binaryTeams that want the published server without changing its code and can run Go binaries on VMs under their own process managerYou own the host build, service units, rolling upgrades one minor version at a time, and config file management
Custom Go build importing the server packageTeams that need a plugin such as a custom Authorizer or must embed server code in their own release pipelineYou own compilation, dependency pinning, security patching of the fork and re-testing each upgrade against your plugin
PostgreSQL persistenceTeams that already run and back up PostgreSQL and want one familiar database for workflow state, within the documented 13 to 16 rangeYou own database high availability, backup and restore testing, and schema upgrades before each server upgrade
Cassandra or MySQL persistenceTeams with an existing Cassandra 3.11, 4.0 or 5.0.4+ cluster, or MySQL 5.7 or 8.0.19+, that must reuse that operational skillYou own cluster sizing, repair or replication practice and version-specific schema steps; confirm the exact tested versions with the Temporal persistence docs
SQLite persistenceLocal development and automated tests onlyNot suitable for production; it adds no durable operating model, so plan a supported store before go-live
Elasticsearch 7 or 8, or OpenSearch 2 or later (from 1.30.1)Advanced visibility at volume or when teams need rich search over executionsYou own a separate search cluster, index lifecycle, capacity and monitoring; Temporal recommends this beyond a few workflow executions
MySQL, PostgreSQL or SQLite visibility (from 1.20)Smaller deployments that want fewer moving parts and reuse the persistence databaseVisibility queries share database capacity with workflow state, so load testing matters before production
noopAuthorizer (default)Only isolated development or test environmentsNo authentication or access control on any API request, so it cannot be used for regulated or shared environments
Custom Authorizer pluginTeams that must enforce their own access decisions on namespace operationsYou own the plugin code, its tests, its failure behavior and its review on every server upgrade
ClaimMapperTeams that map JWT or certificate claims to namespace roles from an existing identity providerYou own claim design, role mapping rules and the process that keeps them aligned with the identity provider
mTLS for internode and frontend trafficAny shared or production deployment that must encrypt and authenticate service traffic separatelyYou own certificate issuance, rotation, trust bundles and separate settings for internode and frontend traffic

How importing the server package changes what you maintain

Importing the Temporal server package into a custom Go build changes who owns the server binary. Your team no longer just runs a published release. It owns a Go module that imports the server package, pins the Temporal versions it depends on, compiles in plugins such as a custom Authorizer, and produces a new binary for every upgrade. The build pipeline becomes part of the production system, so it needs version control, reproducible builds, and a record of which module versions shipped to each environment. Before committing, ask who will rebuild the server when a security fix lands and how long that takes in your change process.

The plugin code carries the heaviest maintenance load. A custom Authorizer runs in the control path of every API request, so a bug in it can block workers, clients, or operators across every namespace. The default noopAuthorizer allows all requests, so any custom authorization logic you add is the only access control in place unless you also configure a ClaimMapper and mTLS. Each new minor release can change the interfaces your plugin depends on, so plan a test suite that runs the plugin against the exact server version you intend to deploy, covering allowed and denied calls for each namespace role. Confirm the interface changes in the release notes for every minor version before you upgrade, and keep the Go toolchain version recorded alongside the module pins.

Upgrades also need an ordering discipline that a custom build makes easier to break. Temporal supports moving one minor version at a time, with schema upgrades run before server upgrades when the release notes call for them. In a custom build, each step means a new module pin, a rebuild, a plugin test pass, and a staged rollout, so plan a rollback path that redeploys the previous binary and confirm with your database team that the schema changes in each target version are compatible with it. The Temporal server upgrade documentation sets the sequence to follow.

Setup sequence for a VM-based or custom build deployment

This sequence takes a team from a chosen Temporal Server minor version to a verified, network-restricted cluster running on virtual machines or a custom Go build. Each step ends with a check that tells the operator whether to continue.

  1. Confirm the target minor version and patch

    The platform owner selects the Temporal Server minor version and checks the GitHub releases page for the latest patch of that line before any host is built. Temporal guarantees backward compatibility only between successive minor versions, so a fresh install should start on a line the team can keep current, and an existing cluster should move one minor version at a time. The check is a written record of the chosen version, its patch number and the release notes that call for schema changes, approved by the owner of the platform.

  2. Provision hosts off the public internet

    The infrastructure team creates the VMs for frontend, history, matching and worker services in private subnets, with inbound access limited to trusted internal networks and load balancers. Temporal's deployment guidance says its services should not be reachable from the public internet, so security groups or firewall rules should be reviewed before software is installed. The check is a scan from outside the trusted network that confirms no Temporal port answers, and a record of which internal sources may reach each port.

  3. Prepare the persistence and visibility stores

    The database team provisions the persistence store and the advanced visibility store on versions that Temporal's persistence and visibility documentation lists as supported. Cassandra, PostgreSQL and MySQL are the supported persistence options, and SQLite is meant only for development and testing. Elasticsearch or OpenSearch is recommended for visibility beyond a few workflow executions. The check is a successful connection from each Temporal host using a dedicated database user with only the privileges the schema tools need.

  4. Build or install the binary or pin the module

    The build engineer either installs the official server binaries for the chosen version or builds a custom binary by importing the server package into a Go module pinned to that same version. Custom builds, such as one that adds a custom Authorizer, must compile against the exact server version and be rebuilt on every upgrade, so the module file and checksums should be stored in version control. The check is that the binary reports the expected version and that the custom module's go.sum matches the reviewed release.

  5. Configure mTLS, Authorizer and ClaimMapper

    The security engineer writes the static configuration file with separate mTLS settings for internode and frontend traffic, and sets the Authorizer and ClaimMapper that map certificate or JWT claims to namespace roles. Without a configured Authorizer, the server falls back to the noopAuthorizer, which allows every API request, so this step must not be skipped on any reachable endpoint. The check is a connection attempt with no client certificate that is refused, and a connection with a valid certificate that is accepted only for the namespace roles the team has approved.

  6. Run schema setup before starting services

    The database operator runs the schema setup tool for the persistence store and, where the release notes require it, the visibility schema upgrade, before any server process starts. Release notes can require schema changes to run before the server upgrade, so the order matters on both new installs and upgrades. The check is a schema version query in the database that matches the release notes for the chosen minor version, recorded in the change log.

  7. Start frontend, history, matching and worker services

    The operator starts the frontend, history, matching and worker services on their assigned hosts, using a process manager such as systemd so they restart predictably. Each service reads the same static configuration and connects to the same persistence and visibility stores, and the history shard count must be set before the first start because it cannot be changed later. The check is that each service's logs show a successful start with no configuration errors, and that the health endpoint for each service responds on the internal network.

  8. Verify with a test namespace

    The platform engineer registers a test namespace with the Temporal CLI using mTLS credentials, starts a simple workflow with a test worker, and confirms that it completes and appears in visibility queries. The test also confirms that a client without an approved certificate is refused and that the expected namespace role applies. The check is a completed test workflow, a visibility result for it, and a written pass record that the cluster is ready for the next stage of configuration.

Where trust is checked between clients, services and stores

The diagram starts with clients and SDK workers outside the private network. Their calls enter through the frontend service over mTLS, and the frontend passes each request to the Authorizer and ClaimMapper before any work reaches the history or matching services. The custom build plugin point is where a team compiles its own Authorizer into the server package. History writes workflow state to the persistence store and indexes executions in the visibility store, while matching queues tasks for polling workers. Confirm that no path skips the Authorizer, because without one the default noopAuthorizer allows every request.

Request path from clients through the frontend to the stores, inside a private network.

Security controls to set before the first namespace

A self-hosted Temporal Service ships with no access control by default, so the controls below have to be decided before any namespace holds real workflows. Together they cover who can call the API, how services and clients authenticate, how people sign in to the Web UI, how payloads are protected, and where the network path is exposed.

Replace the noopAuthorizer

If no Authorizer is configured, Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. On binaries running on VMs, that means any host that can reach the frontend port can start, read and terminate workflows in any namespace. Confirm the Authorizer is set in the static configuration on every frontend host before the first namespace is created, and test that an unauthorized call is refused.

Security docs

Mutual TLS for internode and frontend

Temporal supports mTLS with separate settings for internode traffic between its services and for frontend traffic from clients and workers. Treat them as two configurations: a shared internal certificate authority for service-to-service calls, and client-facing certificates for workers and tooling. Plan certificate issuance, rotation and revocation with your PKI team, and confirm that a restart or reload picks up renewed certificates on your binaries.

ClaimMapper for namespace roles

The ClaimMapper turns JWT claims or certificate attributes into roles on namespaces, such as reader, writer or admin. Decide the mapping before any worker connects, and write it down per namespace. Test each role with a real token: a worker identity should not be able to change namespace settings, and an operator identity should not be able to run workflows it does not own.

OIDC sign-in for the Web UI

The Temporal Web UI can sign in operators through OIDC single sign-on, so access follows your identity provider's groups and offboarding. Keep the UI on an internal address, restrict who can reach it, and confirm that write actions such as terminating or resetting workflows are limited to the roles that need them. Check the Web UI settings against the version you deploy, since configuration keys change between releases.

Payload encryption with codecs

Workflow inputs, results and event history contain your business data unless you encrypt payloads. A custom codec encrypts payloads in the SDK, and a codec server lets the Web UI decode them for authorized users. Decide who holds keys, how they rotate, and which operators may view decoded payloads. Note that the Temporal server stores what the codec produces, so key loss makes history unreadable.

Keep services off the public internet

Temporal's deployment guidance says its services should run on hosts that are not reachable from the public internet, with network access restricted to trusted internal networks. Place frontend, history, matching and worker hosts on private subnets, allow the database and visibility store only from Temporal hosts, and document which networks may reach each port. Verify with an external scan after every firewall or load balancer change.

Keeping a binary deployment upgradable

The documented rule for a binary deployment is to move one minor version at a time, and to land on the latest patch of the current minor before stepping to the next. Temporal guarantees backward compatibility only between two successive minor versions, so skipping a minor line removes that guarantee and makes rollback reasoning harder. Current references at the time of writing are v1.32.1 on the minor line, with patch releases v1.31.4 and v1.30.8 for earlier lines. Confirm the target against the Temporal GitHub releases page before planning, since the newest patch may have changed by the time you read this.

Each step has a fixed order. When the release notes call for it, run the schema upgrades against the persistence database before you replace any server binary, so the new code never meets an old schema. Then roll the binaries for each service in a controlled sequence, and check the service health and logs before moving on. Keep the upgrade procedure in a runbook that names the schema version, the binary checksum and the rollback point for each step. Follow the Temporal server upgrade guide for the exact commands, and treat its steps as the source of truth for your build.

If you import the server package into a custom Go build, every target version also means rebuilding your plugins, such as a custom Authorizer or ClaimMapper, against that version's interfaces and running your own tests on the result. Pin the Temporal module version in go.mod, record the Go toolchain used, and keep the build reproducible so you can rebuild the same artifact later. Ask your engineers to confirm which internal interfaces changed between your current and target minor versions, because a plugin that compiles can still behave differently. Budget the upgrade as a recurring activity, not a one-time project.

Limits to confirm in your environment

Running Temporal from binaries or a custom Go build moves compatibility, packaging and plugin decisions onto your team. The cards below list the limits to verify against the target release and your own environment before the first build or production host is provisioned.

Persistence and visibility versions

Confirm that the database and visibility store versions you plan to run are on the target release's supported list before you provision anything. Temporal's persistence testing covers specific Cassandra, PostgreSQL and MySQL versions, and visibility support depends on both the store and the server minor line. Check the exact matrix for your target release, including whether your Elasticsearch or OpenSearch version is covered, and record the result as a gate in your design review. SQLite is for development and testing only.

Persistence docs

Minor-by-minor upgrade path

Confirm that your build pipeline and runbook can move Temporal Server one minor version at a time. Backward compatibility is only guaranteed between successive minor versions, so a jump across several minors is not a supported shortcut. Confirm who applies schema upgrades before server upgrades when release notes require them, and whether your change process allows that ordering on every host.

Upgrade guide

Helm chart rules if Kubernetes follows

If you expect to move this service to Kubernetes later, confirm which Helm chart versions your target server images require. The chart documentation states that chart versions below 0.73.1 do not work with server images 1.30 and later. Decide whether the binary deployment and the future chart share the same version pin, config files and persistence settings, so a later migration does not force a rewrite of configuration.

Ownership of plugin testing

Confirm who writes, reviews and tests any custom Authorizer or other plugin compiled into your server build. A plugin sits on the request path for every API call, so a defect can block all namespaces or leave them open. Name an owner for unit and integration tests, for regression runs against each new minor release, and for the decision to rebuild when upstream interfaces change. Without a named owner, plugin code tends to drift from the server it was written for.

Reproducible binary builds

Confirm that your pipeline can rebuild the same server binary from a tagged source revision and a pinned Go toolchain. You need this to answer which code runs in production, to roll back to a known build, and to apply a patch release quickly. Check that dependency versions are locked, build artifacts are signed or checksummed, and the same artifact moves through test and production. A custom build that cannot be rebuilt identically is hard to audit and hard to recover.

Default authorization before go-live

Confirm that your custom build replaces the default noopAuthorizer, which allows every API request without authentication or access control, before any host accepts traffic. Verify the configured Authorizer and ClaimMapper in a staging environment with a denied request and an allowed request for each role. Check that your network placement keeps the services off the public internet, as the deployment documentation recommends for hosts with trusted internal access only.

Security docs

Questions teams ask before running Temporal from binaries

Can a team run Temporal without Kubernetes?

Yes. Temporal documents several self-hosted options, including Docker Compose, Go binaries and importing the server package into a custom Go build, and Kubernetes via Helm is only one of them. Binaries suit teams that run on virtual machines or have no Kubernetes platform to operate. You take on the process supervision, service placement, rolling restarts and host patching that a Helm chart would otherwise handle, so confirm that your operations team already runs comparable services this way. Keep the Temporal services on hosts that are not reachable from the public internet, with network access limited to trusted internal networks.

What drives the effort of a binary deployment?

Four factors account for most of the work: the persistence and visibility stores you choose, the security setup, any plugin code, and how often you upgrade. Persistence is tested on Cassandra, PostgreSQL and MySQL, and SQLite is for development and testing only. Visibility options are Elasticsearch, OpenSearch, MySQL, PostgreSQL and SQLite, and Elasticsearch or OpenSearch is recommended beyond a few workflow executions. Security needs explicit configuration because the default noopAuthorizer allows every API request. Ask any partner to size each factor against your environment in a written scope before agreeing on cost or schedule.

What skills does the team need for a custom Go build?

The team needs working Go skills to build and maintain the server package in a custom binary, plus the ability to read and merge upstream changes. Database operations skills matter as much: backups, failover, schema migrations and capacity planning for your chosen store. Network design is also required for mTLS between internode and frontend traffic, certificate rotation, and load balancer or DNS placement. Teams that only deploy published binaries need fewer Go skills but still need the database and network work. Confirm these skills with your engineering leads before deciding whether to build internally or bring in a partner.

Is a custom Authorizer worth it compared with ClaimMapper configuration?

Often not at first. Temporal's self-hosted security model includes a ClaimMapper that maps JWT or certificate claims to namespace roles, and this covers many access models without writing code. A custom Authorizer plugin is worth the effort when your policy needs decisions that claims cannot express, such as checks against an external entitlement service, per-operation rules, or audit logic your compliance team has specified. Each custom Authorizer is code you must test, version, patch and re-verify after every server upgrade, so start with ClaimMapper and document why it falls short before writing a plugin.

How do upgrades recur, and how often do they happen?

Upgrades recur as an ongoing cost, not a one-time task. Temporal recommends upgrading one minor version at a time and moving to the latest patch of the current minor first, because backward compatibility is guaranteed only between two successive minor versions. Schema upgrades must run before server upgrades when release notes call for them. Recent releases include v1.32.1 and patch releases for earlier minor lines, so your team needs a standing process to track the GitHub releases, test each step in a non-production environment and keep rollback steps ready. Also check that your Helm chart version is compatible if you run charts elsewhere, since versions below 0.73.1 do not work with server images 1.30 and later.

When should a team choose Temporal Cloud instead?

Choose Temporal Cloud when your team would rather buy the operated service than run stores, upgrades and availability yourself, and when the data and network terms fit your regulatory position. Temporal Cloud pay-as-you-go pricing starts at 50 US dollars per million actions, with active storage at 0.042 dollars per GB-hour and retained storage at 0.00105 dollars per GB-hour, according to the Temporal pricing page. It offers a 99.9% SLA, or 99.99% with high availability, and SAML SSO. Support add-ons begin with Business at 500 US dollars per month, per the same page. Self-hosting remains the better fit when data must stay in infrastructure you control, so compare the full cost of your own operations against these published starting points, and confirm current terms directly with Temporal.

Is the Temporal server free to run in production?

The Temporal server is licensed under the MIT license according to its GitHub repository, so the software itself carries no license fee for self-hosting. Your costs are the infrastructure, the databases and visibility stores, the staff who operate them, and any external support or services you buy. Read the license file in the repository and confirm with your legal team how it applies to any modifications you make in a custom build. Ask any partner to separate software licensing from implementation, hosting and support charges in a quote.

How DeployOpen scopes and delivers a binary or custom build deployment

DeployOpen plans and delivers self-hosted Temporal Server deployments on VMs or in a custom Go build inside your own infrastructure, including the server package import and any Authorizer plugin. Each engagement starts from a written scope that sets out the hosts, persistence and visibility stores, security settings and handover material before any build work begins.

How we scope

  • Written scope lists whether Temporal Server runs as release binaries on VMs or as a custom build importing the server package.
  • We confirm the persistence store and visibility store choices against the versions your team plans to run.
  • Scope records any custom Authorizer, ClaimMapper or plugin logic and who owns its maintenance after handover.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We deploy Temporal Server services on hosts not reachable from the public internet, with network access limited to trusted internal networks.
  • Custom builds are compiled and version-pinned so the server package import, plugins and dependencies are reproducible.
  • Static configuration, TLS, mTLS between services and the noopAuthorizer replacement are set and tested before go-live.
  • Schema upgrades are run ahead of server upgrades, following the release notes for each target version.

How we hand over

  • Handover includes build and deployment runbooks, configuration files and a record of every setting that differs from defaults.
  • Upgrade procedure covers moving one minor version at a time, starting from the latest patch of the current minor.
  • Custom plugin code comes with tests, build instructions and notes on how to rebase it onto a new server release.
  • Your team receives documented checks for security settings so compliance and security reviewers can verify the deployment.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainer work can cover patch and minor upgrades, custom build rebases and review of server release notes.
  • Ask any provider to confirm how they will rebuild and retest a custom binary when a new server release ships.

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.