@crvouga/homelab 0.23.1 → 0.23.3
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/ansible/ubuntu/tasks/power.yml +1 -1
- package/cliproxy/README.md +2 -2
- package/cliproxy/docs/deployment.svg +1 -1
- package/cliproxy/launchd/dev.homelab.cliproxy-backup.plist +0 -12
- package/cliproxy/scripts/external-health.py +2 -2
- package/cliproxy/scripts/monitor +2 -2
- package/cliproxy/systemd/cliproxy-backup.timer +2 -2
- package/mise.lock +53 -17
- package/mise.toml +1 -1
- package/package.json +2 -2
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
stdin: '{{ firmware_settings.stdout | trim }}'
|
|
86
86
|
environment:
|
|
87
87
|
POWER_LOSS_SETTINGS: '{{ powerLossRecovery.settings | to_json }}'
|
|
88
|
-
POWER_LOSS_VALUES:
|
|
88
|
+
POWER_LOSS_VALUES: "{{ powerLossRecovery['values'] | to_json }}"
|
|
89
89
|
register: power_loss_selection
|
|
90
90
|
changed_when: false
|
|
91
91
|
check_mode: false
|
package/cliproxy/README.md
CHANGED
|
@@ -66,7 +66,7 @@ On the manager the installer runs as the logged-in user (never sudo). It links t
|
|
|
66
66
|
| `dev.homelab.cliproxy-fleet` | `cliproxy-fleet.service` | at load/login; retried on error |
|
|
67
67
|
| `dev.homelab.cliproxy-monitor` | `cliproxy-monitor.timer` | every 5 minutes |
|
|
68
68
|
| `dev.homelab.cliproxy-vault-renew` | `cliproxy-vault-renew.timer` | at load, then every 15 minutes |
|
|
69
|
-
| `dev.homelab.cliproxy-backup` | `cliproxy-backup.timer` |
|
|
69
|
+
| `dev.homelab.cliproxy-backup` | `cliproxy-backup.timer` | hourly, minute 0 |
|
|
70
70
|
| `dev.homelab.cliproxy-backup-check` | `cliproxy-backup-check.timer` | Sunday 05:00 |
|
|
71
71
|
| `dev.homelab.cliproxy-gc` | `cliproxy-gc.timer` | Sunday 04:00 |
|
|
72
72
|
|
|
@@ -185,7 +185,7 @@ homelab proxy check-full
|
|
|
185
185
|
|
|
186
186
|
Vault login is interactive with hidden input; its token is restricted locally and renewed every 15 minutes where permitted. Maximum token lifetime still applies; re-login when renewal is no longer allowed. The Restic password has an independent existing copy at `CLIPROXY_FLEET_RESTIC_PASSWORD`. Secret creation/rotation goes through the platform's `bun run vault:edit`/OpenTofu workflow, not runtime helpers.
|
|
187
187
|
|
|
188
|
-
Encrypted cloud checkpoints run every
|
|
188
|
+
Encrypted cloud checkpoints run every hour (legacy systemd adds up to 30 seconds jitter). A checkpoint never stops, pauses or restarts the stack: agents use the proxy around the clock, and a stopped connector fails every request. The capture copies the live state and keeps the copy only if no state file changed while it was taken (retrying a few times); a stack that never holds still fails that backup. A failed capture, restart, upload or retention operation records failure and never advances the success marker. Retention keeps the latest 96 snapshots plus 7 daily, 5 weekly and 12 monthly. Weekly integrity checks read 10% of stored data; `check-full` reads all data. Monitoring fails when the last successful checkpoint is older than 45 minutes. Failures are visible in `cliproxy status` (and `launchctl print gui/$UID/LABEL` or systemd); off-machine checks also run through the CLI proxy health workflow described below.
|
|
189
189
|
|
|
190
190
|
R2 checkpoints are the durable recovery source for config, provider OAuth/account state and the dedicated Tailscale identity. Local state is a working cache with asynchronous durability: normally up to approximately 15 minutes plus upload duration can be lost, and an outage can extend that indefinitely. Run a successful manual checkpoint after important login/config changes or before moving machines. Provider refresh-token invalidation can still require a fresh provider login after recovering an older checkpoint. Each checkpoint records a digest of every refresh token, so `restore-verify RESTORED --newest NEWEST` names exactly the accounts that need one. This is a single-writer deployment, with operator fencing of the previous node; there is no distributed lease or active-active support.
|
|
191
191
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<text x="435" y="720" text-anchor="middle" class="label">Working cache</text>
|
|
54
54
|
<text x="435" y="746" text-anchor="middle" class="detail">OAuth + config</text>
|
|
55
55
|
<path d="M 550 728 H 516" class="storage" marker-start="url(#arrow)"/>
|
|
56
|
-
<text x="356" y="818" class="detail">Health monitoring · Vault renewal · cloud checkpoint every
|
|
56
|
+
<text x="356" y="818" class="detail">Health monitoring · Vault renewal · cloud checkpoint every hour</text>
|
|
57
57
|
|
|
58
58
|
<rect x="1140" y="686" width="246" height="104" rx="15" class="box"/>
|
|
59
59
|
<text x="1263" y="719" text-anchor="middle" class="label">AI provider</text>
|
|
@@ -29,18 +29,6 @@
|
|
|
29
29
|
<key>Minute</key>
|
|
30
30
|
<integer>0</integer>
|
|
31
31
|
</dict>
|
|
32
|
-
<dict>
|
|
33
|
-
<key>Minute</key>
|
|
34
|
-
<integer>15</integer>
|
|
35
|
-
</dict>
|
|
36
|
-
<dict>
|
|
37
|
-
<key>Minute</key>
|
|
38
|
-
<integer>30</integer>
|
|
39
|
-
</dict>
|
|
40
|
-
<dict>
|
|
41
|
-
<key>Minute</key>
|
|
42
|
-
<integer>45</integer>
|
|
43
|
-
</dict>
|
|
44
32
|
</array>
|
|
45
33
|
<key>LowPriorityIO</key>
|
|
46
34
|
<true/>
|
|
@@ -34,7 +34,7 @@ def endpoint_health(endpoint, key, request=cloud_state.request):
|
|
|
34
34
|
|
|
35
35
|
def cloud_health(restic):
|
|
36
36
|
snapshot = cloud_state.latest(restic)
|
|
37
|
-
cloud_state.fresh(snapshot["time"],
|
|
37
|
+
cloud_state.fresh(snapshot["time"], 3 * 60 * 60)
|
|
38
38
|
path = snapshot["paths"][0].rstrip("/") + "/state/status/gc-success.json"
|
|
39
39
|
gc = json.loads(restic("dump", snapshot["id"], path))
|
|
40
40
|
cloud_state.fresh(gc["time"], 9 * 86400)
|
|
@@ -60,7 +60,7 @@ def main():
|
|
|
60
60
|
try:
|
|
61
61
|
cloud_health(cloud_state.client(data))
|
|
62
62
|
print(
|
|
63
|
-
"PASS: cloud checkpoint under
|
|
63
|
+
"PASS: cloud checkpoint under 3 hours old; successful GC under nine days old."
|
|
64
64
|
)
|
|
65
65
|
except Exception:
|
|
66
66
|
errors.append("Cloud checkpoint or GC freshness/readability failed.")
|
package/cliproxy/scripts/monitor
CHANGED
|
@@ -34,8 +34,8 @@ if not f.exists():
|
|
|
34
34
|
else:
|
|
35
35
|
try:
|
|
36
36
|
t = datetime.datetime.fromisoformat(json.loads(f.read_text())["time"])
|
|
37
|
-
if (datetime.datetime.now(datetime.timezone.utc) - t).total_seconds() >
|
|
38
|
-
issues.append("Cloud checkpoint older than
|
|
37
|
+
if (datetime.datetime.now(datetime.timezone.utc) - t).total_seconds() > 3 * 60 * 60:
|
|
38
|
+
issues.append("Cloud checkpoint older than 3 hours.")
|
|
39
39
|
except Exception:
|
|
40
40
|
issues.append("Invalid backup status record.")
|
|
41
41
|
if (r / "state/status/vault-failed").exists():
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[Unit]
|
|
2
|
-
Description=CLIProxyAPI cloud checkpoint every
|
|
2
|
+
Description=CLIProxyAPI cloud checkpoint every hour (brief capture pause)
|
|
3
3
|
[Timer]
|
|
4
|
-
OnCalendar
|
|
4
|
+
OnCalendar=hourly
|
|
5
5
|
RandomizedDelaySec=30s
|
|
6
6
|
Persistent=true
|
|
7
7
|
[Install]
|
package/mise.lock
CHANGED
|
@@ -325,39 +325,75 @@ dependency_prereleases = "allow"
|
|
|
325
325
|
with = '["pip"]'
|
|
326
326
|
|
|
327
327
|
[[tools.bat]]
|
|
328
|
-
version = "0.
|
|
328
|
+
version = "0.27.0"
|
|
329
329
|
backend = "aqua:sharkdp/bat"
|
|
330
|
-
specifiers = ["0.
|
|
330
|
+
specifiers = ["0.27.0"]
|
|
331
331
|
|
|
332
332
|
[tools.bat."platforms.linux-arm64"]
|
|
333
|
-
checksum = "sha256:
|
|
333
|
+
checksum = "sha256:42227d776ba1ee48f7f66d666264e36fbfcb826104bea565b740a6240727635e"
|
|
334
334
|
checksum_source = "mise-versions"
|
|
335
|
-
url = "https://github.com/sharkdp/bat/releases/download/v0.
|
|
336
|
-
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/
|
|
335
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-aarch64-unknown-linux-gnu.tar.gz"
|
|
336
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803661087"
|
|
337
|
+
|
|
338
|
+
[tools.bat."platforms.linux-arm64-musl"]
|
|
339
|
+
checksum = "sha256:4a071fc6bcf3cd6eca70981b172cf0f0e25ba8caa286daddaf4303576172f9bd"
|
|
340
|
+
checksum_source = "mise-versions"
|
|
341
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-aarch64-unknown-linux-musl.tar.gz"
|
|
342
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803660755"
|
|
337
343
|
|
|
338
344
|
[tools.bat."platforms.linux-x64"]
|
|
339
|
-
checksum = "sha256:
|
|
345
|
+
checksum = "sha256:0ac86f417ef02d5dc07ac641c84ee979d3781a6482656fa957b3803737955223"
|
|
346
|
+
checksum_source = "mise-versions"
|
|
347
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-unknown-linux-gnu.tar.gz"
|
|
348
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803662118"
|
|
349
|
+
|
|
350
|
+
[tools.bat."platforms.linux-x64-baseline"]
|
|
351
|
+
checksum = "sha256:0ac86f417ef02d5dc07ac641c84ee979d3781a6482656fa957b3803737955223"
|
|
352
|
+
checksum_source = "mise-versions"
|
|
353
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-unknown-linux-gnu.tar.gz"
|
|
354
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803662118"
|
|
355
|
+
|
|
356
|
+
[tools.bat."platforms.linux-x64-musl"]
|
|
357
|
+
checksum = "sha256:350b244087c555d316f82c3c2ee45e3273b4dac2530890be892452eb8aa3d22c"
|
|
340
358
|
checksum_source = "mise-versions"
|
|
341
|
-
url = "https://github.com/sharkdp/bat/releases/download/v0.
|
|
342
|
-
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/
|
|
359
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-unknown-linux-musl.tar.gz"
|
|
360
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803660760"
|
|
361
|
+
|
|
362
|
+
[tools.bat."platforms.linux-x64-musl-baseline"]
|
|
363
|
+
checksum = "sha256:350b244087c555d316f82c3c2ee45e3273b4dac2530890be892452eb8aa3d22c"
|
|
364
|
+
checksum_source = "mise-versions"
|
|
365
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-unknown-linux-musl.tar.gz"
|
|
366
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803660760"
|
|
343
367
|
|
|
344
368
|
[tools.bat."platforms.macos-arm64"]
|
|
345
|
-
checksum = "sha256:
|
|
369
|
+
checksum = "sha256:3bd50d70e1a2c52c57b4ffaaee3113595ec970604bf1b4e2e0992e3e1752c23b"
|
|
346
370
|
checksum_source = "mise-versions"
|
|
347
|
-
url = "https://github.com/sharkdp/bat/releases/download/v0.
|
|
348
|
-
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/
|
|
371
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-aarch64-apple-darwin.tar.gz"
|
|
372
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803663887"
|
|
349
373
|
|
|
350
374
|
[tools.bat."platforms.macos-x64"]
|
|
351
|
-
checksum = "sha256:
|
|
375
|
+
checksum = "sha256:29029a4aaecef1ec873aa319047bf70803026bd3eaff664011fff650f73355f9"
|
|
376
|
+
checksum_source = "mise-versions"
|
|
377
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-apple-darwin.tar.gz"
|
|
378
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803676239"
|
|
379
|
+
|
|
380
|
+
[tools.bat."platforms.macos-x64-baseline"]
|
|
381
|
+
checksum = "sha256:29029a4aaecef1ec873aa319047bf70803026bd3eaff664011fff650f73355f9"
|
|
352
382
|
checksum_source = "mise-versions"
|
|
353
|
-
url = "https://github.com/sharkdp/bat/releases/download/v0.
|
|
354
|
-
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/
|
|
383
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-apple-darwin.tar.gz"
|
|
384
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803676239"
|
|
355
385
|
|
|
356
386
|
[tools.bat."platforms.windows-x64"]
|
|
357
|
-
checksum = "sha256:
|
|
387
|
+
checksum = "sha256:3c0b0a9765bd4679de82a1f2772c522025eea5a1de5f7b97c6fa119c25721b1b"
|
|
388
|
+
checksum_source = "mise-versions"
|
|
389
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-pc-windows-msvc.zip"
|
|
390
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803668054"
|
|
391
|
+
|
|
392
|
+
[tools.bat."platforms.windows-x64-baseline"]
|
|
393
|
+
checksum = "sha256:3c0b0a9765bd4679de82a1f2772c522025eea5a1de5f7b97c6fa119c25721b1b"
|
|
358
394
|
checksum_source = "mise-versions"
|
|
359
|
-
url = "https://github.com/sharkdp/bat/releases/download/v0.
|
|
360
|
-
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/
|
|
395
|
+
url = "https://github.com/sharkdp/bat/releases/download/v0.27.0/bat-v0.27.0-x86_64-pc-windows-msvc.zip"
|
|
396
|
+
url_api = "https://api.github.com/repos/sharkdp/bat/releases/assets/803668054"
|
|
361
397
|
|
|
362
398
|
[[tools.bun]]
|
|
363
399
|
version = "1.4.5"
|
package/mise.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/homelab",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.3",
|
|
4
4
|
"description": "Keeps a set of development machines in sync: one manager and many workers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:crvouga/homelab",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "056b94c9da4012ea73d86fbd5dc55309a44dc65d"
|
|
77
77
|
}
|