swift-console is the management UI for a Peregrine cluster: a single Rust
(axum) binary that serves four surfaces over one authenticated session. No
Node.js, no external frontend — HTML/CSS/JS are served directly and pages render
without a client-side framework.
The console is an operator surface, not evidence that the storage engine has
passed every gate. G6 is GREEN on 17adf0b. The G7 lab gate is 20/20 PASS on
swift1 :18080 (tools/test-results/optimize-ae-20261003/verdict.json,
2026-10-03). That run used the lab proxy under /root/work/g6-rust-bin.
Production /usr/local/bin/swift-proxy-server on swift1–4 and hkserver is sha256 ce738dc3a7adb01167c16660924e79a1e215a3245d5d90bbe682d36b7cfa5696 (tools/test-results/optimize-ae-20261003/0I-g7-prod.md, 2026-10-04). The last full production G7 on http://10.0.0.10:8080 is 20 PASS, 0 FAIL, 0 NOT RUN (tools/test-results/optimize-ae-20261003/verdict-prod.json, the copy of swift4:/root/work/g7-prod-20261004-r21/verdict.json, Drive verdict-prod-r21.json id 18v832QtB3_xH5O1BMsVTUSrE6iOE2xL7, 2026-10-04). The full yaml is the 20-case run. The production cluster passed G7. Production readiness is GO.
Contabo console acceptance, 2026-10-04
Strict acceptance of this operator surface on the live contabo-swift-2026
cluster is ACCEPT. Evidence:
tools/test-results/console-reaccept-20261004/SUMMARY.md, dated 2026-10-04,
including the addendum of the same date.
The file path passed. Container console-reaccept-20261004 and object
hello.txt (37 bytes) came back with sha256
c6d5d52dfd36c62073cc0daaa92eda73d9f59d141eabed38d06e1e2ea4aca396
from the console download and from https://10.0.0.10:8085 using the
test:tester token. swift-get-nodes placed primaries on 10.0.4.1,
10.0.4.3, and 10.0.4.5. The name is gone from the account listing and
from the console bucket list. The addendum opened TCP from swift1 and swift4
to 10.0.4.5 and 10.0.8.5 on ports 22, 6201, 6202, and 6211, and a direct
GET of a primary on 10.0.4.5:6211 returned 200. That probe object was
deleted. GET /lab/api/node/status lists five nodes, swift1–swift4 and
hkserver, each reachable and 10/10 up. Monitor nodes_up stayed 4.0.
That panel is count(up{job="node"} == 1). Prometheus job node on swift4
scrapes only 10.0.0.1:9100 through 10.0.0.4:9100. hkserver does not run
node_exporter, so the number was left at 4.0. POST /api/apply was not sent.
Contabo console acceptance, 2026-10-02
The previous gate, dated 2026-10-02, was ACCEPT_WITH_WARN. Evidence:
tools/test-results/console-accept-20261002/SUMMARY.md.
The G7 lab gate is 20/20 PASS on swift1 :18080
(tools/test-results/optimize-ae-20261003/verdict.json, 2026-10-03).
Production /usr/local/bin/swift-proxy-server on swift1–4 and hkserver is sha256 ce738dc3a7adb01167c16660924e79a1e215a3245d5d90bbe682d36b7cfa5696 (tools/test-results/optimize-ae-20261003/0I-g7-prod.md, 2026-10-04). The last full production G7 on http://10.0.0.10:8080 is 20 PASS, 0 FAIL, 0 NOT RUN (tools/test-results/optimize-ae-20261003/verdict-prod.json, the copy of swift4:/root/work/g7-prod-20261004-r21/verdict.json, Drive verdict-prod-r21.json id 18v832QtB3_xH5O1BMsVTUSrE6iOE2xL7, 2026-10-04). The full yaml is the 20-case run. The production cluster passed G7. Production readiness is GO. The current console gate is the 2026-10-04 reaccept above.
Passed on that run: the file path, chaos, HA, autocos, shadow run, the browser
file path, shadow mutate, and warehouse promote
(09-remaining.md, 10-shadow.md, 11-browser-disk.md,
12-apply-mutate-promote.md). After POST /api/plan, swift1–4 still had
swift-proxy, swift-object, swift-container, and swift-account active,
and VIP 10.0.0.10 stayed on swift1. https://10.0.0.10:8085/info returned
200 (1270 bytes). The node-status score recorded in 09-remaining.md and
10-shadow.md was 10/10 on all four nodes. See 13-apply.md.
POST /api/apply was not sent on 2026-10-02. POST /api/plan used the Contabo identity
inventory /opt/swift-deploy/config_contabo_identity/swift_hosts (hosts
169.58.108.85, .86, .87, .121): HTTP 202, job 5, 336 tasks, digest prefix
d962336aac56. The sealed plan still names disk-wipe tasks (DD before mkfs,
Format all storage nodes disks, Change disks partition table to mbr before DD). 216 tasks name hosts and include yum upgrade, an sshd restart, firewall
and SELinux changes, and MariaDB plus Keystone installs on swift1–3. Apply
would change the live nodes. Detail: 13-apply.md and
13-apply-plan-summary.md.
On 2026-10-04 the repo inventory was sealed again. Digest
8195ef0adca513ae7c67c2966ff4aaaa11693bfb19d4efea6bf386d7abe6a9b9. Disk-wipe,
yum upgrade, sshd restart, and MariaDB/Keystone install tasks have empty host
lists. 117 other tasks still name the four live hosts, including Install common pkgs, Install swift, Disable selinux, Restart crond, and
Import iptables rules. That plan is not empty and it does not restate the
live keepalived timeout. POST /api/apply was not sent for this digest.
config_sample was not applied. Detail:
tools/test-results/optimize-ae-20261003/0G-prod-roll.md (2026-10-04).
The deploy proxy reads the operator POST body, caps it at 1 MiB, and sets
Content-Length before forwarding. swift-deploy reads a body only when that
header is present. Before the fix, validate and plan returned 400
EOF while parsing (07-fix.md).
Surfaces
Files
An S3-style browser: buckets/containers, objects, upload, folders, trash with restore, TempURL, search, user management, and bulk ZIP download.
Deploy
A front end over swift-deploy-rs’s plan / validate / apply control API.
Monitor
Live cluster metrics and logs, queried server-side — no backend name, URL,
or credential reaches the browser. Overview 在线节点 is host scrape
liveness (up{job="node"}), not Swift service health.
Lab
Tools that explain and stress the cluster: RingScope, policy compare, Object Capsule, Tombstone Museum, Chaos Arcade, Node HA Drill, Repair Debt Index, Protocol Mutation (Shadow), Expired-but-Alive Observatory, Profile Cartographer, and Cluster Genome Lab.
The Node HA Drill
The Lab’s node-down tool takes a whole storage node out of the cluster and
watches the survivors carry the load. It rides the console’s guarded mutation
path — journaled with a TTL auto-restart, so a node always comes back even
if the operator walks away — and it never touches swift-console or
swift-deploy, so the console cannot take itself down.
GET /lab/api/node/status # per-node service health + which nodes are held down
POST /lab/api/node/down # {node, ttl_secs?} — stop a node's swift services
POST /lab/api/node/up # {node|journal_id} — restart early, before the TTLBuild & run
cd swift-console
cargo build --release
./target/release/swift-console conf/config.jsonStartup fails if the JSON cannot be read/parsed or the deploy token file cannot
be read. /healthz is the unauthenticated liveness endpoint. Default bind is
127.0.0.1:9000.
config.json sets the bind address, the Swift proxy base and auth endpoint, the
deploy upstream + token file, the metrics/logs upstreams, the account roster,
per-cluster node metadata, and the Lab gates (lab_enabled, lab_mutations).
Configuration reference
| Key | Meaning |
|---|---|
bind |
listen address (default loopback) |
swift_base / auth_url |
the Swift proxy and its /auth/v1.0 |
deploy_upstream / deploy_user / deploy_token_file |
the swift-deploy-rs control API and server-side Basic credential source |
metrics_url / logs_url |
metrics + log backends |
session_idle_hours / max_upload_bytes / tempurl_default_secs |
session, body, and generated-URL limits |
accounts |
allowed tenant/user roster and roles |
proxy_nodes / proxy_conf / proxy_service / proxy_port |
account-admin target set and service metadata |
account_admin |
enables proxy config edits/restarts; default false |
test_enabled / autocos_bin / autocos_home |
real benchmark surface and its runner; default disabled |
lab_enabled / lab_mutations |
enable the Lab surface / allow guarded mutations |
cluster_nodes |
node roster (name + storage/replication/public IPs, devices) |
swift_dir / node_root |
ring/config and device roots used by inspection tools |
ringsim_bin / getnodes_bin / objinfo_bin |
external inspection helper paths |
shadow_peer_base / shadow_peer_auth / shadow_peer_label |
optional second Swift endpoint for Shadow dual-mode |
shadow_peer_tenant / shadow_peer_user / shadow_peer_key |
peer account. Both user and key must be set; otherwise the signed-in session is used. Tenant falls back to the session tenant when empty |
shadow_root |
on-disk corpus + mutation log directory |
Account administration, real benchmark execution, lab pages, and lab mutations are separate controls. Leave them off unless the management host, credentials, node list, and undo behavior have been reviewed.
Monitor: what “在线节点” means
The overview 在线节点 tile is count(up{job="node"} == 1) — Prometheus
node_exporter scrape success. It answers “is the host still talking?”, not
“are Swift units running?”. Taking a node down in the HA drill leaves this
count unchanged while Services / Node HA show the Swift units as down. That is
intentional; do not replace it with SSH service probes on the overview.
Lab: Repair Debt Index
GET /lab/debt and GET /lab/api/debt/snapshot score deferred repair work
(async pending, quarantine, ring imbalance, disk/repl pressure, unhealthy
fraction) into a single debt / interest / time-to-insolvency view. Calibration
notes live in the console tree at swift-console/docs/debt-calibration.md.
Lab: Protocol Mutation (Shadow)
Shadow can run a seeded mutation sequence against the logged-in cluster and,
when shadow_peer_base is set, against a second implementation side-by-side.
A configured shadow_peer_user plus shadow_peer_key logs into that peer;
a half-filled pair, or an empty pair, uses the signed-in session. Findings
and the mutate corpus land under shadow_root (mutations.jsonl). On the
2026-10-02 Contabo run, shadow run and mutate passed against the peer at
http://10.0.0.3:8090 (10-shadow.md, 12-apply-mutate-promote.md).
On Contabo swift1, Python SAIO listens on 127.0.0.1:8090 and Rust SAIO on
127.0.0.1:8081 (same test:tester / cluster key). Point shadow_peer_base
at the peer you want for dual-mode 对照.
Lab: Expired-but-Alive Observatory
GET /lab/expired seeds staggered X-Delete-At objects and polls ordinary
GET vs X-Open-Expired: true plus SSH disk presence. States:
Alive → Logically Expired → Recoverable Ghost → Physically Reaped
Summary tiles report mean / P95 / max ghost period. Requires the proxy and
object-server to forward / honour X-Open-Expired (Rust path now does). If the
object-expirer is not running, objects stay Recoverable Ghost — reported as a
finding, not faked into reaped.
Lab: Profile Cartographer
GET /lab/profilemap turns stage timers into an architecture tree (Proxy /
Object / Replicator). Pulse PUTs via POST /lab/api/profilemap/pulse, then
read GET /lab/api/profilemap/snapshot?path=put|replication|get. Sources:
process-local /recon/stage on nodes, or Prom swift_stage_* when present.
Lab: Cluster Genome Lab
GET /lab/genome evolves object-ring weights only under a simulated fault
suite (swift-ring-sim), then shows a Pareto front (lowest migration, highest
availability, lowest waste, fastest repair proxy). Never writes the live ring.
Rust Toolchain Canary
Out-of-tree under rust-toolchain-canary/: install pinned toolchains, run a
CRUD smoke against a live Swift endpoint, and emit a differential report. This
is a host CLI, not a console page.