Commit Graph
96 Commits
Author SHA1 Message Date
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
inference-bot cd5960f62d security: document bot-scoped steward access and key-only operator root
Rewrite the host-access runbook for the installed model: ubuntu may sudo into the bot accounts and run the docs/backup allowlist but has no root; operator holds NOPASSWD:ALL via its own SSH key; root SSH stays closed. Record the closed backup root path, the silent watchdog, verification commands, safe-mode recovery, and rollback. Update the fleet and backup pages to match.
2026-11-21 16:08:20 +00:00
inference-admin f63096d4dc security: make Woodpecker status advisory until runners are isolated 2026-11-20 01:08:33 +00:00
inference-admin 86012fc879 security: document root-trust watchdog 2026-11-20 00:50:00 +00:00
inference-admin 3d4fac124d security: record residual root-trust gap in the backup timer 2026-11-20 00:31:09 +00:00
inference-admin 5d1c2a5158 security: document restricted sudo policy and root-owned backup path 2026-11-20 00:25:31 +00:00
inference-admin e2879dbdc2 security: document timestamped HMAC on the key feed 2026-11-20 00:23:28 +00:00
inference-admin ec7fa33c77 security: enable backup bucket versioning; document object-lock gap 2026-11-20 00:13:26 +00:00
inference-admin 5ad233c612 security: root-only backup credentials, internal-only key feed, corrected cadence 2026-11-19 23:41:16 +00:00
inference-admin d106f7cf01 inventory: page-fetch app and fetcher key; portal Matrix bot is @coop-portal 2026-11-19 23:09:09 +00:00
inference-admin 3044e448cd credentials: drop retired Open WebUI keys and rag_refresh job 2026-11-19 22:44:50 +00:00
inference-admin 2ea42979b5 credentials: PORTAL_SECRET retired with the /v1 proxy 2026-11-19 22:39:15 +00:00
inference-admin 82eaf274af Agent fleet: portal uses a non-admin room bot; @ops_audit retired 2026-11-19 21:55:03 +00:00
inference-admin c585cb7228 pricing docs: nightly ECB FX refresh (boot sync + 04:30 UTC restart timer) 2026-11-18 18:11:15 +00:00
inference-admin b792198b36 pricing docs: USD conversion is the ECB daily rate, not a frozen 1.16 2026-11-18 17:58:40 +00:00
inference-admin 4525142e0b pricing docs: EUR is the source of truth; gateway converts at 1.16 to USD
GreenPT and Regolo tables now show EUR list prices plus the USD figures the gateway
stores. Notes the policy date and that historical spend rows were understated (no
backfill).
2026-11-18 17:24:48 +00:00
inference-admin 2fda1bcc29 ops: working-group bots get one Unix user each, with their own studio room
Supersedes the tier-2 profile plan (#33). Shared Unix users let sibling profiles read
each other's .env, so permission boundaries between working groups would be nominal.
Records designbot as the first instance: own user/unit/team, #DesignBot Studio room
outside the Space, invite-only, mention-only.
2026-11-17 21:54:17 +00:00
inference-admin c2a9029d00 README: index the model-transitions runbook 2026-11-16 20:12:50 +00:00
inference-admin 02a75a1868 runbook: model transitions (repoint vs rename), with the three lists to keep in step
Written from today's DeepSeek 1017 repoint: the spend-log measurement that chose
repointing (3,014 calls on the prefixed id vs 84 on the alias), the aliases that
duplicate litellm_params and must move with the pointer, the emission-factor keys
that silently degrade on a rename, and the picker that only needs touching when
the id changes. Verification is a spend row, not an HTTP 200.
2026-11-16 20:12:44 +00:00
inference-admin 4a7a4be1a7 greenpt: default model serves the 1017 snapshot at the new rates 2026-11-16 15:53:14 +00:00
inference-admin 3008a02553 coop_chart: one concise chart vocabulary for both apps
Members · Requests · Spend · Money · Energy · Carbon. The titles were carrying
the unit ('Requests per day', 'Token spend per day') while the axis already
labels the unit, so the menus read long and the two apps said different things
in different places. The aria label still reads '<title> over time'.
2026-11-13 21:26:27 +00:00
inference-admin 8557f636f8 woodpecker-ci: the shared chart module also owns the definitions now 2026-11-13 21:02:05 +00:00
inference-admin e6d27b3775 chart module: add the definition layer — one description of every chart
The two UIs shared only the drawing primitives, so the same five metrics shipped
with different titles AND different kinds (the panel's "Spend per day" was the
dashboard's "What the co-op spent (members + the co-op's own accounts)"), and
Money was a whole separate tab with four renderers of its own.

CHART_METRICS is now the one place a chart is described — id, title, kind
(line|bar|multi), axis rule, value formatter, series — and renderChart() draws any
of them, registering the exact tooltip values and breaking lines at NULLs as
before. Money is a metric like the others (a "multi" chart: cumulative revenue,
cumulative token spend, and the OC balance as a gap before snapshots began).
fmtMoney/fmtMetric/fmtMoneyTick are shared so labels cannot drift.

Each app keeps what legitimately differs: its data source, its toggle classes, its
empty-state markup, its DOM. Nothing identifying belongs in this list.
2026-11-13 20:55:52 +00:00
inference-bot 65e3726d90 shared chart module: canonical coop_chart.js + sync/check scripts
Hand-rolled chart rendering + exact-value hover tooltips as ONE module
(no library, no CDN): tooltip machinery, niceStep (count vs 1/2/5 x 10^k),
measured runs (NULL stays a gap), frame/date-marks/bars/lines/hover-targets.
Byte-identical copies ship in admin-panel and member-dashboard (app/coop_chart.js),
pinned by tests/test_chart_sync.py in each; check-chart-sync.py is the
pre-deploy gate, sync-chart-module.sh re-copies + re-pins both apps.
Vendored check-page-js.sh (skill copy + both apps) now splices the module
into the extracted page JS exactly as the apps do at import time.
2026-11-13 16:11:16 +00:00
inference-bot 23d2fc0eb2 Shared code: single-source the OIDC client; record the guest-state consolidation
- scripts/shared/oidc_client.py is the canonical OIDC client module; the
  dashboard and panel ship byte-identical copies (pinned by
  tests/test_oidc_sync.py in each repo). sync-oidc-module.sh re-copies +
  re-pins; check-oidc-sync.py is the pre-deploy gate;
  scripts/shared/test_oidc_client.py is the behaviour harness.
- maintenance/shared-code-and-guest-state.md records the guest-state
  single-derivation design (portal serves state; panel/dashboard are pure
  shims), the deploy record with rollback tags, and the CI follow-up.
- app-inventory.md: the three apps' tags refreshed to the 20261111 deploys;
  the stale 'admin panel = local/coop...' registry-path note corrected
  against the live API (all three live under code/).
2026-11-11 05:24:57 +00:00
inference-bot 206c3d5379 ops: push-gated CI live (12+2 suites, red-test proven, merge gate on); fail-closed config validators shipped to gateway+chat and proven; three backfilled incident write-ups (yaml outage, Loomio invite blast, stale-image deploy) + the 69-var portal env manifest 2026-11-11 04:13:00 +00:00
inference-bot 2c38f4d2c3 upgrade window 2026-11-09: executed (gateway 1.108.3, chat overlay 1.4.8) — record the outcome, the 400 MB task-limit OOM and its --no-backup remedy, and refresh the live image pins 2026-11-09 05:04:27 +00:00
inference-bot 52e3c9d502 runbook: re-check the upgrade window against live state — correct the rollback tag, mark the prebuilt candidate stale, extend the marker list to ten, and flag the failing backups as the open risk 2026-11-09 04:17:06 +00:00
inference-bot 5a4492e725 ops: document the member provisioning boundary (org-backed, credit-pack, manual, hidden-email) and the daily paid-but-unprovisioned watchdog 2026-11-07 00:27:15 +00:00
inference-bot 0f40dcc519 runbook: add the standing supply-chain IoC check to the gateway verify steps 2026-11-06 04:11:11 +00:00
inference-bot 816961fb2d runbook: 2026-11-08 upgrade window — LiteLLM 1.103.2→1.108.0 + LibreChat overlay 1.4.5→1.4.8
Prepared and validated on 2026-11-06; nothing deployed. Candidates:
- code/litellm branch upgrade-v1.108.0 → image 1.0.0-20261106-9e25578
  (8/8 patches verified in the built image and in a live sandbox run;
  image-gen spend row verified nonzero twice — fake + real Regolo probe;
  36 additive migrations; budget_reset_at + portal API shapes unchanged).
- co-op/librechat-custom branch bump-appstore-1.4.8 → overlay 20261106-c2aec74
  (appstore 1.4.8 = tooling bumps on the same 0.8.8 upstream; all overlay
  anchors verified against the real 1.4.8 image — no porting needed).
Runbook: LiteLLM first, member-scope verification, rollback = previous tag
per app, window estimate 45-60 min.
2026-11-06 04:11:01 +00:00
inference-bot fcd4ac6943 incident: portal's copied LiteLLM DB credential rotted after the 2026-11-05 gateway restore; all-time spend silently read $0 — timeline, fix, the digest spend-consistency guard, and the two-copies-of-one-secret dependency flagged for the next rotation 2026-11-05 19:10:26 +00:00
inference-bot bb10d93412 incident: 2026-11-05 gateway addon loss during multi-app deploy — wiped LiteLLM DB, restored from the pre-deploy snapshot the same hour
Full mechanics, impact, detection and prevention in the file. Portal
member data was never at risk.
2026-11-05 16:36:05 +00:00
inference-bot 4d3f539a84 ops: record the decision to keep the historical ledger test rows (audit L7 — net zero; rewriting the money ledger is worse than the noise) 2026-11-05 16:26:17 +00:00
inference-bot 3bf152b58a ops: record the LibreChat key-feed design decision (audit M2) — kept with monitoring; per-member fetch rejected as the riskier path 2026-11-05 16:21:52 +00:00
inference-bot b1a1c70e8a ops: record the allowance-shortfall manual-remediation ledger
The portal's SHORTFALL_REMEDIATED constant now carries only the OC charge
reference (de-PII'd from the public member-portal repo); the member
identity and the timeline of the manual reset live here, keyed on the
charge, plus the rationale for charging-keyed exclusion.
2026-11-05 15:59:13 +00:00
ops-bot a9edaa3e4b agent-fleet: record the Matrix homeserver accounts moved off the member docs
The member-facing infrastructure page no longer documents who holds room power
or which automation accounts exist. Record it here instead: @inference-admin as
administrator of record, the retired @inference-bot account and its two
un-leavable rooms, and the @ops_audit review account.

Also repairs a heading glitch carried over from the docs page: a line began with
a bare '#infrastructure', which Markdown parsed as an <h1>. The room names are
now written inline so no line starts with '#'.
2026-11-04 21:29:29 +00:00
inference-bot 835aed2852 Record the DNS cutover as complete; flag the old box as an unresolved exposure (#5) 2026-11-04 14:49:04 +00:00
inference-bot 6f2a6d01ed docs: record the DNS cutover as complete; flag the old box as an unresolved internet exposure
- Migration addendum: replace the 'DNS split' wording with the verified state —
  every hostname resolves to the new box (A+AAAA) per Cloudflare's public
  resolver; nothing points at the old box.
- Reframe the old box: not a benign rollback spare but a decommissioned server
  still alive and internet-exposed (22/80/443/587/993 open), holding old data and
  config, serving no member traffic. UNRESOLVED — operator decision to shut it
  down or firewall it. Do not act on it without the operator's word.
- README: add a 'Known open items' section listing the exposure, the CI failure,
  the unpushed CI-agent repo and the unconfirmed member mailbox contents.
2026-11-04 14:48:53 +00:00
inference-bot 6e777be842 Infrastructure audit: app inventory, backups, CI, provider pricing, agent fleet (#4) 2026-11-04 14:47:18 +00:00
inference-bot 2eb88f55b4 docs: infrastructure audit — app inventory, backups, CI, provider pricing, agent fleet
Audit of the operator docs against live reality (2026-11-04):
- app-inventory.md: all 19 Cloudron apps with id, fqdn and registry image pin.
  Corrects the portal path (code/member-portal, not co-op/member-portal) and the
  panel path (local/coop.inference.admin-panel, not code/admin-panel).
- maintenance/backups.md: the two backup systems; the deliberate per-user restic
  cache split and the --group-by "" retention fix, with why.
- maintenance/woodpecker-ci.md: CI server + agent, image build/pin, manual-only
  trigger, git-lfs requirement, and its current not-yet-green state (agent's
  job-collection long-poll gets HTTP 500 from the server).
- provider-pricing/: index + GreenPT, Tinfoil (local EHBP proxy architecture) and
  the Metis /v1/systemone decision-model route; regolo.md updated to record the
  gateway prices were applied.
- agent-fleet.md: steward, infrastructure-bot and socialbot (Unix users, gateway
  units, teams); member-bot tier 2 planned but not yet provisioned.
- README: file list; operator-token-runbook: correct the membership_sweep cadence
  (3x daily, not nightly); migration doc: post-migration addendum (16->19 apps,
  DNS split resolved, old box still on with apps stopped).
2026-11-04 14:46:12 +00:00
inference-bot 8b33d823c1 Merge pull request 'operator-token-runbook: credential rotation policy and reminder (co-op/support#35)' (#3) from rotation-policy into main 2026-11-04 14:37:22 +00:00
inference-bot 43f8f8c3fe operator-token-runbook: add the credential rotation policy and reminder
Records the 12-month cadence and the trigger rules agreed in co-op/support#35,
a last-rotated table (first entry: the Open Collective token, rotated
2026-10-27; other rows blank because nothing is recorded), and the account map
behind the credentials. Adds scripts/rotation_due.py, which reads the table and
prints only when a credential is within 30 days of its due date.
2026-11-04 14:36:57 +00:00
solo.ist 63d14156ec operator-token-runbook: add a credential inventory
Ported from co-op/docs#7 (written by solo.ist). The runbook this patched
moved to this git-only repository, so the inventory belongs here with it.

Every credential the agents and the member-facing apps hold: purpose, where
it lives, who rotates it, and the accounts they come from. Names and roles
only; no secret values.

Applied on landing (the two points raised after the PR's last review):
- OC_PERSONAL_TOKEN: the previous personal token is recorded as revoked
  (the operator confirmed on 2026-10-27), not 'should be revoked'.
- Added the LibreChat RAG service key (RAG_OPENAI_API_KEY, gateway alias
  rag-service-embeddings), added 2026-10-27.
2026-11-04 01:18:39 +00:00
inference-bot 11b10e2b03 Consolidate co-op/runbooks into co-op/ops-docs
Absorbs the Cloudron server-migration material from co-op/runbooks
(now archived) so there is a single public operator documentation
repository. Files move into migration/ (plan, DNS change sheet,
pre-migration state) and provider-pricing/ is kept as its own section;
the merged README replaces both.

History is preserved: this is a merge of the unrelated histories, so
co-op/runbooks' 26 commits remain reachable from this repository and
git log -- migration/ shows their real authors and messages. File
contents are byte-identical to co-op/runbooks (blob hashes unchanged).
2026-11-03 23:34:03 +00:00
inference-bot 9307b81f09 Add README explaining this git-only operator docs repository 2026-11-03 23:30:28 +00:00
inference-bot 196bb11bc6 runbooks: record that the private twin is archived
The plan said the private ops/runbooks still needed retiring. It did not: the steward's Gitea token carries write:organization and can archive repos, which I had wrongly believed it could not (that belief came from a different operation, an org-user rename, needing a different scope). ops/runbooks is now archived — it held the same five files as this repository and was behind it, so nothing was lost, and archived rather than deleted keeps it inspectable and reversible.
2026-11-02 15:42:20 +00:00
inference-bot 098b0e9caa runbooks: the migration is complete — mark it as history, not pending work
The cutover finished 2026-11-02 and this repo is public and read by members, so leaving a plan that reads like outstanding work is actively misleading. A dated banner now says it is complete and retained as the record; the STATE OF PLAY section is re-labelled as pre-cutover and marked superseded, with the one part known to be wrong (Listmonk's mail path, which moved to Scaleway TEM) named rather than silently corrected; and both files point at where live knowledge now lives — the cloudron-ops skill for procedure and co-op/docs/infrastructure.md for the member-facing description.
2026-11-02 15:37:28 +00:00
inference-bot 5de16b6537 migration: cutover complete — DNS switch verified, baseline recaptured against the new box, server.inference.coop resolved; all-clear email drafted 2026-11-02 07:53:40 +00:00
inference-bot 70c1208047 migration plan: state of play, for whoever runs the cutover
Written for a fresh session with none of the session history, because the person starting the migration asked whether the CLI had this context. It does not: memory and skills carry over, and the reasoning does not. This records what changed on 2026-11-01/02 that is not obvious from the rest of the plan: inbound 25 confirmed open so outbound 25 needs no ticket; Scaleway TEM proven by real headers (spf, dkim under the UUID selector, dmarc pass at p=reject); and the trap that Listmonk still sends through the Cloudron mail app, so a newsletter must not be assumed to route through the relay. Plus the DNS wildcard shape, the credential confirmations, what remains undone, the duplicate-Synapse caution, and the steward's own fallback route.
2026-11-02 03:33:57 +00:00