temporalui

package
v1.338.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package temporalui serves the upstream Temporal UI under PathPrefix through a read-only reverse proxy scoped to the caller's organization namespace and to the runner-namespace runs of its pipelines.

The embedded UI runs with auth disabled and is reachable only through this proxy, so the proxy is the security boundary:

  • the caller is a Credimi user authenticated by the `pb_auth` cookie the webapp already keeps in sync with the PocketBase auth store;
  • only GET and HEAD reach the UI, so no workflow can be started, signaled, cancelled, terminated or reset from it;
  • API calls must target the caller's organization namespace or, as below, a runner namespace; the namespace list is replaced by the caller's namespace alone;
  • in a runner namespace (runner-<runner record id>) only the pages and API calls of a workflow run the caller's organization owns (runnerworkflows.OwnedBy) are served, plus, when a pipeline run of the caller's organization used that runner (runnerworkflows.UsesRunner), the namespace description, its search attribute schema and the description of Credimi's PipelineTaskQueue, which those pages load.

HTML pages get embedHead, which fits the UI into a Credimi run page: no shell, light theme only, navigation kept on the embedded run.

Index

Constants

View Source
const PathPrefix = "/temporal-ui"

PathPrefix is the public path of the embedded UI; it must match the UI's TEMPORAL_UI_PUBLIC_PATH.

Variables

This section is empty.

Functions

func Caller added in v1.330.0

func Caller(e *core.RequestEvent) (*core.Record, string, error)

Caller returns the authenticated user, read from the request auth or the `pb_auth` cookie, and the namespace of its organization. Other embedded UIs (actionauthorui) use it as their caller check.

func Handler

func Handler(target *url.URL) func(*core.RequestEvent) error

Handler proxies PathPrefix requests to the Temporal UI at target.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL