@crvouga/homelab 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mise/locks/npm-vercel/{68.2.0 → 68.5.0}/aube-lock.yaml +177 -177
- package/.mise/locks/npm-vercel/{68.2.0 → 68.5.0}/package.json +1 -1
- package/README.md +11 -17
- package/ansible/monitoring/compose.yml +1 -1
- package/ansible/monitoring/lock.json +1 -1
- package/ansible/ubuntu/baseline.yml +14 -0
- package/ansible/ubuntu/policy.json +2 -1
- package/ansible/ubuntu/t3-desktop.yml +6 -1
- package/docs/consumer-setup.md +31 -31
- package/docs/releasing.md +6 -4
- package/docs/runbooks.md +2 -6
- package/docs/ubuntu-sync.md +3 -1
- package/docs/worker-contract.md +18 -2
- package/examples/fleet.json +0 -1
- package/mise.lock +102 -102
- package/mise.toml +4 -4
- package/package.json +3 -2
- package/schema/check-ids.json +1 -9
- package/schema/fleet.schema.json +1 -15
- package/schema/output/fleet-sync.schema.json +23 -0
- package/src/check-registry.ts +1 -2
- package/src/cli/fleet-sync-checkout.ts +10 -1
- package/src/cli/fleet-sync-output.ts +18 -0
- package/src/cli/fleet-sync-progress.ts +11 -2
- package/src/cli/fleet-sync-remote.ts +32 -0
- package/src/definition.ts +0 -1
- package/src/ide/definition.ts +2 -25
- package/src/ide/ide.ts +3 -4
- package/src/ide/t3.ts +0 -8
- package/src/manager-sync.ts +26 -1
- package/src/package-info.ts +134 -6
- package/src/worker-host-checks.ts +75 -13
- package/src/worker-policy.ts +1 -3
- package/src/t3/profile.ts +0 -204
package/README.md
CHANGED
|
@@ -376,17 +376,17 @@ hand, on the manager or on a worker it is about to converge, before anything
|
|
|
376
376
|
is changed. [docs/state.md](docs/state.md#day-to-day) says how to keep or discard
|
|
377
377
|
one.
|
|
378
378
|
|
|
379
|
-
| Block | What it declares
|
|
380
|
-
| ---------- |
|
|
381
|
-
| `source` | The Git repository nodes accept code from (this one, or your fork)
|
|
382
|
-
| `state` | The bucket that holds the fleet state; never its credentials
|
|
383
|
-
| `secrets` | Where secrets are kept: `env`, `file`, `sops` or `vault`
|
|
384
|
-
| `manager` | The one macOS manager
|
|
385
|
-
| `workers` | The Ubuntu workers
|
|
386
|
-
| `services` | The proxy's public origin and the monitoring dashboard and accounts
|
|
387
|
-
| `worker` | Policy every worker must meet
|
|
388
|
-
| `ides` | The IDEs the fleet runs; `["t3"]` when absent
|
|
389
|
-
| `t3` | T3
|
|
379
|
+
| Block | What it declares |
|
|
380
|
+
| ---------- | ------------------------------------------------------------------------- |
|
|
381
|
+
| `source` | The Git repository nodes accept code from (this one, or your fork) |
|
|
382
|
+
| `state` | The bucket that holds the fleet state; never its credentials |
|
|
383
|
+
| `secrets` | Where secrets are kept: `env`, `file`, `sops` or `vault` |
|
|
384
|
+
| `manager` | The one macOS manager |
|
|
385
|
+
| `workers` | The Ubuntu workers |
|
|
386
|
+
| `services` | The proxy's public origin and the monitoring dashboard and accounts |
|
|
387
|
+
| `worker` | Policy every worker must meet |
|
|
388
|
+
| `ides` | The IDEs the fleet runs; `["t3"]` when absent |
|
|
389
|
+
| `t3` | T3 mesh access between enrolled machines, and shared settings (`profile`) |
|
|
390
390
|
|
|
391
391
|
### Supported IDEs
|
|
392
392
|
|
|
@@ -454,12 +454,6 @@ never reaches a report. On Linux, lingering keeps the host after logout;
|
|
|
454
454
|
the remedy names `loginctl enable-linger` and converge does not run it.
|
|
455
455
|
Retirement runs `paradev hosts remove`. The `paradev:*` checks only warn.
|
|
456
456
|
|
|
457
|
-
Under `t3.profile`, `fleet.json` names top-level T3 settings every machine
|
|
458
|
-
holds the same, such as tool servers. A setting not named there stays the
|
|
459
|
-
machine's own, and one edited on a machine since `converge` last wrote it
|
|
460
|
-
is reported as `T3_PROFILE_CONFLICT` by the check `t3:profile`, never
|
|
461
|
-
overwritten.
|
|
462
|
-
|
|
463
457
|
Secrets are asked for by purpose (`monitoring-account-password`, `monitoring-tunnel-token`,
|
|
464
458
|
`proxy-tunnel-token`); see [`src/secrets.ts`](src/secrets.ts).
|
|
465
459
|
|
|
@@ -51,7 +51,7 @@ services:
|
|
|
51
51
|
# per-user file by hub-darwin.yml.
|
|
52
52
|
cloudflared:
|
|
53
53
|
profiles: [public-endpoint]
|
|
54
|
-
image: cloudflare/cloudflared:2026.
|
|
54
|
+
image: cloudflare/cloudflared:2026.12.0@sha256:cfe98613e211b393c5dd7dfd7adc4d302a16d87d7601b5f193edf343cc1e0254
|
|
55
55
|
user: '1000:1000'
|
|
56
56
|
restart: unless-stopped
|
|
57
57
|
command:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.21.2",
|
|
3
3
|
"image": "henrygd/beszel:0.21.2@sha256:b0be90bd4aee2993fde763032a5098ce4386fba43cfe5031ec017b8d9e8c97a2",
|
|
4
|
-
"tunnelImage": "cloudflare/cloudflared:2026.
|
|
4
|
+
"tunnelImage": "cloudflare/cloudflared:2026.12.0@sha256:cfe98613e211b393c5dd7dfd7adc4d302a16d87d7601b5f193edf343cc1e0254",
|
|
5
5
|
"agents": {
|
|
6
6
|
"amd64": "0359a4c3b9d800ba865b2be4081c7f0df8ba29a8c5c0ac76e72f490f28496909",
|
|
7
7
|
"arm64": "4f5dcea27c3f9e2ba30218e7d7039f4df548ded1c470df9eefe00975722aad13",
|
|
@@ -70,6 +70,20 @@
|
|
|
70
70
|
- name: Inspect existing service ownership
|
|
71
71
|
ansible.builtin.service_facts:
|
|
72
72
|
tasks:
|
|
73
|
+
- name: Inspect the retired coding-agent launcher link
|
|
74
|
+
ansible.builtin.stat:
|
|
75
|
+
path: '{{ development_home }}/.local/share/personal/fleet/agent-commands'
|
|
76
|
+
follow: false
|
|
77
|
+
register: retired_agent_commands
|
|
78
|
+
|
|
79
|
+
- name: Remove the fleet-owned coding-agent launcher link
|
|
80
|
+
ansible.builtin.file:
|
|
81
|
+
path: '{{ development_home }}/.local/share/personal/fleet/agent-commands'
|
|
82
|
+
state: absent
|
|
83
|
+
when:
|
|
84
|
+
- retired_agent_commands.stat.islnk | default(false)
|
|
85
|
+
- retired_agent_commands.stat.lnk_target == 'current/agents/bin'
|
|
86
|
+
|
|
73
87
|
- name: Install the pinned packages
|
|
74
88
|
ansible.builtin.import_tasks: tasks/packages.yml
|
|
75
89
|
- name: Configure Docker
|
|
@@ -205,6 +205,11 @@
|
|
|
205
205
|
# exhaust; agents use disk-backed /var/tmp (aged by tasks/resources.yml).
|
|
206
206
|
Environment=TMPDIR=/var/tmp
|
|
207
207
|
Environment=NODE_OPTIONS=--max-old-space-size={{ sizing.agentBuildMiB }}
|
|
208
|
+
# An unattended worker leaves the login keyring locked, and the
|
|
209
|
+
# desktop app's main thread blocks forever on libsecret when
|
|
210
|
+
# Chromium's password store is the keyring. basic is a file under
|
|
211
|
+
# T3CODE_HOME, so a locked keyring never stops T3 from serving.
|
|
212
|
+
Environment=ELECTRON_PASSWORD_STORE=basic
|
|
208
213
|
# Serve on loopback only: the route is tailscale serve to 127.0.0.1.
|
|
209
214
|
# The running app rewrites its settings, so they are set before it
|
|
210
215
|
# starts; a failure never keeps T3 from starting (worker:exposure).
|
|
@@ -212,7 +217,7 @@
|
|
|
212
217
|
ExecStartPre=-/usr/bin/python3 -I -B /usr/local/lib/personal-fleet/t3-local-only.py --home %h/.t3
|
|
213
218
|
# Native Wayland hangs before the first window on Asahi (16K pages);
|
|
214
219
|
# XWayland works on every GNOME worker, so use it everywhere.
|
|
215
|
-
ExecStart="{{ t3_desktop_dir }}/t3code" --ozone-platform=x11
|
|
220
|
+
ExecStart="{{ t3_desktop_dir }}/t3code" --ozone-platform=x11 --password-store=basic
|
|
216
221
|
KillMode=mixed
|
|
217
222
|
# A server that hangs does not stop on SIGTERM: do not wait the 90 s
|
|
218
223
|
# default before it is killed. Agent scopes (t3code-*.scope) are
|
package/docs/consumer-setup.md
CHANGED
|
@@ -158,37 +158,37 @@ npx @crvouga/homelab state --example > fleet.json
|
|
|
158
158
|
Then replace every placeholder. Each field, from
|
|
159
159
|
[`schema/fleet.schema.json`](../schema/fleet.schema.json):
|
|
160
160
|
|
|
161
|
-
| Field
|
|
162
|
-
|
|
|
163
|
-
| `version`
|
|
164
|
-
| `source.repository`
|
|
165
|
-
| `state`
|
|
166
|
-
| `secrets`
|
|
167
|
-
| `manager.id`
|
|
168
|
-
| `manager.os`
|
|
169
|
-
| `manager.network.tailscaleName`
|
|
170
|
-
| `manager.network.user`
|
|
171
|
-
| `manager.neverSleepOnPower`
|
|
172
|
-
| `workers[].id`
|
|
173
|
-
| `canary`
|
|
174
|
-
| `workers[].ssh`
|
|
175
|
-
| `workers[].os`
|
|
176
|
-
| `workers[].network.tailscaleName`
|
|
177
|
-
| `workers[].network.sshPort`
|
|
178
|
-
| `workers[].network.user`
|
|
179
|
-
| `workers[].network.t3Port`
|
|
180
|
-
| `services.proxy.endpoint`
|
|
181
|
-
| `services.monitoring.hubPort`
|
|
182
|
-
| `services.monitoring.publicUrl`
|
|
183
|
-
| `services.monitoring.managerAccount`
|
|
184
|
-
| `services.monitoring.viewerAccount`
|
|
185
|
-
| `ubuntu`
|
|
186
|
-
| `worker.requiredCapabilities`
|
|
187
|
-
| `worker.githubLogin`
|
|
188
|
-
| `github` (optional)
|
|
189
|
-
| `worker.vaultUser`
|
|
190
|
-
| `worker.toolchain
|
|
191
|
-
| `worker.unattendedSudo`, `
|
|
161
|
+
| Field | Value |
|
|
162
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
163
|
+
| `version` | `3` |
|
|
164
|
+
| `source.repository` | `https://github.com/crvouga/homelab.git`, or your fork if you publish one. Machines only accept code from it. |
|
|
165
|
+
| `state` | `{ "bucket", "endpoint"?, "region"?, "prefix"? }` or `{ "directory": "/absolute/path" }`. Never credentials. |
|
|
166
|
+
| `secrets` | See [secrets](#secrets). |
|
|
167
|
+
| `manager.id` | A short lowercase id, `^[a-z][a-z0-9-]{0,62}$`, e.g. `manager-mac`. |
|
|
168
|
+
| `manager.os` | `"macOS"` |
|
|
169
|
+
| `manager.network.tailscaleName` | The manager's MagicDNS name: `tailscale status --json` → `.Self.DNSName` without the trailing dot. |
|
|
170
|
+
| `manager.network.user` | The manager's login name (`id -un`). |
|
|
171
|
+
| `manager.neverSleepOnPower` | `true` (workers depend on the manager's services). |
|
|
172
|
+
| `workers[].id` | A short lowercase id. The first reachable worker is the canary: a new revision must pass there before the others get it. |
|
|
173
|
+
| `canary` | Optional: the id of the worker to prefer as canary. When it is unreachable, the next reachable worker is used. |
|
|
174
|
+
| `workers[].ssh` | The worker's alias in the manager's `~/.ssh/config`. |
|
|
175
|
+
| `workers[].os` | `"linux"` |
|
|
176
|
+
| `workers[].network.tailscaleName` | The worker's MagicDNS name (from `tailscale status --json` → `.Peer[].DNSName` on the manager). |
|
|
177
|
+
| `workers[].network.sshPort` | `22` unless the worker's sshd listens elsewhere. |
|
|
178
|
+
| `workers[].network.user` | The worker account (`ssh WORKER_ALIAS id -un`). |
|
|
179
|
+
| `workers[].network.t3Port` | `3773` |
|
|
180
|
+
| `services.proxy.endpoint` | The public HTTPS origin of the CLI proxy, e.g. `https://cli-proxy.example.com`. |
|
|
181
|
+
| `services.monitoring.hubPort` | `8443` |
|
|
182
|
+
| `services.monitoring.publicUrl` | The public HTTPS origin of the monitoring dashboard. |
|
|
183
|
+
| `services.monitoring.managerAccount` | The email of the monitoring account the manager enrolls machines with. |
|
|
184
|
+
| `services.monitoring.viewerAccount` | The email of the read-only account visitors are signed in as. |
|
|
185
|
+
| `ubuntu` | `{ "release": "26.04", "architectures": ["amd64", "arm64"] }`: a release of the [support matrix](support-matrix.md). |
|
|
186
|
+
| `worker.requiredCapabilities` | Normally all of `github`, `vault`, `t3`, `toolchain`, `workstation`, `worker`. |
|
|
187
|
+
| `worker.githubLogin` | The GitHub login every worker must be signed in as. |
|
|
188
|
+
| `github` (optional) | Who the manager signs in to GitHub as, per-node tokens, required scopes; see [GitHub](github.md). |
|
|
189
|
+
| `worker.vaultUser` | The Vault user each worker's token is issued for. |
|
|
190
|
+
| `worker.toolchain` | `"mise.lock"` (fixed). |
|
|
191
|
+
| `worker.unattendedSudo`, `neverSleep` | `true` (fixed policy). |
|
|
192
192
|
|
|
193
193
|
Use the same values in every place they repeat. Validate before going on:
|
|
194
194
|
|
package/docs/releasing.md
CHANGED
|
@@ -18,8 +18,9 @@ release pins (a dependency of the package), falling back to a Bun on `PATH`.
|
|
|
18
18
|
|
|
19
19
|
Machines do not run the package. `sync` rebuilds every machine from one
|
|
20
20
|
git commit of this repository, and the package says which: the Release
|
|
21
|
-
workflow writes the commit it publishes from
|
|
22
|
-
|
|
21
|
+
workflow writes the commit it publishes from, and that commit's date, into
|
|
22
|
+
the package's `package.json` as `gitHead` and `gitCommittedAt`
|
|
23
|
+
([`src/package-info.ts`](../src/package-info.ts) reads them). Run
|
|
23
24
|
from the package, `sync` fetches that commit from the repository
|
|
24
25
|
`fleet.json` names under `source` into a cache the manager owns, and converges
|
|
25
26
|
the manager and every worker from checkouts of it. So a version of the package
|
|
@@ -42,8 +43,9 @@ Release. The commit messages choose the bump:
|
|
|
42
43
|
| otherwise any `feat:` | minor |
|
|
43
44
|
| otherwise | patch |
|
|
44
45
|
|
|
45
|
-
`package.json` stays at `0.0.0-development` and carries no `gitHead
|
|
46
|
-
workflow stamps the version
|
|
46
|
+
`package.json` stays at `0.0.0-development` and carries no `gitHead` or
|
|
47
|
+
`gitCommittedAt`; the workflow stamps the version, the commit and its date
|
|
48
|
+
into the package it publishes, so
|
|
47
49
|
nobody edits a version or runs `npm publish` by hand after the one-time setup
|
|
48
50
|
below. Merges that land while a release runs
|
|
49
51
|
wait, and the newest one releases everything since the last tag. A run that
|
package/docs/runbooks.md
CHANGED
|
@@ -14,7 +14,7 @@ It reads a code by where it stands, never by the word it ends with. The CLI
|
|
|
14
14
|
proxy documents the codes of its own commands in
|
|
15
15
|
[its README](../cliproxy/README.md); the ones converge reports are here.
|
|
16
16
|
|
|
17
|
-
There are
|
|
17
|
+
There are 458 codes; 106 need a person.
|
|
18
18
|
|
|
19
19
|
## Bootstrap of a new or returning worker
|
|
20
20
|
|
|
@@ -359,10 +359,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
359
359
|
- `T3_CUSTOMIZATIONS_INVALID`: check that keybindings are a JSON array, theme files are regular files listed by the pinned T3 CLI, and the encoded customization snapshot fits the 1 MiB fleet state document limit.
|
|
360
360
|
- `T3_CLIENT_SETTINGS_INVALID`: repair the manager’s client-settings.json so its settings are a JSON object.
|
|
361
361
|
- `T3_CLIENT_SETTINGS_TOO_LARGE`: the desktop preferences exceed the fleet state's 1 MiB document limit. Reduce the document on the manager and rerun converge.
|
|
362
|
-
- `T3_PROFILE_CONFLICT`: t3 profile conflict.
|
|
363
|
-
- `T3_PROFILE_PENDING`: t3 profile pending.
|
|
364
|
-
- `T3_PROFILE_RECORD_INVALID`: t3 profile record invalid.
|
|
365
|
-
- `T3_PROFILE_UNVERIFIED`: t3 profile unverified.
|
|
366
362
|
- `T3_RENDERER_LIMIT_UNVERIFIED`: check the delegated renderer cgroup after an idle desktop restart and recovery timer tick.
|
|
367
363
|
- `T3_RENDERERS_HIGH`: the desktop renderers exceed their memory budget. Reload the app when idle.
|
|
368
364
|
- `T3_PROTECTION_ESCAPED`: the T3 listener lacks its CPU, I/O or memory reserve; the summary names which (`cpu`, `io`, `memory`). Run converge: it declares the reserve for the unit T3 serves from and reloads the user manager, which applies it to the running T3 without a restart. `io` alone, while the user manager does not hand the io controller down (measured in its `cgroup.subtree_control`; its `cgroup.controllers` lists io as soon as the declaration is loaded), is not T3 leaving its unit and only warns: converge declares the controller, and the user manager takes it on its next start, so reboot the worker while it runs no agent turn (`homelab converge --maintenance-reboot`, which reboots for it as for pending updates); restarting T3 does not change it.
|
|
@@ -370,7 +366,6 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
370
366
|
- `T3_RESTART_PENDING`: a restart of the worker's T3 (a new release, a staged policy, a return to loopback) waits for its agent turns to end. The remedy says how long it has waited and when its deadline falls: `personal-worker-recovery` applies it at the first check with no turn running, and `t3RestartMaxDeferralHours` after it was first deferred although turns run, which ends them. A failure means the deadline passed and the timer did not apply it: check `worker:service-recovery` and run `homelab converge`. To restart at once, run `homelab converge --restart-busy`.
|
|
371
367
|
- `T3_SERVER_INSTALL_FAILED`: t3 server install failed: the pinned server of a headless worker is missing from the toolchain, or `t3-headless.yml` did not apply.
|
|
372
368
|
- `T3_SERVER_STOPPED`: t3 server stopped: the lingering `t3code-headless.service` of a headless worker is not running.
|
|
373
|
-
- `T3_SETTINGS_BUSY`: t3 settings busy.
|
|
374
369
|
- `T3_VERSION_UNKNOWN`: a warning of `t3:version`: T3 on the machine the check names has not recorded the version it runs, so it cannot be compared with the pin. Start T3 there once, then run `homelab converge`.
|
|
375
370
|
- `T3_VERSION_SKEW`: a warning of `t3:version`: T3 on the machine the check names runs another release than the fleet pins; the remedy names both. `homelab converge` installs the pinned release on a worker and restarts T3. On the manager, converge switches a running desktop to the verified bundle when the running release differs from the pin. The same release is left running. See `T3_DESKTOP_ACTIVATION_SCHEDULED`.
|
|
376
371
|
- `T3_UPDATES_UNMANAGED`: a failure of `t3:updates`: the administrator policy of T3 on the manager does not turn its own updater off, so T3 may update itself away from the pinned release. Stage the fleet's policy once, as an administrator, with the command the remedy prints. **Needs a person.**
|
|
@@ -380,6 +375,7 @@ runaway, write `1` to that agent scope’s `cgroup.kill`.
|
|
|
380
375
|
- `T3_NO_GRAPHICAL_SESSION`: logged by `personal-worker-recovery` on a desktop worker with a count: no graphical session is running, so the desktop app cannot run and the run fails. After three checks in a row the display manager is restarted so that auto-login starts a session, three times at most; after that the log says a person must log in at the worker.
|
|
381
376
|
- `T3_RESTART_DEADLINE`: not a failure. `personal-worker-recovery` logs it when a restart of T3 has waited `t3RestartMaxDeferralHours` (`ansible/ubuntu/policy.json`) and is applied although agent turns run: they end. `worker:t3-deadline-restarts` counts these of the last 24 hours as a warning. Nothing is left to repair: send the threads whose turn ended their next message.
|
|
382
377
|
- `WIP_GUARD_HEAVY`: a warning of `worker:wip-guard`: a run of the work-in-progress guard in the last 24 hours took longer than `resourceSafety.wipGuard.slowRunSeconds` or used more than `peakWarnMiB` (`ansible/ubuntu/policy.json`). Each run ends with a JSON `run` line in `journalctl --user -u personal-worker-wip-guard.service`. The cost is a worktree with a large tree of files Git does not ignore: ignore its build output or remove the worktree.
|
|
378
|
+
- `T3_BOOT_SERVING_LATE`: a failure of `worker:t3-health`: T3 answers now, but its unit became active later than `t3Service.bootServingSeconds` (`ansible/ubuntu/policy.json`) after this boot. A worker that lost power is given that long to serve on loopback with no one at the machine. Read the journal of the T3 unit and of `personal-worker-recovery` for what delayed the start.
|
|
383
379
|
- `T3_HANG_SNAPSHOT`: not a failure. `personal-worker-recovery` logs it on the first failed check of the T3 local API with the directory it wrote under `~/.local/state/personal/t3-hangs` (the newest ten are kept): each thread of T3 with the kernel call it waits in (`wchan`), the pressure, the busiest processes and the journal of the unit. Read it before the third failed check restarts T3 and destroys the evidence. `worker:t3-health` names the newest one after a restart.
|
|
384
380
|
- `T3_RESTART_BACKOFF`: not a failure. `personal-worker-recovery` logs it when T3 is unresponsive again soon after the watchdog restarted it: each restart for unresponsiveness within the hour makes the next one wait twice as long (`t3Service.restartBackoffBaseSeconds`, at most `restartBackoffMaxSeconds` in `ansible/ubuntu/policy.json`), so a persistent fault does not restart T3 every few minutes. Find the cause in the snapshots (`T3_HANG_SNAPSHOT`).
|
|
385
381
|
- `T3_RESTARTS_FREQUENT`: a failure of `worker:t3-stability`: the watchdog restarted T3 for being unresponsive more than `t3Stability.maxRestarts24h` times in the last 24 hours. Each restart leaves a server that answers, so no other check reports it. The remedy names the newest snapshots of why T3 hung; look for agents or recovery jobs running heavy work at that time.
|
package/docs/ubuntu-sync.md
CHANGED
|
@@ -579,7 +579,9 @@ by the client with the worker certificate in `check --workers --json`.
|
|
|
579
579
|
|
|
580
580
|
The worker seals the password with systemd credentials and publishes the RDP
|
|
581
581
|
item in the volatile session keyring at startup. Its encrypted login keyring
|
|
582
|
-
can stay locked
|
|
582
|
+
can stay locked: the desktop app stores Chromium passwords in a file
|
|
583
|
+
(`--password-store=basic` on `t3code-desktop.service`), so a locked keyring
|
|
584
|
+
never blocks T3. The desktop service shares the existing primary display.
|
|
583
585
|
The manager checks pre-authentication negotiation and the certificate.
|
|
584
586
|
A client login is needed to confirm authenticated control.
|
|
585
587
|
|
package/docs/worker-contract.md
CHANGED
|
@@ -89,8 +89,11 @@ a blocking socket send (`wchan` `sock_alloc_send_pskb`) while the local API
|
|
|
89
89
|
timed out, and every stop waited the full stop timeout (#501). The headless
|
|
90
90
|
server (`t3code-headless.service`) is the same server without any of those
|
|
91
91
|
peers: it starts at boot with nobody logged in, needs no display manager, GPU
|
|
92
|
-
or desktop packages, and waits for no graphical session.
|
|
93
|
-
the
|
|
92
|
+
or desktop packages, and waits for no graphical session. A desktop worker that
|
|
93
|
+
stays on the desktop app stores Chromium passwords in a file
|
|
94
|
+
(`--password-store=basic`), so the locked login keyring of an unattended
|
|
95
|
+
session cannot block its main thread either. Whether headless also stops the
|
|
96
|
+
stalls is measured on the canary, not assumed (below).
|
|
94
97
|
|
|
95
98
|
What on a worker needs the desktop app, and what does not. Each row says where
|
|
96
99
|
it is established:
|
|
@@ -337,6 +340,19 @@ one:
|
|
|
337
340
|
drop SSH. `converge --maintenance-reboot` upgrades it to the pin in a
|
|
338
341
|
detached unit and waits for the worker to answer again.
|
|
339
342
|
|
|
343
|
+
After an unclean power loss a worker reaches "T3 answers on loopback" with
|
|
344
|
+
no one at the machine. `t3Service.bootServingSeconds` (`ansible/ubuntu/policy.json`,
|
|
345
|
+
180 seconds from the boot) is that limit, and `worker:t3-health` fails with
|
|
346
|
+
`T3_BOOT_SERVING_LATE` when this boot's T3 unit became active later than
|
|
347
|
+
that. The tunnel registers once the server answers; the check measures the
|
|
348
|
+
loopback API, which is what the watchdog and the route both need. A desktop
|
|
349
|
+
worker's unit stores Chromium passwords in a file under `T3CODE_HOME`
|
|
350
|
+
(`--password-store=basic`), so a locked login keyring never blocks the T3
|
|
351
|
+
path; the RDP credential stays in the volatile session keyring. The VM test
|
|
352
|
+
power-cycles the guest without a clean shutdown and requires the headless
|
|
353
|
+
server to answer within that limit, and the desktop path within the longer
|
|
354
|
+
time a graphical auto-login takes.
|
|
355
|
+
|
|
340
356
|
A package run cut off by a power loss is finished by the next sync: the
|
|
341
357
|
baseline waits for the APT lock, runs `dpkg --configure -a` once (bounded to
|
|
342
358
|
ten minutes) and audits again; only a database still inconsistent stops with
|