Penetration testing a self-hosted Temporal deployment

A scoped security test of self-hosted Temporal checks the gRPC frontend, Web UI, codec server, worker credentials and namespace permissions, and it finds the defaults that most often leave a cluster open.

On this page

Why penetration testing a self-hosted Temporal deployment matters

If your team runs Temporal in infrastructure you control, you need evidence that the frontend, the Web UI and worker access are actually restricted, not just configured in a design document. A penetration test of this deployment examines whether an unauthenticated or under-privileged caller can reach the gRPC frontend, open the Web UI, start or signal workflows, read event histories, or act on namespaces they should not touch. It also checks the worker side: which credentials workers hold, what those credentials permit, and whether they can be reused across environments.

The most important default to test is the authorization layer. When no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. A tester should therefore first confirm that a ClaimMapper and an Authorizer are in place and that they reject calls without valid claims. The same pass should check whether mTLS is enforced on the frontend and internode traffic, whether the Web UI requires sign-in, and whether the services sit on private networks as the deployment guidance expects. Each default that remains untouched is a finding, and the test should record it with evidence.

A penetration test is a point-in-time check of the controls that were in scope on the day it ran. It does not replace an audit report, an attestation, or a certification, which independent auditors and certification bodies issue against a defined control set. It also does not verify your upgrade process, your key rotation schedule or your backup and recovery procedures unless those were explicitly scoped. Ask the tester to state in writing what was tested, against which version, and which configuration was in place, so the results can be reused as one input to your broader compliance evidence.

How the test maps trust boundaries in a Temporal deployment

The diagram starts at the tester, who reaches the Temporal frontend from the internal network with credentials the Authorizer must check. Workers and the Web UI are the two other callers, and the codec server sits beside the UI to decode payloads for operators. Internode traffic and the persistence and visibility stores sit behind the frontend in the data network. For each arrow, check which identity is presented and whether the receiving service enforces it, since self-hosted Temporal allows every request unless an Authorizer is configured.

Trust boundaries and the credentials presented at each hand-off.

What testers check in each component

A self-hosted Temporal deployment exposes several surfaces, and each one fails in its own way. The cards below list what a tester should confirm for each component, so the scope agreed before testing names the checks rather than the product alone.

gRPC frontend and transport encryption

The gRPC frontend is the API that workers, clients and the CLI call, so it is the first surface to test. Confirm whether internode and frontend traffic are encrypted with mTLS, whether clients must present certificates, and whether server name checks are enforced. Test whether a plaintext connection or an untrusted certificate is accepted, and whether the frontend is reachable from networks it should not reach. Check how certificates are rotated and what happens when one expires.

Security docs

API authorization through the Authorizer

If no Authorizer is configured, the default noopAuthorizer allows every API request with no authentication or access control. The first test is to confirm that a custom Authorizer and ClaimMapper are in place and that an unauthenticated call is refused. Then test each role: a worker credential should not be able to start, reset or terminate workflows, and a client credential should not reach namespaces it does not own. Record every request that succeeds and compare it with the role design.

Web UI and OIDC sign-in

The Web UI gives operators read and write access to workflow histories, so it needs the same scrutiny as the API. Confirm that OIDC single sign-on is enforced before any page loads, that sessions expire, and that the UI is not reachable directly from the public internet. Test whether a user without a role can view or act on workflows through the UI, and whether the UI's own backend accepts requests that bypass sign-in. Check that administrative actions are logged with the user identity.

Codec server and its access controls

A codec server decrypts payloads so operators can read them in the Web UI and CLI, which makes it a high-value target. Test who can reach the codec endpoint, whether it requires authentication, and whether its CORS policy allows only the Web UI origin. Confirm that the decryption keys stay in the hosting environment and are not returned to callers. Check that access is logged and that a user without decryption rights cannot retrieve plaintext through any path.

Worker credentials and namespace scoping

Workers hold credentials that let them poll task queues, so a leaked worker certificate or token is a practical path into a namespace. Test whether each worker identity is limited to the namespaces and task queues it needs, and whether one team's credential can poll another team's queue. Check how credentials are issued, stored in worker images or configuration, and revoked when a worker is retired. Confirm that namespaces are used as the boundary the Authorizer enforces, not only as a naming convention.

Persistence and visibility exposure

The database and visibility store hold workflow histories, search attributes and any payloads that were not encrypted. Confirm that the persistence database and the Elasticsearch, OpenSearch or SQL visibility store are on private networks and accept connections only from Temporal services. Test whether database credentials are shared, stored in plain configuration, or readable from a service pod. Check whether sensitive values reached search attributes or failure messages that the visibility store indexes in plaintext.

Scope options and when each fits

This table compares four ways to scope a test of a self-hosted Temporal deployment, from outside-in to combined. Read each row as a trade-off: what the test can prove, what it cannot see, and who must be in the room. The main takeaway is that an external-only test rarely shows whether the default authorization or unencrypted internode traffic is in place.

Scope levelWhat it revealsWhat it missesWho should be involved
External onlyWhether the frontend gRPC port or Web UI answers from outside the network, and how TLS and sign-in behave at the edgeAuthorization gaps behind an allowed path, internode traffic, database exposure and worker-side secretsNetwork security team, the test lead and the owner of perimeter firewall rules
Internal from a worker network positionWhether a compromised or unauthorized worker can call the frontend, reach namespaces it should not, and act with another team's credentialsConfiguration intent, codec key handling and deployment-time settings not visible on the wirePlatform engineering, the owner of worker credentials and the network team that sets segment rules
Grey-box with configuration and deployment filesStatic settings such as Authorizer and ClaimMapper choices, mTLS flags, persistence and visibility credentials, and Helm values or Compose files that expose portsRuntime behavior of live roles and any drift between the repository and the running clusterPlatform engineers who own the Helm values, a security engineer and someone who can explain the change history
Combined test with codec server and Web UIWhether operators can read decrypted payloads through the codec server, whether Web UI sign-in and CORS hold, and whether role separation survives end to endLong-term monitoring, access logs over time and resilience under load unless those are scoped separatelyApplication owners who run workflows, the codec server owner, identity team for SSO and the security lead who signs off findings

How to scope the test before it starts

This sequence turns a vague request to test Temporal into a written scope with known versions, named accounts, agreed rules and a recovery plan, so testing finds real weaknesses without disrupting workflows.

  1. Inventory the deployment method

    Record how the Temporal Service is deployed: Docker Compose, Go binaries, a Helm chart running the server services in Kubernetes pods, or a custom Go build that imports the server package. List every host, pod, load balancer and ingress that exposes the frontend, the internode traffic, the Web UI and any codec server. The owner is the platform team, and the step is done when the team can draw the network path from a worker to the persistence store. Testers cannot scope what the client has not mapped.

  2. Confirm server and chart versions

    Record the exact Temporal Server version, the Helm chart version if one is used, and the persistence and visibility backends with their versions. Check these against the release and deployment facts for the planned test, including that Helm chart versions below 0.73.1 do not work with server images 1.30 and later. Note whether the deployment has an upgrade pending, since the upgrade guidance asks for one minor version at a time. The check is a version sheet signed off by the platform owner.

  3. List namespaces, roles and authorizer settings

    Export the namespace list and record which Authorizer and ClaimMapper are configured, or whether the default noopAuthorizer is still in place, which allows every API request. For each namespace, list the roles, the identity provider groups or certificate subjects mapped to them, and the services that use them. The check is a role matrix that the tester can read without asking the team to explain it during the engagement.

  4. Define test accounts and environments

    Agree which environments may be tested, normally a dedicated staging deployment that mirrors production configuration, and create test identities for each role in the matrix. Each test identity should be separate from real workers and operators, and its credentials should be stored in the client's secrets manager. Confirm which Web UI users, codec server access and worker credentials the testers will hold. The check is a list of accounts, their roles, and the environment each one can reach.

  5. Agree rules of engagement

    Write down the permitted targets, testing windows, source addresses, prohibited actions such as denial-of-service against the frontend or deleting production namespaces, and the escalation path if testing causes a fault. Include whether testers may start or terminate workflows, read payloads, or attempt to bypass the codec server. Both the client security lead and the DeployOpen engagement lead sign the document. The check is a signed rules sheet attached to the scope.

  6. Confirm backup and rollback for disruptive tests

    For any test that could disrupt workers, such as load, fuzzing against the frontend or namespace permission changes, confirm that the persistence store has a tested backup and that the team knows how to restore the Temporal Service configuration. Identify the worker deployment that will be paused or redirected and who can roll it back. Confirm the persistence backend's own backup process, since Temporal state lives there. The check is a written rollback procedure that the platform owner has rehearsed or reviewed.

  7. Freeze the scope and baseline

    Combine the inventory, version sheet, role matrix, accounts and rules into one written scope that lists in-scope components, excluded components and the test cases planned for the frontend, Web UI, codec server and namespace permissions. Capture a baseline of current configuration, such as TLS settings and Web UI access controls, so findings can be compared later. The check is a scope document approved in writing before any test traffic is sent.

Misconfigurations testers find most often in Temporal

Is it a problem if the noopAuthorizer is still active in Temporal?

Yes. If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Anyone who can reach the frontend can start, signal, read and terminate workflows in any namespace. The verification step is to review the static server configuration for an authorizer and claim mapper setting, then send an unauthenticated request from a network position that should be denied and confirm it is rejected. Testers also check whether the Web UI and admin tooling inherit the same open access. Record the result with the exact configuration file and version used, so the fix can be retested against the same baseline.

Why should the Temporal frontend never be reachable from the public internet?

The frontend is the gRPC endpoint that workers, clients and the Web UI call, so exposing it widens the set of people who can attempt to use the API. 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. Testers check this from outside the trusted network, scanning the public addresses, load balancers, ingress rules and DNS records that resolve to the frontend port. They also confirm that workers reach the frontend over a private path. Ask your team to produce the firewall rules, security group entries and ingress definitions so the reviewer can compare them with what is actually reachable.

What should I check if the Temporal Web UI has no sign-in?

An unauthenticated Web UI lets anyone who reaches it browse workflow histories, inputs and results, and in some setups run administrative actions. Testers look for the Web UI being served on a public address, a login page that is missing or bypassed, and OIDC single sign-on that is configured but not enforced. The verification step is to open the Web UI from an unauthenticated browser session and attempt to load a workflow list and a workflow detail page. Confirm that the sign-in provider is required, that sessions expire, and that the same access rules apply as for the API. Also check whether the Web UI is placed behind a reverse proxy with its own authentication, since that layer must be reviewed as well.

How do I test a Temporal codec server for missing authentication?

A codec server decrypts payloads so operators can read them in the Web UI and CLI, which makes it a high-value target. Testers send requests to the codec endpoint without credentials and check whether it returns decoded payloads. They also test cross-origin requests, since permissive CORS settings can let a malicious site reach an authenticated operator's session. The verification steps are to confirm that the endpoint requires authentication, that the allowed origins list contains only the Web UI origin, that decryption keys are loaded from your environment rather than stored in the image, and that access is logged. Ask for the codec server's configuration, the key loading method and the access log sample, and confirm the expected behavior with the vendor's codec server documentation for the version you run.

Why are over-broad worker credentials a common Temporal finding?

Workers often share one credential, or a credential granted access to every namespace, because it is the simplest way to get workers running. A worker that only processes one task queue in one namespace should not be able to start or terminate workflows in production namespaces. Testers obtain a worker credential, then attempt operations outside its intended namespace and role, such as listing workflows, signaling executions or changing schedules. The verification step is to map each worker identity to the namespace roles it needs, then test that every other namespace and operation is denied. Ask the implementation team which claims or certificate subjects map to which roles, and whether those mappings are tested for each role before release.

Does an outdated or unpinned Temporal Helm chart create security risk?

It can. Temporal's deployment documentation states that Helm chart versions below 0.73.1 do not work with server images 1.30 and later, so a chart pinned to an old version or left floating can produce a mismatched or unsupported deployment. Testers check the deployed chart version and the server image tags, and compare them with the server release they are meant to run. Unpinned images or charts make it hard to know which fixes are present. The verification step is to read the release metadata in the cluster, confirm that the server image tag matches the planned minor version, and confirm that the upgrade followed the one minor version at a time guidance. Record the chart version, image digests and upgrade history as evidence.

What goes wrong with unencrypted or unscoped Temporal visibility data?

Visibility stores hold search attributes and execution metadata, and they are often copied to a separate database or search cluster with weaker controls than the primary persistence layer. If the visibility connection is unencrypted, or the visibility store is reachable by more services than need it, workflow metadata can be read or altered outside Temporal's access model. Testers check whether the connection to Elasticsearch, OpenSearch, PostgreSQL or MySQL uses encryption in transit, whether credentials are scoped to visibility only, and whether search attributes contain personal data or secrets. Ask for the visibility store version, its network path, its access list and the search attribute inventory, then confirm each item against your data classification.

What a Temporal penetration test delivers

A Temporal penetration test should end in a findings report that a security lead can act on without a follow-up call. Each finding should state its severity, the affected component (for example the gRPC frontend, the Web UI, the codec server, a worker credential or a namespace permission), exact reproduction steps, the evidence captured, a recommended fix and the configuration key or control it relates to. Ask the provider to show a sample report before signing, and confirm how severity is rated, since a finding such as an unauthenticated frontend reachable from an untrusted network should be scored against your own exposure, not a generic rating.

Ask for the terms in writing before work starts. The statement of work should name the in-scope endpoints and hosts, the namespaces and roles that testers may use, the test accounts or certificates they will be issued, the testing window, the rules for data handling (including whether testers may read workflow payloads or decrypt them with keys you hold), and who receives the report. Also confirm that a retest after remediation is included, how many retest rounds are covered, and whether the provider will verify the fixed settings directly, such as the Authorizer and ClaimMapper configuration or mTLS settings on the frontend. Confirm these items with the provider rather than assuming them.

Treat the report as evidence for your security program, not as an audit result. A penetration test shows what testers could reach on the day they tested, within the scope agreed. It does not issue an attestation, does not certify the platform and does not replace an assessment by an independent auditor or certification body where a framework requires one. Keep the report, the retest results and the change records together, and plan to repeat the test after material changes such as a Temporal Server upgrade, a Helm chart change or a new namespace or identity provider.

Who should run the test and what they need from you

Security leads own the decision to test, the scope and the rules of engagement. The tester needs a written statement of which components are in bounds, which are out, who can approve testing against production, and what happens if a critical finding appears during the test. Without those answers, the tester either stops early or works around controls that the client expects to keep.

  • Scope statement: Name the frontend endpoints, the Web UI, the codec server, the worker identities and the namespaces that are in scope, and state whether the persistence and visibility stores are included.
  • Rules of engagement: Set the test windows, permitted techniques (such as credential guessing or denial-of-service checks), and the contact path for stopping the test.
  • Environment choice: Decide whether testing runs against a staging copy that mirrors production configuration or against production itself, and record the reason.
  • Escalation and disclosure: Agree how critical findings are reported before the final report, and who receives them.
  • Retest terms: Confirm whether a retest of fixes is part of the agreed work and when it happens.

Check that the scope document names the exact components and versions under test, and that the people who can stop the engagement are reachable during the test window.

Questions buyers ask before hiring outside help

What drives the cost of a Temporal penetration test?

The biggest driver is how much of the Temporal footprint is in scope: the gRPC frontend, the Web UI, a codec server, worker credentials, namespace permissions and any surrounding services such as the persistence database or visibility store. Each added surface means more test cases, more environment access and more retesting. Cost also rises with the number of namespaces, the number of roles in the Authorizer model and whether the test covers production or a staging copy. Ask for a written scope that lists each component, the environments, the test window and whether a retest of fixes is included. A quote should separate the initial test, the report and any retest, so you can see what recurs and what is one-time.

How long does a penetration test of self-hosted Temporal take?

Duration depends on the same variables as scope: the number of components, how many namespaces and roles need permission testing, how complete the test environment is, and how quickly access and credentials are provided. A deployment that uses the default no-op Authorizer needs less permission mapping work, but it still needs verification that every API path is exposed or blocked as intended. Delays most often come from waiting for test accounts, network paths and agreed rules of engagement, not from the testing itself. Ask the provider to state the phases, the dependencies on your team and the point at which findings are reported, then confirm the timeline in the written scope.

What does the internal team need to provide for the test?

The test needs a stable environment that matches production closely enough to be meaningful, plus the access that makes the target testable. Typical inputs are:

  • A dedicated test deployment with the same Temporal version, persistence backend and TLS settings as production
  • Test identities for each namespace role, including worker credentials and Web UI accounts
  • Network routes or allow-listing from the tester's position, and a named contact for incidents
  • Architecture diagrams, the Helm values or Compose files, and the current Authorizer and ClaimMapper configuration
  • A rules of engagement document that states what may be changed, what must not be touched and when testing runs

Confirm these items with the provider before work starts so no phase waits on them.

Can our internal team run a Temporal penetration test alone?

Your team can test its own deployment, but the result depends on the skills and independence available. Testing the frontend for unauthenticated access, checking mTLS enforcement, reviewing namespace role boundaries and assessing codec server exposure each require knowledge of Temporal's security model and of how attackers chain weaknesses across services. Self-testing also has a limit: the people who built the configuration often miss the same assumptions that an outside tester would question. Many teams run internal checks continuously and bring in an external test for an independent view. Decide which parts you can cover with confidence, and document the gaps before choosing the approach.

Does the penetration test cover the codec server and Web UI?

It should, and the scope must say so explicitly. The Web UI is a common entry point because it is often exposed for operators and may be protected by OIDC sign-in, so the test should check the sign-in flow, session handling, the role mapping behind each account and whether the UI can reach APIs it should not. A codec server decrypts payloads for operators, so the test should check its authentication, CORS configuration, access logging and whether it is reachable from places it should not be. Confirm in the written scope which hosts, paths, roles and environments are included, and whether the codec server is tested with real key material or a test key.

What should we ask for in a written quote for this test?

Ask for a scope that names each in-scope component, its version and the environment, along with the test approach and any excluded areas. The quote should list the phases, the deliverables (a findings report with severity, reproduction steps and fixes, plus a retest if included), the internal dependencies and the assumptions behind the effort. Request the test accounts and rules of engagement as attachments, and confirm how sensitive data found during testing will be handled. Compare quotes against the same scope, not against a headline price, because a narrower scope with the same label can cost less and cover far less.

Limits to confirm in your environment before testing

A Temporal security test is only as accurate as the picture of the deployment behind it. The cards below list the facts to pin down before any tester sends a request, because each one changes which findings are possible and which tests are safe to run.

Exact server and chart versions

Record the Temporal Server version, the image tags for each service, and the Helm chart version in use. Helm chart versions below 0.73.1 do not work with server images 1.30 and later, so a mismatch can signal an unsupported or partially upgraded stack. Compare the running images with the latest patch of the current minor line, and confirm the team follows the one-minor-at-a-time upgrade path before the test window opens.

Upgrade docs

Authorizer and ClaimMapper status

Confirm whether an Authorizer and ClaimMapper are configured on the frontend. If neither is set, Temporal falls back to the default noopAuthorizer, which allows every API request with no authentication or access control. That outcome is itself a critical finding, so the test plan must cover it explicitly, and the team should state in writing which role mappings are expected before testers start checking them.

Persistence and visibility stores

List the databases behind the cluster, including the persistence store and the advanced visibility store, with their versions and hosting. Persistence is tested on specific Cassandra, PostgreSQL and MySQL versions, and SQLite is meant only for development and testing. Confirm whether the stores are reachable only from Temporal services, because a database exposed to other networks becomes a separate in-scope target.

Temporal Cloud use by namespace

Determine whether any namespace runs on Temporal Cloud rather than the self-hosted cluster. Cloud namespaces are governed by the provider's controls and terms, so they may be excluded from the test or handled under a separate arrangement. Map every namespace to its hosting model, owner and identity source before deciding which namespaces, credentials and endpoints belong in scope.

Testing against production

Decide in writing whether testing may touch production namespaces, workers or data. Tests that create workflows, send signals, reset executions or read payloads can affect running business processes and stored history. Agree on test namespaces that mirror production authorization, on rate limits for the testers, and on who can halt the test if a workflow or worker degrades.

Hosting and provider rules

Check the rules that apply to the infrastructure and the people involved. Cloud provider and data center terms can restrict penetration testing, require advance notice, or set limits on traffic patterns. Confirm which networks, accounts and regions are covered, and obtain written authorization from the owners of each system that the test will reach, including any third-party hosts.

Keeping the test safe for production workflows

Testing traffic can change the state of live workflows, workers and persistence, so the test plan must treat production as off limits for anything that writes. A penetration test of a self-hosted Temporal deployment sends real API calls to the frontend. Some of those calls are reads, but others start, signal, reset, terminate or cancel workflow executions, and a tester who finds a permissive role may run them against workflows that customers or finance processes depend on. Load-style probing can also raise frontend latency, fill task queues, or push history and visibility stores harder than normal. Before any test starts, the team should list which operations the tester may perform, which namespaces they touch, and which operations are excluded entirely.

The safest default is a non-production namespace on a separate deployment that mirrors the production Authorizer and ClaimMapper configuration, with the same persistence and visibility backends in their own databases. Test identities should be scoped to that namespace only, and the test should confirm that a credential issued for the test cannot reach production namespaces. Where a finding must be verified against production settings, such as a role mapping or a TLS setting, confirm it with configuration review or a read-only check first. Ask the testing provider how it will record which namespaces and operations it used, so the evidence matches the scope agreed in writing.

If any testing must touch production, use a staged window agreed with the service owners, with a named contact who can pause the test and roll back test-created credentials. Limit the rate of test traffic and keep it away from worker task queues that serve live workflows. Watch frontend latency, persistence health and worker backlogs during the window, and stop the test if they degrade. Confirm with your own operations team which alerts and dashboards they will watch, and whether the test traffic should be tagged so it can be separated in logs and metrics afterward.

How DeployOpen scopes, tests and retests Temporal deployments

DeployOpen plans a penetration test of your self-hosted Temporal deployment around the systems you run: the frontend, Web UI, codec server, worker credentials and namespace permissions. Testing runs inside your infrastructure, and the written scope sets what is tested, how, and what you receive at the end.

How we scope

  • Inventory the Temporal services, frontend exposure, Web UI access path and any codec server before testing starts
  • Confirm whether an Authorizer and ClaimMapper are configured, or whether the default allow-all behavior is still active
  • Agree which namespaces, worker identities and test accounts are in scope, and which production data is off limits
  • Record test windows, rules of engagement and escalation contacts in the written scope before work begins

How we build

  • Test the gRPC frontend for unauthenticated access, mTLS enforcement and exposure from networks that should not reach it
  • Review namespace roles by attempting cross-namespace reads, starts and signals with each test identity
  • Check whether the Web UI sits behind sign-in and whether the codec server authenticates callers and logs access
  • Verify that workers, persistence and visibility stores are reachable only from the networks your design allows

How we hand over

  • Deliver a findings report with severity, reproduction steps, affected components and the evidence collected
  • Provide specific remediation for each finding, such as Authorizer rules, network policy or certificate settings
  • Document the scope, accounts used, test dates and any items that could not be tested, for your own records
  • Retest agreed findings after fixes are applied and report which issues are closed and which remain open

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial test
  • Retests of Temporal upgrades or configuration changes can be scoped separately, based on what changed
  • Ask for the written scope, the list of tested components and the retest terms in your quote

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.