Piceli web application

The optional piceli[ui] package serves an experimental bundled React application. It does not need Node at runtime and does not read an ambient kubeconfig or context. The UI runs in one of three modes: a local, single-user process with an explicit target; the composition UI that piceli cluster init installs in the cluster and you open through a port-forward; or an OIDC-authenticated service installed inside a Kubernetes cluster. Each mode offers only the actions configured by its operator.

Open the current UX with one command

From the Piceli checkout:

make ui

From the parent workspace, the same command is make -C repos/piceli ui. With uv, Node.js and npm installed, it prepares the locked frontend dependencies, builds the current application, starts a disposable preview at http://127.0.0.1:4178 and opens your browser. No cluster, profile or credentials need configuring. The preview uses sample state from the existing contributor fixture; it serves the production frontend. Keep the terminal running and press Ctrl+C when finished.

You can bookmark the preview, open it in another browser or reload any page. The disposable preview handles its browser session automatically; there is no token to copy. This applies only to the contributor fixture. Real-target services retain their launch-token authentication.

If your browser shows Open Piceli from its launch address, check that you opened the preview address above while make ui is running. An old address may point at a different local Piceli service. To choose another port, run make ui PICELI_UI_PREVIEW_ARGS='--port 4180'. If the default port is busy, the preview picks a free port and opens and prints its actual address. An explicitly requested busy port produces an error. Existing services are left running.

To print the address without opening the default browser, use make ui PICELI_UI_PREVIEW_ARGS='--no-browser'.

Find a view

Navigation shows the pages allowed by the current session and service configuration. Composition sessions start at the infrastructure Overview; other sessions start at Applications.

Task

Navigation / path

What to inspect

Explore infrastructure

Workspace → Overview, /composition/overview

Source/component/environment topology, selected-component details, Versions and Attention

Scan repositories and refs

Workspace → Sources, /composition/sources

Compact rows, full commit disclosures, polling/errors and environment/component links

See every environment and NixHost

Workspace → Targets, /composition/targets

The piceli targets document: revision, pinned product commit, checks, state and as-of per target; the in-cluster UI cannot SSH to hosts, so each host shows its release as the controller published it (tag, pinned, when) and the view says so

Operate composition environments

Workspace → Environments, /composition

Scope, health, revisions and reviewed lifecycle actions

Inspect running objects

Workspace → Applications, /applications

Open an application’s Overview or Resources for ownership, configuration, logs and access

Inspect nodes and cluster services

Workspace → Cluster, /cluster

Nodes, controller, registry and UI status

Read each environment’s deploy runs

Delivery → Deployment history, /delivery (composition UI), or an environment’s page

Trigger, commits, plan hash and changes, approver, built/rolled/unchanged components with digests, checks and failures

Find a previous review

Delivery → Deployment history → Plans, /delivery

Saved plans, approval expiry, action counts and exact run links; also the application’s Plans tab

Read deployment output

Deployment history → Runs & logs → Open logs

Captured output, visual transitions and raw journal

Compare recorded configurations

Deployment history → Compare revisions

Exact source versions, resource additions/removals and before/after fields

Review a Pipeline or build

Delivery → Pipeline or Cluster build

Real stage/placement details and exact approvals

Read logs of anything you can see

Operations → Logs, /logs, or Logs on an application, environment, component, workload or pod

Merged, redacted lines with scope, workload, pod, container, time and level filters and a live tail

Reach a workload’s port

Operations → Port forwards, /forwards, or Forward on a workload

Every forward or connection ticket, its state and local address; start, stop and stale forwards

Workspace navigation

The navigation groups pages into Workspace, Delivery and Operations. Counts beside a page show what needs you: approvals waiting (Deployment history), degraded environments (Environments), failed builds (Cluster build, else Overview), stale forwards (Port forwards) and registry warnings (Cluster). A count is shown only when the session can read its source; nothing is shown as zero when it cannot be observed. Environments, Deployment history and Cluster open sub-menus (each environment with its state; History and Approvals; Nodes and Registry). The current page’s sub-menu is open; the chevron opens or closes one with the mouse or Enter/Space, and the browser remembers that choice. Phones keep a single scrolling row without sub-menus.

piceli ui serve … --infra machines.py:infra adds Machines to the Workspace group (from 0.15.0): the servers of a declared Infrastructure with their state, addresses, OS install, cluster registration and monthly cost, and the DNS records. It reads what the last piceli infra commands recorded; it never runs OpenTofu or reads a credential. Plans and applies stay on the command line (see Machines with OpenTofu).

piceli ui serve … --trains adds Trains to the Delivery group (from 0.26.0): the local merge trains, as piceli trains shows them, built by the same functions. The run in progress shows its branches, the steps done and the running step with its host, elapsed time and the tail of its log, refreshed every two seconds; then the queue (each waiting request’s branches, flags and when it was queued), recent runs, step durations (median and last), flaky tests with their last first failure, and, with --train-composition MODULE, which run produced what each environment and NixHost runs (read as piceli targets reads them, at most once a minute). --train-state-dir DIR reads another state root. It runs nothing and takes no lock (see Merge train).

Builds

Builds (Delivery group, 0.26.0, for any session that reads the composition) lists every build the GitOps controller knows, as piceli gitops builds does: NixRelease publishes, environment image builds and merge-train handoffs. Each build shows what triggered it (a tag, a branch, a schedule, the CLI or this page, with who asked), its commit and tag, the build host, its stage with a time for each one (queued, fetching inputs, building, signing, uploading, then published, failed or cancelled), its duration, the targets that run it now and, while it runs, the tail of its log, refreshed every three seconds. Filters narrow the list to one target or one state.

Sessions that may sync (composition_sync) also get the actions. Approve opens the plan (the commit, tag or branch, the attribute and build host, the manifest and pointers it writes, the promotion gate’s result) with its exact digest; approving takes a confirmation and writes the request piceli gitops approve writes. Retry is piceli gitops sync, Cancel build is piceli gitops cancel. Build now takes a target and a tag or commit (empty: the newest) and writes the request piceli gitops build writes: the build still goes through the gate, plan and approval.

The Builds page with a running image build's live log tail, a NixRelease publish waiting for approval and the Build now form Navigation with approval, environment and registry counts and an Environments sub-menu listing each environment

The workspace uses a compact vector adaptation of Piceli’s mushroom/network mark, warm neutral surfaces and orange navigation accents. Available pages are grouped into Workspace, Delivery and Operations. Cluster is in Workspace at /cluster, with the existing nodes, controller, registry and UI status. Use Find in workspace or Ctrl/⌘ K to jump to an application, environment, component or page. Search loads its data only when opened. Applications can be scanned as cards or a table, with filters for reported problems, available changes and unknown or stale observations. Search, target, state and layout stay in the address when shared or reloaded. The appearance picker offers Light, Dark and System, and remembers the choice in this browser.

Composition sessions open directly on the infrastructure Overview. Its compact environment strip keeps scope, state and revisions visible above the canvas and wraps onto more rows instead of scrolling. The system schematic is sized to its content and fits the available width: the page is the only scroll area. Zooming in lets you pan sideways; a phone keeps cards readable and pans sideways only. The inspector sits beside the canvas (below it on narrow screens). Expand the explorer for a full-screen canvas you can drag and zoom. Escape returns to the overview and its original focus. Overview has three views:

  • Topology maps reported sources to components and environments. Select a node to inspect its configuration, state, commit and image digest, then open its environment or workloads. Show one environment or the whole composition; use zoom, Fit width and arrow-key navigation to explore the graph.

  • Versions compares two environments side by side. Exact commits and image digests establish matches and differences; missing observations stay unknown. Known GitHub repositories link to their exact commits and comparisons. A different revision does not by itself establish which version is newer.

  • Attention separates reported errors and unhealthy components from pending approvals and lifecycle states. Each item links to its environment or selected component. It reflects the current snapshot, not an incident archive.

Selections and version comparisons survive reload through the page address. The selected component shows its matching source refs and counterparts in other environments, with exact version comparisons and links back into the graph. The environment inventory remains at /composition, with its existing Sync, Promote, Approve and Wake flows; a collapsed copy is available below the overview. Sources uses compact rows for repository, tracked refs, polling status and reported environment/component associations. Full commit identities remain available through keyboard-accessible disclosure controls. Search covers the repository, refs, full revisions and connected components, and survives reload. Environment and component links lead directly back into the topology. Application pages link back to their controller-reported environment and components, using the application identity rather than namespace guesses.

Resources offers Table and Relationships. The diagram connects resources only through observed owner UIDs, not guessed service or network dependencies. Kind icons, ownership lanes, zoom and a selected-neighborhood filter help trace a workload to its controller and pods. Independent networking and configuration resources stay separate. Large inventories retain the virtualized ownership outline. Selecting a resource opens the same inspector, logs and access panels; Escape restores focus to the selected resource. Unknown, stale and partial observations remain distinct from healthy or empty state. Application Overview starts with the ownership graph; Resources retains its table/diagram choice. Compact application headers leave more room for the workload evidence. The inspector connects observed owner and child objects and presents permitted container, image, port and condition information together.

Deployment review provides a searchable resource list and before/after field changes beside the exact approval context. Full unified evidence remains available. Activity presents recorded operations as a timeline with search and an attention filter; each run links to its plan and any available recovery. The deployment sequence shows the engine’s actual action order and dependency levels. Select a resource to inspect its dependencies and recorded operation; objects removed after apply remain distinguishable from dependency levels. Run pages connect this sequence to recorded resource transitions, recorded write times and outcomes, with the original journal evidence available alongside the visual view. Raw log tails appear only when the execution recorded and safely published them; unavailable output is stated explicitly. Captured pod output requires the same logs authorization as live logs; activity access alone does not grant it. Journal transitions retain sequence numbers because event timestamps are not recorded.

Development builds

With Cluster(dev=DevBuilds(...)) installed (0.18.0), Development builds (Operations) shows the builder’s slots in use, the running runs, the queue in start order, the recent runs (result, build and test time, test counts, warm or cold lineage, crates compiled) and how much of the cache the lineages use. The installed UI reads the queue’s ConfigMap piceli-dev-status; the entry is hidden on clusters without development builds. See Development builds.

Logs workspace

Operations → Logs (/logs) reads container logs from every scope the session may read logs in: applications, composition environments and, on a local piceli ui serve, namespaces of other saved profiles. Lines from the selected containers are merged by their Kubernetes timestamps (a stack trace keeps its first line’s time) and show their scope, pod and container.

  • Scopes are grouped by cluster. With none selected, every scope is read. Add another profile adds a namespace of another saved profile, read only, with that profile’s own kubeconfig file and context (never the current context); it is refused by the installed service and inside a cluster.

  • Source narrows to a workload (Deployment, StatefulSet, DaemonSet, Job), a pod and a container, or the previous container instance.

  • Window limits the time range and the lines read per container.

  • Level filters by the level stated in the line (ERROR, level=warn, "level":"info", [debug]; lines without one are “No level”); its counts are those of the lines shown.

  • Search filters lines by text. Pause live tail stops the two-second refresh; the address keeps every filter, so a link or reload restores it.

  • Select a line for its full text, time, scope, workload and container, and to narrow to that pod or open it in Resources.

Each read is bounded: at most 12 containers, 5,000 lines in total and 1 MiB per container. Narrowing notices name what was left out, a container that could not be read stays listed, and a replaced pod is not read. Every line is redacted before it leaves the service: password=, token:, bearer tokens, URL credentials, JSON Web Tokens and private keys become [REDACTED]. The same logs grant as the per-pod Logs tab applies: a scope without it is neither listed nor read. Every application, environment, component, workload and pod has a Logs link with these filters set; the per-pod Logs tab remains and links here.

The Logs workspace merging redacted lines of two pods, filtered to errors and warnings, with a selected line's details

The JSON is GET /api/v1/logs/sources?scope=ID (scopes and their pods with workload, containers, phase and restarts) and GET /api/v1/logs/lines?stream=SCOPE/POD/UID/CONTAINER&… (with previous, tail_lines, since_seconds, q, level).

Port forwards workspace

Operations → Port forwards (/forwards) lists every forward or connection ticket of the session across applications, environments and profile scopes: state, target, scope, ports, where the port is bound, expiry and the local address. Start one by choosing a scope, a Service, Deployment or Pod with a port, and the ports; a workload’s Forward link opens this page with the target and port preselected. Stop ends it through the same path as the workload’s Access panel.

  • On a local piceli ui serve, forwards are supervised loopback forwards on the UI host, ready only after a probe. A forward is stale when its scope was removed or its probe failed and it is reconnecting; a forward left running by a previous Piceli UI process (the same private registry piceli ui serve reaps at start) is counted too. Stop stale forwards stops those only: a recorded process whose owner is gone, never another process.

  • On the installed service and the in-cluster composition UI, the page issues connection tickets: run the printed piceli ui connect on your machine with your own kubeconfig; the ticket goes pending, then ready when your client reports its probed port, and ends when you stop it.

Starting a forward to a Service from its Forward link and stopping it from the Port forwards workspace

The JSON is GET /api/v1/forwards (mode local, cluster or unavailable, entries with session, scope, url, stale, stale_reason, and orphans) and POST /api/v1/forwards/stale/stop.

Previous plans, revision changes and deployment logs

Open Delivery → Deployment history (/delivery) and select an application:

  • Plans lists saved reviews, including expired plans and plans without a recorded run. Search, filters and sorting apply to loaded pages; load more to inspect older records. Open plan leads to its ordered deployment steps, dependency levels and per-resource changes without evaluating source again. The same archive is available in each application’s Plans tab.

  • Runs & logs lists recorded execution outcomes and recovery links. Open logs opens and focuses the run’s captured-log panel directly. The run retains its visual transitions and raw journal alongside captured logs.

  • Compare revisions compares desired configurations across recorded runs.

This archive reads plans saved by the UI service. It does not discover arbitrary CLI plan files or recover terminal output that was never recorded. Recorded-run links require matching application, plan and approval digest; missing or partial run evidence is labelled explicitly.

In Deployment history → Compare revisions (also Activity → Compare revisions), choose two recorded plans to compare their stored desired configurations. Each side shows its source revision, release, exact plan identity and recorded run outcome. Added and removed resources and before/after field values are searchable. The comparison is read-only and does not renew an expired approval. A failed run’s desired configuration does not imply that the changes reached the cluster. Older records without complete snapshots, redacted fields and mismatched targets remain explicit gaps.

The deployment evidence expands the CLI’s plan, diff and journal views:

Evidence

Where to open it

Browser view

Ordered plan

Plans → Open plan → Execution order

Dependency phases and exact action sequence; select a resource for its dependencies

Detailed changes

Plans → Open plan → resource changes

Searchable before/after fields and full unified evidence

Recorded execution

Runs & logs → Open run

Resource outcomes, recorded write times and visual journal transitions

Raw output

Runs & logs → Open logs

Captured logs; expand Raw recorded journal for the underlying evidence

Revision changes

Compare revisions

Differences between stored desired configurations, with source and run identity on each side

Open logs links to /runs/<operation-id>?runView=logs#execution-journal. It selects Captured logs, scrolls to the panel and moves keyboard focus there; reloading the address keeps that selection. When no output was captured, the panel says so and directs you to current workload logs in Resources.

History readers can inspect an exact recorded plan without permission to evaluate source or deploy. New review preparation still requires evaluation capability. Named-environment acknowledgements bind to the exact reviewed environment, action and identity; a changed plan hash needs acknowledgement again. Pipeline previews and materialized rollout plans remain separate approvals; an open expired plan cannot be approved. No workflow or cluster configuration is inferred from the layout.

Run the current application from a checkout

make ui-install
make ui-serve PICELI_UI_ARGS='--kubeconfig /absolute/path/config --context CONTEXT --namespace NAMESPACE'

ui-serve builds the production browser assets and starts piceli ui serve with those explicit arguments. Replace the example target with your own; the command does not choose an ambient context. A saved credential profile can be passed with PICELI_UI_ARGS='--profile NAME' instead. Open the exact launch URL printed by the process, including its one-time token. Ctrl+C stops the server. For an already installed composition UI, use piceli access ui with its explicit cluster declaration as described below.

What it shows

The screenshots come from make ui-clips, which records fixed journeys on a disposable fake Kubernetes API (no real cluster or credential).

The compact Overview: environment strip, a schematic sized to its content with no inner scroll, and the inspector beside it Comparing exact commits and image digests between two environments Compact source inventory with tracked refs, full revision disclosure and connected environments and components Browsing the saved-plan archive, reviewing an expired plan and opening captured deployment logs directly Recorded plan with per-resource before and after values and its exact approval context Comparing two recorded source revisions with desired resource configuration changes Recorded deployment resource transitions with captured diagnostic logs and raw journal evidence The Applications page of the Piceli web UI Per-branch environments in the Piceli web UI: branch, namespace, commit, state and health The GitOps page: controller status and per-branch state, with a branch waiting for approval Cluster nodes, k3s mirror restart state, registry storage and service health A Pipeline plan with its stages and the approval step for the exact combined hash

Try the local fake UI

In a source checkout:

make ui-install ui-build
make ui-fake-serve

Open the exact loopback URL printed by the foreground server, including its one-time launch token. The URL exchanges the token for a session and redirects to a token-free page. The token is also held in a mode-0600 file at $XDG_STATE_HOME/piceli/ui/launch-token-4177 (or ~/.local/state/piceli/ui/launch-token-4177) while the server runs. One port has one locked token file; another process cannot overwrite a running server’s token. Press Ctrl+C to stop. PICELI_UI_FAKE_PORT=4180 make ui-fake-serve selects another port. The demo observes a disposable fake Kubernetes API and cannot deploy.

For service and browser acceptance with that fake API, run make test-ui-fake (make test-ui-composition runs only the composition journeys). make test-browser-harbor checks composition selection, source associations, application filters/layout, appearance and resource inspector continuity at three viewport sizes, using the disposable showcase service. make test-browser-connected checks the infrastructure graph, version comparisons, attention links, workspace search, state filters, saved-plan archives and direct captured-log navigation at the same sizes. make test-browser-preview checks plain-address access and bookmarks in fresh browsers. make test-browser-delivery checks real-service deployment, update, rollback, failure and recovery against the fake API.

make ui-clips records fixed journeys, including compact Sources and deployment history, into .ui-clips/<run>/index.html. Chromium and ffmpeg are required; the gallery keeps animated WebP, GIF fallbacks and PNGs, with each animation at most 1.5 MB. PICELI_UI_CLIPS_DIR chooses the retained output directory. make test-ui-fake uses port 4184 for its first-use browser suite (PICELI_UI_FAKE_TEST_PORT changes it). Every runner removes its servers, browser state and temporary service files on exit. See tests/browser/README.md for suite selection and recording details.

Where the UI can run

Use case

Command and target

Browser actions

Laptop or remote machine to a Kubernetes cluster

piceli ui serve --kubeconfig PATH --context NAME --namespace NAME

Inventory, resources, logs and supervised access

Local or remote host with a release definition

piceli ui serve --definition release.toml plus the configured isolated renderer

Source review, release plan, deploy and activity

Local or remote host with a CI-style Pipeline

piceli ui serve --pipeline module:attribute

Pipeline plan, two approvals when images must be delivered, pre-rollout checks, restore points and deploy

GitHub Actions or another CI runner to Kubernetes

piceli deploy --plan / piceli deploy --apply

The CLI remains independent of the web server; the UI does not launch CI jobs

Composition UI installed by piceli cluster init

piceli access ui --cluster MODULE:ATTR (a port-forward and the launch token)

Environments, components, sources, workloads and logs, Sync

UI installed inside the cluster

piceli ui cluster-serve behind the configured TLS gateway

OIDC-scoped observation, reviewed manual delivery, cluster build Jobs and local-client access tickets

Direct application deployment to a machine without Kubernetes

No target provider exists yet

No deployment action is advertised

For a saved local credential profile, use piceli ui serve --profile NAME (list names with piceli profiles --json). The header shows the active profile and, when several profiles exist, a picker. Switching stops the old local listener and its session, then starts a fresh process with the selected profile. Reopen the new launch address printed by that process. Profile names and availability are shown; kubeconfig paths and contents are not sent to the browser. An explicit --kubeconfig or --context cannot accompany --profile on a new serve command.

A local UI process may itself run on a remote machine. Keep its listener on loopback and use an SSH tunnel, for example ssh -L 8000:127.0.0.1:8000 my-host, to open the printed launch URL from your laptop. Actions and server-side forwards run on the remote machine; they do not become laptop ports. A local Pipeline can target a remote Kubernetes API through the explicit kubeconfig in its trusted definition. Never put a kubeconfig, arbitrary Python module, build command or source path into a browser request.

The composition UI in the cluster

A composition’s Cluster declares the UI with ui=Ui(access="forward"):

from piceli.infra import Cluster, Controller, Node, Ui

my_cluster = Cluster(
    "my-cluster",
    api="https://192.0.2.10:6443",
    credentials="my-cluster",  # a `piceli login` profile
    nodes=[Node("node-a", arch="amd64", roles=["controller"])],
    controller=Controller(on="node-a", image="registry.example/piceli@sha256:…"),
    ui=Ui(access="forward"),  # optional: on="node-a", image="…@sha256:…"
)

piceli cluster init infra.py:my_cluster installs it in piceli-system, next to the GitOps controller:

  • one Deployment running piceli ui forward-serve from the Piceli image pinned by digest (Ui.image, else the controller’s image), on Ui.on (else the controller’s node). It listens on its pod’s loopback only;

  • a ClusterIP Service, the port-forward target. Nothing is exposed outside the cluster: no NodePort, no Ingress, and no OIDC in this mode;

  • a service account that reads the controller’s status and run history ConfigMaps (piceli-gitops-status, piceli-gitops-history) and the environments’ workloads, pods and logs (never their Secrets or ConfigMaps), and writes exactly two objects: the controller’s request inbox piceli-gitops-requests (the Sync button) and the Secret piceli-ui-launch, where the UI puts a fresh launch token when it starts.

Open it from your laptop with the cluster’s credentials profile:

piceli access ui --cluster infra.py:my_cluster   # or: --profile my-cluster

The command reads the launch token with the profile’s explicit kubeconfig and context (never the current context), forwards 127.0.0.1:8790 to the UI Service, and prints one line, Piceli UI: http://127.0.0.1:8790/?token=…. Open it once: the token becomes a session cookie and leaves the address bar.

Forwards from this UI run on your machine. Forward on a workload (or Port forwards) issues a one-time ticket; run the printed command, for example piceli ui connect --server http://127.0.0.1:8790 --ticket ID --kubeconfig PATH --context NAME --local-port 8080, with your own explicit kubeconfig and context. piceli ui connect accepts plain http only for a loopback server such as this forward; any other server needs https. It needs only the base package (since 0.15.0; it used the ui extra before), and SIGTERM or SIGHUP stop it like Ctrl-C, with its kubectl. The UI reads the selected Service, Pod or Deployment with its existing read grant and never binds a port, so it needs no pods/portforward permission. To forward every Service port of an environment instead, run piceli access ENV --cluster infra.py:CLUSTER (see Reach your services from your laptop). The token appears nowhere else, not in the UI’s logs. Ctrl-C stops the forward. When port 8790 is taken, access-port-conflict names its owner; when it is a stale piceli access ui for the same credentials, stderr prints piceli access stop --stale --cluster infra.py:my_cluster (or --profile), which stops only that forward. piceli access ui also stops the forwards of an earlier piceli access ui that crashed. When the UI pod restarts it writes a new token: run piceli access ui again. --json prints started (with the URL), status and stopped lines.

The composition Environments page: each environment's revision per source, health, state, last sync and a Sync button

The views, like Argo CD’s applications, read the controller’s published status (piceli.gitops-status.v1) every ten seconds:

  • Environments: each environment with its revision per source (source commit, shortened), health, state, last sync and component states, and a Sync button.

  • An environment: its components with source, commit, image digest, state (synced, building, rolling, failed, unchanged) and health, a Sync button per component, and a link to the namespace’s workloads, pods and current or previous logs.

  • Sources: each repository’s URL (without any credential), the commit of every ref the controller follows, and its last poll.

Cluster shows declared node architecture and roles, live readiness, the in-cluster registry’s pod and claim status, mirror state on each node, and the controller and UI Deployment health. A k3s mirror that needs a service restart is shown separately from a ready mirror. Storage use is shown when kubelet volume statistics are readable; in the cluster, where the UI may read neither, it shows the controller’s last du of the registry storage (“measured … by the GitOps controller”, at most ten minutes old); otherwise it says “Not reported.” The page returns only a small status projection: it does not expose the declaration’s credential reference, Git Secret, kubeconfig or service-account token.

On an environment detail header, Approve reviews the current pending plan hash, namespace, revisions and components before requiring a second explicit confirmation. Promote chooses a branch and exact commit already published by the controller, then requires confirmation. The server rereads status immediately before either request, so a changed hash or ref is refused. A promotion is a request to the controller; its declared follow policy still decides whether to accept it. An environment stopped by the idle policy shows “Idle-stopped since” and Wake; Wake confirms a sync request, which the controller processes at its next poll. The next push can wake it as well. A named environment has Stop (a reviewed request, as piceli env stop: no replicas, volumes kept, not planned or deployed while stopped) and, once stopped on request, Start; an environment the composition declares stopped=True shows why Start is unavailable (see Stop a named environment).

Each environment shows its Last checks: passed N of N with every check’s name, when, the trigger and whether they ran after a rollout or as a verification (the inventory row says Checks passed 6/6 · time); a failing check shows its code, never its output.

The controller publishes each environment’s Promote() policy and, for a source followed with Promote(), its branch heads, so Promote offers exactly those; it stays disabled with a reason when the status does not allow it. The UI installed in the cluster reads piceli-cluster and Nodes for the Cluster page. It is never granted the kubelet API (nodes/proxy) or pods/exec: the registry’s storage use it shows is the one the controller measured and published in its status; piceli registry status run with an owner’s credentials measures it now.

The Approve review lists what the pending plan changes (object counts and each created, updated or deleted object by kind and name, and the deploy plan’s hash) next to the exact hash; a changed plan needs a new acknowledgement. The controller records the approval’s origin (cli, ui, or the owner’s approval policy) in the environment’s history.

Deployment history of the environments

Delivery → Deployment history (/delivery) and each environment’s page list the environment’s deploy runs, newest first, with no extra setup:

  • outcome in words (“Deployed; rolled web”, “Verified (checks changed); rolled nothing”, “Checks failed; the release keeps running”, “Failed (component-build-failed)”) and when it ran;

  • the trigger (a push, a new tag, a promotion, a sync, a changed check set);

  • each source’s followed ref and exact commit;

  • the environment’s plan hash, the deploy plan’s hash, the release, and the plan’s object counts and changed objects;

  • who approved it: piceli gitops approve (CLI), the Piceli UI, or the owner’s approval policy;

  • every component with its image digest, marked built, rolled or unchanged;

  • each check with its outcome, duration and short detail line, and whether the checks ran as a verification of an unchanged release;

  • a failure’s stage, registered code (piceli explain CODE), failing checks and the bounded log tail of a failed build;

  • each stage’s duration.

The controller builds this history from its own record of each deploy step and the deploy run journals on its volume (runs recorded before 0.14.6 are listed from their journals alone, without trigger or approver). It publishes it, bounded to the newest 20 runs per environment, in the ConfigMap piceli-gitops-history next to its status. The UI reads that one ConfigMap with a read-only grant; it does not mount the controller’s volume. The history holds commit ids, hashes, digests, object kinds and names, registered codes, check names and their short detail and timings: never a field value, a Secret, a kubeconfig or process output beyond the build log tail the status already shows. The JSON is available at GET /api/v1/composition/history and GET /api/v1/composition/environments/ENV/history. On the command line, piceli gitops history, gitops show and gitops compare (0.38.0) read the same document (GitOps: Piceli’s controller and manifest export).

Approval review of an exact pending plan hash in a named environment Promotion review of a published branch and exact commit An idle-stopped environment with its stopped-since time and Wake review

Short recordings from the same fake-API journey show the Cluster status, Promote and Approve, and idle-stop Wake interactions.

Sync writes the same request as piceli gitops sync ENV [--component NAME]; the controller handles it on its next poll, under the environment’s own rules (an approval it requires is still required: run piceli gitops approve). Every refusal has a message and a code (piceli explain CODE): ui-controller-absent before the controller publishes its first status, ui-sync-target-unknown for an environment or component the status no longer lists, ui-sync-unavailable when the request inbox cannot be written; and for piceli access ui, access-ui-not-installed, access-ui-not-ready (the pod is still starting), access-ui-forbidden and access-ui-unreachable.

One environment: components with source, commit, digest, state and health, each with a Sync button

Pipeline deployment from the browser

The UI owner starts piceli ui serve --pipeline module:attribute with a trusted Pipeline definition. The server uses the existing PipelineRunner, state lock, journal and portable piceli.pipeline.planfile document. The browser shows the target, exact combined hash and planned stages: inputs, build, delivery, pre-rollout checks, restore point, release plan, apply and post-deploy checks, when declared. The operator must confirm the reviewed hash before execution. A changed or expired plan is refused.

When the release uses built images that are not yet delivered, the first approval covers only the build and delivery stages. The runner stops there. The server then creates a real, materialized release plan and waits in awaiting-review. The browser presents its new hash, pre-rollout checks and restore-point effects. A second explicit approval is required before rollout. Closing the browser does not grant that approval. Reload the run URL to resume review. Restarting the service marks a queued or running browser operation interrupted; inspect the Piceli deploy journal and prepare a new plan. A plan waiting for its second approval remains waiting after restart.

Pre-rollout checks declared by a release definition are included in its reviewed plan and run before the apply stage. Pipeline restore points and two-stage image delivery remain available to local Pipeline sessions.

The Pipeline adapter runs on the local UI host and uses its configured builder and delivery route. An installed UI offers a separate cluster-build action: after approval of the exact build plan hash, its dispatcher calls Piceli’s existing Kubernetes build Job path. The builder Job uses its own scoped ServiceAccount, Git Secret, cache PVC and node registry. The UI Pod receives no registry or cluster-admin credential.

Branch environments and GitOps

If the trusted Pipeline declares EnvConfig, Environments lists branch, namespace, commit, state, health, age and workloads using list_envs. Each running branch registers an explicit local observation scope: open its Resources page to inspect workloads, current or previous container logs, and access forwards. Environment up, down and seed requests show the core plan first, then require the exact env_hash. Seed asks for an explicit source environment. Piceli replans before the change; a changed hash is refused.

Configure --gitops-namespace NAME to expose the existing GitOps controller. GitOps displays controller and branch status, pending plan hashes, and requests approval of a pending hash or promotion of branch@sha to main. It submits a request to the installed controller; the browser does not reconcile Git itself. In OIDC-scoped mode, entries outside the granted namespace are hidden and cannot be approved or promoted. The cluster service account also needs the corresponding ConfigMap permission in the explicitly named controller namespace. An absent controller is displayed as unconfigured.

Local release definition and observation

piceli ui serve --definition PATH registers the definition’s explicit target. To allow source evaluation, also configure --source-root, one or more --source-file entries, the pinned --renderer-image, and --renderer-platform; see piceli ui serve --help for the remaining isolated renderer options. The browser reviews a source-execution preview before running the isolated renderer, then separately approves the produced exact release plan. Operations are journaled and continue after a browser disconnect. The Resources view shows observed objects, scoped logs and owned port forwards. The UI never treats a catalog selection as a deployment rollback.

With only --kubeconfig, --context and --namespace, the UI is inventory only. An access endpoint labelled server is on the UI host, including when that host is remote. Do not infer a laptop endpoint from it.

In-cluster service

The installation guide describes the single-replica Deployment, TLS gateway, OIDC configuration, namespace grants and private PVC. The default installed profile is scoped observation. An operator may configure a trusted release definition, immutable renderer image, named deployment resources and deploy subjects. A granted OIDC user first approves the source evaluation digest, reviews the resulting release plan, then approves that plan’s exact digest. The dispatcher applies that plan and writes operation and release state on the private PVC; an interrupted operation is visible after a Pod restart. Back up the PVC’s control directory with the stopped-server commands below. The installed service does not run arbitrary browser-provided Pipelines.

Cluster login requires a signed ID token with the configured issuer, exact client audience, nonce and expiry. Only a principal with a configured grant gets a bounded session. Each API request and live stream rechecks its scope; logout is a CSRF-protected POST. The browser never receives the projected Kubernetes service-account token. A renderer Job has no deployment token or host mount and is selected by a deny-egress policy. Its trusted entrypoint waits for policy enforcement before importing approved source; verify the installed CNI’s enforcement before enabling source evaluation.

For remote local-client access in cluster mode, the server issues a pending one-time ticket. piceli ui connect uses an explicit local kubeconfig and context, starts a supervised loopback forward, probes it, and only then reports ready. Stopping, expiry or lost ownership removes that readiness. A pending server ticket never claims a laptop port exists.

Back up or restore UI control state

Stop the single UI server before backing up its private control directory:

piceli ui backup --control-dir /var/lib/piceli --output /safe/ui-state.tar.gz
piceli ui restore --archive /safe/ui-state.tar.gz --destination /new/empty/control

The backup command refuses a held dispatcher lock. It includes the operation store, evaluation evidence and release journal, verifies file digests and writes a mode-0600 archive. Restore validates every member before moving it into an empty directory with private modes. Copy or restore the archive before starting a new single replica; keep the archive as private as deployment credentials and source evidence. Pipeline runs keep their own state directory, which must also be backed up if it lives outside this control directory.