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, |
Source/component/environment topology, selected-component details, Versions and Attention |
Scan repositories and refs |
Workspace → Sources, |
Compact rows, full commit disclosures, polling/errors and environment/component links |
See every environment and NixHost |
Workspace → Targets, |
The |
Operate composition environments |
Workspace → Environments, |
Scope, health, revisions and reviewed lifecycle actions |
Inspect running objects |
Workspace → Applications, |
Open an application’s Overview or Resources for ownership, configuration, logs and access |
Inspect nodes and cluster services |
Workspace → Cluster, |
Nodes, controller, registry and UI status |
Read each environment’s deploy runs |
Delivery → Deployment history, |
Trigger, commits, plan hash and changes, approver, built/rolled/unchanged components with digests, checks and failures |
Find a previous review |
Delivery → Deployment history → Plans, |
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, |
Merged, redacted lines with scope, workload, pod, container, time and level filters and a live tail |
Reach a workload’s port |
Operations → Port forwards, |
Every forward or connection ticket, its state and local address; start, stop and stale forwards |
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 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 registrypiceli ui servereaps 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 connecton 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.
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).
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 |
|
Inventory, resources, logs and supervised access |
Local or remote host with a release definition |
|
Source review, release plan, deploy and activity |
Local or remote host with a CI-style Pipeline |
|
Pipeline plan, two approvals when images must be delivered, pre-rollout checks, restore points and deploy |
GitHub Actions or another CI runner to Kubernetes |
|
The CLI remains independent of the web server; the UI does not launch CI jobs |
Composition UI installed by |
|
Environments, components, sources, workloads and logs, Sync |
UI installed inside the cluster |
|
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-servefrom the Piceli image pinned by digest (Ui.image, else the controller’s image), onUi.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 inboxpiceli-gitops-requests(the Sync button) and the Secretpiceli-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 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).
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.
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.