Author SHA1 Message Date
inference-bot 98a9914fdb pricing docs: close the GreenPT currency question — its docs state EUR 2026-11-27 18:03:23 +00:00
inference-bot 5cea756da0 pricing docs: USD columns at the ECB pin (1.0975), not the retired 1.16
GreenPT's USD column and the Regolo migration note carried 1.16 conversions.
Regenerate the served-model figures at the committed fallback pin (ECB
2026-11-26) and say plainly that the gateway re-converts daily at boot.
2026-11-27 17:58:13 +00:00
inference-bot 3e0405d2da backup docs: record new 10 GB S3 site and verified first run 2026-11-21 17:57:08 +00:00
inference-bot e5f4d1d83b backup docs: record temporary local-site bridge during S3 rebuild 2026-11-21 17:35:05 +00:00
inference-bot e88febb679 backup docs: live-object deletion did not free provider quota 2026-11-21 17:07:16 +00:00
inference-bot a40f54ef20 backup docs: record live 2/day 48h config and the whale-orphan residue 2026-11-21 16:56:35 +00:00
inference-admin f738b855b0 Merge pull request 'Document bot-scoped steward access and key-only operator root' (#6) from security/host-access-model into main
Reviewed-on: #6
2026-11-21 16:14:08 +00:00
4 changed files with 45 additions and 22 deletions

No files matched your search

+29 -11
View File
@@ -10,10 +10,10 @@ mistake — they do not back each other up, and neither one covers the other's h
| Machine | Agent host `ov-0f018e` (`179.237.103.165`) | The Cloudron server `179.237.86.116` |
| Tool | `restic` (client-side encrypted, run nightly by a systemd timer) | Cloudron's built-in backup (dashboard-configured) |
| Target | Infomaniak **Swiss Backup** (S3-compatible) | Infomaniak **Swiss Backup** (S3-compatible, `s3-v4-compat`) |
| Schedule | 04:30 UTC + up to 5 min jitter (`agent-backup.timer`) | daily 23:00 UTC (`00 00 23 * * *`) |
| Retention | 7 daily / 4 weekly / 3 monthly, no grouping | 7 days (`keepWithinSecs: 604800`) |
| Schedule | 04:30 UTC + up to 5 min jitter (`agent-backup.timer`) | 23:00 UTC daily (`00 00 23 * * *`) |
| Retention | 7 daily / 4 weekly / 3 monthly, no grouping | 48 h (`keepWithinSecs: 172800`) |
| Config lives | installed as `/usr/local/sbin/agent-backup` (root-owned) from `~/.hermes/scripts/backup.sh`; unit at `/etc/systemd/system/agent-backup.*` | Cloudron dashboard (no write API — see below) |
| Last verified | 2026-11-04 (13 snapshots in the repo) | 2026-11-02 (runs 2026-10-30 → 11-03 all `normal`, ~5.4 GB) |
| Last verified | 2026-11-04 (13 snapshots in the repo) | 2026-11-21: new S3 bucket 1 run / 2.455 GB, integrity passed; local bridge run also verified |
Nothing on the Cloudron **host OS** is backed up by either system (netplan, sshd,
`authorized_keys`, hand-edited `/etc`) — build the box, do not expect to restore
@@ -112,20 +112,38 @@ having failed.
- Configured in the **dashboard** (*Settings → Backups*). There is **no write
API**: `GET /api/v1/backup_sites` works, but `PUT`/`POST` on it and
`POST /backups` all 404. Schedule and retention are dashboard-only.
- **Two sites exist:** the live one (`s3-v4-compat`, daily 23:00, 7-day
retention, id `03cfbdca-88fc-4ccc-97c3-7e1b58cf892d`) and an inactive
`filesystem` site with schedule `never`. Do not be alarmed by the second one.
- **Two sites exist:** the primary S3 site `5c566609-fedf-4619-8188-e5359728b52c`
(`Infomaniak encrypted backup`, daily **23:00 UTC**, **48 h** retention, bucket
`default`, prefix `cloudron-encrypted/`) and the `filesystem` update site
`931b6104-97ba-4a34-941c-51d1e3c53778` (`/mnt/data/backups`, schedule `never`,
7 d, `enableForUpdates: true`, unencrypted). The old wedged site
`03cfbdca-88fc-4ccc-97c3-7e1b58cf892d` and its bucket were deleted on 2026-11-21.
- **Quota math must be measured bucket-side, not derived from `/backups`.** The old
bucket held 23.70 GB live while the provider's manager read 173.51 GB — the extra
~166 GB was orphaned Swift SLO segments from repeated 8.12 GB registry tars, and
S3 deletes never freed them. The new bucket's first run is 2.455 GB (one session +
one mirror), clean: 84 objects, no versioning, no noncurrent versions.
Disabling an app's backup stops future uploads but never deletes its last mirror
object; a copy-phase failure leaves a session dir that retention never prunes.
Decompose the bucket by top-level dir against retained `remotePath`s before
believing a capacity fix worked. Deleting those live objects on 2026-11-21
(bucket 23.70 → 6.94 GB, keys verified gone) did **not** free the provider quota:
a 1 MB PUT and a multipart initiate still returned `EntityTooLarge` after 10+
minutes, with S3 versioning `None` and no noncurrent versions. Treat live-object
deletion as unproven until the manager's own "used space" moves; the suspect is
orphaned Swift SLO segments from >5 GiB objects.
- **A run reads `state=normal` even when it failed.** The failure's real error
text is in `GET /api/v1/tasks` (task id `backup_<siteId>`, field `error.message`),
not in the run list. `/events` needs a `?since=` range and `/system/logs` does
not exist — a 404 there is not "no failures".
- `/backup_sites` carries `schedule` as a 6-field cron and `retention.keepWithinSecs`.
Check retention **before** claiming it needs changing.
- **Quota math:** a failure whose upload pushed the retained set over the
provider ceiling is the signature. The old box's `EntityTooLarge` failures came
from a 4.82 GB run twice daily against the ceiling; the ceiling was raised and
the schedule moved to once daily. Per-run size still grows (mostly registry
image blobs) — watch the number.
- **Quota math:** the failure signature is a provider-side rejection while the
account is at its effective ceiling, not necessarily a large latest run. Current
run size is ~1.06–1.22 GB after the registry was excluded (`enableBackup=false`),
and 48 h retention keeps ~5 runs (5.72 GB). One scheduled run fits in the remaining
headroom; the next fails. Never size the plan from the retained set — 2026-11-21
rejected a 1 MB PUT at 23.70 GB actual usage.
- **Two boxes on one S3 bucket interleave and prune each other's backups.** The
old box's schedule must stay **disabled** while it is kept for rollback.
- **Cross-check `siteId` per run:** runs on an old site id are pre-migration
+8 -5
View File
@@ -37,11 +37,14 @@ price from a provider's public page (they drift, and some are login-walled).
## A note on currencies
Regolo quotes in **EUR**; the gateway converts at the **ECB daily reference rate** at boot
(the rate our numbers use — `regolo.md` documents the derivation). GreenPT's own
listed rates appear in **EUR with the same numerals the gateway carries** —
whether an EUR→USD conversion is intended there is **unverified**; confirm it
against the GreenPT invoice before treating the figures as final.
Regolo and GreenPT both quote in **EUR**; the gateway converts at the **ECB
daily reference rate** at boot (`regolo.md` documents the derivation; the
committed USD fallback is pinned in `code/litellm` and named there as
`FX_FALLBACK_USD`, 1.0975 = ECB 2026-11-26). GreenPT's Token Pricing page states
plainly that **prices are in EUR** for the EU region, and its numerals match the
gateway's EUR table (checked 2026-11-27: `deepseek-v4.1-flash-1017` €0.36 /
€0.04 cached / €1.45; `glm-5.3` €1.10 / €0.275 / €4.40) — so the conversion
applies to them like Regolo's.
"
## Automation (2026-11-18)
+5 -5
View File
@@ -8,13 +8,13 @@ talks to it **directly** (no TEE proxy). Billing across the gateway:
## What we serve, and what it costs
GreenPT quotes in **EUR**; EUR is the source of truth. The gateway converts at the **ECB daily reference rate** at boot (fail-open if the feed is down) and stores USD per-token equivalents. The fixed 1.16 figures are fallbacks only.
GreenPT quotes in **EUR**; EUR is the source of truth. The gateway converts at the **ECB daily reference rate** at boot (fail-open if the feed is down) and stores USD per-token equivalents. The committed USD figures are a fallback pinned at **1.0975 (ECB 2026-11-26)**; the USD column below is that pin, not a new list price.
| our model | input (EUR) | output (EUR) | cached (EUR) | gateway USD in / out / cached |
| our model | input (EUR) | output (EUR) | cached (EUR) | USD fallback at 1.0975, in / out / cached |
|---|---|---|---|---|
| `greenpt/deepseek-v4.1-flash` **(DEFAULT model)** | €0.36 | €1.45 | €0.04 | $0.4176 / $1.682 / $0.0464 |
| `greenpt/glm-5.3-flash` | €0.11 | €0.44 | €0.022 | $0.1276 / $0.5104 / $0.02552 |
| `greenpt/glm-5.3` | €1.10 | €4.40 | €0.275 | $1.276 / $5.104 / $0.319 |
| `greenpt/deepseek-v4.1-flash` **(DEFAULT model)** | €0.36 | €1.45 | €0.04 | $0.3951 / $1.5914 / $0.0439 |
| `greenpt/glm-5.3-flash` | €0.11 | €0.44 | €0.022 | $0.1207 / $0.4829 / $0.0241 |
| `greenpt/glm-5.3` | €1.10 | €4.40 | €0.275 | $1.2073 / $4.829 / $0.3018 |
- **`greenpt/deepseek-v4.1-flash` is the gateway's default model, and since 2026-11-16 it serves the
**1017 snapshot** (GreenPT no longer recommends the base release) under the same
+3 -1
View File
@@ -32,7 +32,9 @@ subscription note: Qwen-Image is *not included* in any plan).
## What we serve, and the change it needs
Peg: EUR x 1.16 -> USD, the rate our numbers already use.
Peg at the time of this change: EUR x 1.16 -> USD. Since 2026-11-18 the gateway
converts at the **ECB daily reference rate** (1.0975 on 2026-11-26), so the USD
figures in this section are the conversion at that migration, not a live rate.
| our model | old USD/M | new USD/M (from 2026-11-01) | direction |
|---|---|---|---|