mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-06 00:58:13 +01:00
revampit was renamed to evig on the box on 2026-09-02 (/opt/revampit -> /opt/evig,
revampit-app -> evig-app). The app repo caught up. This repo — which holds the
box register and the tooling that watches it — did not, and two of the stale
references were load-bearing:
- verify.sh ran `systemctl is-active revampit-app` for a unit that no longer
exists (`inactive`, exit 4), so the full-fleet sweep was permanently FAIL
and never once checked the app that replaced it. A sweep that always fails
is a sweep nobody reads.
- uptime-sweep.sh watched revampit.orangecat.ch, which is now a Caddy `redir`
block — a static 308 the sweep counts as up. That entry answers "is Caddy
alive", not "is the app alive", and would have reported up through an evig
outage. Pointed at evig.orangecat.ch, it probes /api/health for real.
The rest is register hygiene with no live consequence: the push-deploy hook
installed a command at /home/g/dev/revampit/scripts/selfhost-deploy-revampit.sh
(neither path exists any more), and three runner sandboxes listed a
/opt/revampit that is gone while omitting the /opt/evig that replaced it.
The automation, because a fix that only repairs today is worth 1x:
runtime-conformance-audit.sh now asks whether an enabled *-app.service still
has its guardrails — a memory cap and an OnFailure. A rename moves the unit
file; it does NOT move the .service.d/ drop-ins beside it. evig-app ran for two
days with MemoryMax=infinity on a shared box and no failure alert because its
drop-ins were still in the old unit's directory, and nothing noticed, because
these drop-ins are box state that no repo describes. Every other app unit on
the box carries both, which is what makes an exception a finding rather than a
preference. The audit already runs every 6h and alerts per finding, so this
class now pages instead of waiting to be stumbled over.
Evidence, on the real box:
# after restoring evig-app's drop-ins by hand
$ sudo bash runtime-conformance-audit.sh
checked 26 app dirs on node 24.20.0
findings=0 unreadable=0
# negative control: move the drop-ins away again
FINDING|evig|unit has no memory cap (MemoryMax=infinity) on a shared box
FINDING|evig|unit has no OnFailure= — it can die without alerting anyone
$ bash scripts/hetzner/verify.sh
OK evig systemd=active local=200 public=200
... 23 checks, exit 0
`npm run verify` green: tsc clean, eslint 0 errors / 3 warnings, 130/130 unit
test files, 150 home tests, 66 uptime-sweep tests, all ops suites.
Claude-Session: https://claude.ai/code/session_01LmyE2aLaXKB2V7WA3XQprm
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
59 lines
4.3 KiB
Plaintext
59 lines
4.3 KiB
Plaintext
# SSOT manifest for self-hosted apps on bitbaum (167.233.22.31).
|
|
#
|
|
# Format:
|
|
# name|port|domains|repo_path|app_dir|db|owner|kind|status|plan|price|since
|
|
#
|
|
# name..db provisioning — what sync-infra.sh and deploy.sh read (unchanged)
|
|
# db host Postgres database name, OR `supabase:<schema>` for an app
|
|
# living in the supabase-db container, OR '-' for no database.
|
|
# One supabase database backs several apps, so each gets its OWN
|
|
# schema: `public` belongs to orangecat, and a second app's
|
|
# migrations landing there would collide with it by table AND by
|
|
# function name. '-' skips the schema step entirely — which is
|
|
# how botsmann ran for months against 11 migrations nobody had
|
|
# applied, serving 503 from a table that did not exist.
|
|
# owner who this belongs to. 'bitbaum' = ours. Otherwise the client.
|
|
# kind product | client-app | client-site | demo | infra | library
|
|
# status live | prospect | validating | demo | unverified | handed-over | archived
|
|
# plan/price what they pay, and how much. '-' means NOT KNOWN — and the gaps
|
|
# are the point: right now "what am I owed this month" and "what am
|
|
# I maintaining for free" are unanswerable, which is why these
|
|
# columns exist before the numbers do.
|
|
# since when the relationship started (ISO date), '-' if unrecorded.
|
|
#
|
|
# One register, not four. bitbaum/projects/*.md holds the narrative; this holds
|
|
# the facts, because this is the file that provisioning reads and therefore the
|
|
# only one nobody can afford to let go stale.
|
|
#
|
|
# domains "-" = internal only. Ports 4001-4004 are the pre-existing handcrafted
|
|
# services (bridge, fleetcrown, orangecat, evig) — they keep their own units
|
|
# and Caddy blocks and are NOT listed here.
|
|
kivvi|4005|kivvi.orangecat.ch|/home/g/dev/kivvi|apps/web|kivvi|RevampIT|client-app|live|-|-|-
|
|
# datacat is a full-stack Next app (Prisma + tRPC API routes); the express
|
|
# backend/ dir is local-dev legacy and is not deployed.
|
|
datacat-web|4006|datacat.orangecat.ch|/home/g/dev/datacat|frontend|datacat|bitbaum|product|live|-|-|-
|
|
aoz-wohnen|4008|aoz-wohnen.orangecat.ch|/home/g/dev/aoz-housing|.|aoz_wohnen|AOZ|client-app|live|-|-|2026-08-13
|
|
surf-your-life|4009|surf-your-life.orangecat.ch|/home/g/dev/surf-your-life|.|surf_your_life|bitbaum|product|live|-|-|-
|
|
vitareba|4011|vitareba.orangecat.ch|/home/g/dev/vitareba|.|vitareba|clinic|client-app|live|-|-|-
|
|
revamp-info|4012|revamp-info.orangecat.ch,hirnli.orangecat.ch|/home/g/dev/hirnli|.|hirnli|bitbaum|product|live|-|-|-
|
|
petvity|4013|petvity.orangecat.ch|/home/g/dev/petvity|.|petvity|bitbaum|product|live|-|-|-
|
|
# botsmann.com has no nameservers (lapsed?) — serving on the orangecat.ch
|
|
# subdomain until the domain is restored; then add botsmann.com back here.
|
|
botsmann|4014|botsmann.orangecat.ch|/home/g/dev/botsmann|.|supabase:botsmann|bitbaum|product|validating|-|-|-
|
|
printcraft|4015|printcraft.orangecat.ch|/home/g/dev/printcraft|app|supabase:printcraft|-|client-app|prospect|-|-|-
|
|
sbb-lost-found|4016|sbb.orangecat.ch|/home/g/dev/sbb-lost-found|frontend|-|-|demo|demo|-|-|-
|
|
reparaturbonus-zh|4017|reparaturbonus.orangecat.ch|/home/g/dev/reparaturbonus-zh|.|reparaturbonus|Stadt Zürich?|client-app|unverified|-|-|-
|
|
# formular-erfassung: source repo location is unknown (no local copy, no
|
|
# linked GitHub repo) — not migrated.
|
|
# formular-erfassung|4018|formular.orangecat.ch|/home/g/dev/formular-erfassung|.|-
|
|
solon|4018|solon.orangecat.ch|/home/g/dev/solon|.|solon|bitbaum|product|live|-|-|-
|
|
sink|4019|sinktattoo.com,www.sinktattoo.com|/home/g/dev/s-ink|.|-|S-Ink|client-site|live|-|-|-
|
|
# Substrata — open-source research firm (materials chokepoints). Its own repo
|
|
# and its own deploy; the orangecat.ch subdomain is an address, not an
|
|
# affiliation, and moves to its own domain when one is bought.
|
|
substrata|4022|substrata.orangecat.ch|/home/g/dev/substrata|.|-|bitbaum|product|live|-|-|2026-08-27
|
|
# Camille — fictional bakery, the Site Factory demo. Ran in production from
|
|
# 2026-08-19 with no repository and no entry here; both added 2026-08-27 during
|
|
# the handover rehearsal, which is exactly what the rehearsal was for.
|
|
camille-boulangerie|4020|camille.orangecat.ch|/home/g/dev/camille-boulangerie|.|-|bitbaum|demo|demo|-|-|2026-08-19
|