Skip to content

The console in a cluster

The console is a read-only web view of every workspace Turf™ runs: its convergences, each round’s plan, approval point and apply, who approved what, and every resource’s lane as the apply ran. In a cluster it is one more Deployment, turf-ui from the same image as the server and the engine. It reads restate-server’s ingress and nothing else, and it answers only those who show its token. Approvals are given where they always were, by the agent or the CLI.

Three things: a Deployment and a Service, a token Secret, and room on restate-server’s ingress.

containers:
- name: turf-ui
image: ghcr.io/turfbuild/turf-mcp-server:v1.5.0 # the same tag as the server and the engine
command: ["/turf-ui"]
args:
- --addr=0.0.0.0:8873
- --ingress-addr=http://restate.turf.svc:8080
- --scopes=on # must match the engine's
env:
- name: TURF_CONSOLE_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: turf-console-auth
key: token

The whole Deployment, its Service and its NetworkPolicy are in Minimal manifests, with the Secret. restate-server’s ingress must admit the console’s pods: in your own NetworkPolicy for a StatefulSet, or under security.networkPeers.ingress for a RestateCluster.

The console runs no provider and holds no state. Restart it or leave it out, and the engine does not notice. Its pod mounts no ServiceAccount token (automountServiceAccountToken: false).

Off loopback, turf-ui takes a token, TURF_CONSOLE_AUTH_TOKEN, and answers no read without it. A browser gives it once at /login?token=… and keeps a cookie. A program sends it as a bearer header. Only /api/health answers without it.

Terminal window
kubectl port-forward -n turf svc/turf-console 8873
open "http://localhost:8873/login?token=$(cat .secrets/console-token)"

Without the cookie, a read is refused:

Terminal window
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:8873/config.json # 401

Nothing in the cluster can reach the console: its NetworkPolicy admits no ingress. A port-forward goes through the API server and the kubelet straight into the pod, past the network plugin, so it is the one way in, and the token is what its reader then has to show.

Set TURF_CONSOLE_URL (or --console-url) on the server to the address a browser opens the console at; through the port-forward above, http://localhost:8873. Every up, plan, apply, status and open result then carries a console_url, the page for the workspace or round it is about, so an agent’s message about a plan links to that round at its approval point. The links never carry the token. Without TURF_CONSOLE_URL, a server driving an engine of your own returns no links.

A workspace’s Drift tab shows it between runs: the open drift notices, how many objects are swept or uncovered, and whether the sweep keeps to its cycle. A cleared notice names the run whose commit cleared it and links to that round, and the Runs tab shows on a run how many drift notices it cleared.

The tab needs nothing set: the console reads drift from restate-server’s ingress, as it reads everything else. It is read-only here too. A notice’s continuation is text to copy, the console acknowledges nothing, and detection is turned on or off, and its settings changed, with the drift tool. What the tab shows.

Setting On What it does
TURF_CONSOLE_AUTH_TOKEN the console the token every read needs, from the turf-console-auth Secret
--ingress-addr the console restate-server’s ingress, the only backend it talks to
--scopes the console must match the engine’s (on by default)
TURF_CONSOLE_URL the server where a browser opens the console; every result links there

Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.

© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub