Commit graph

9 commits

Author SHA1 Message Date
f1dc7ea6df Drop stale jail and agent migration paths (Codex)
Remove completed controlplane agent-id migration, simplify jail-name resolution to current canonical names, and drop SUDO_UID ownership fallback from service setup.

---
Build: pass | Tests: pass — 2370 passed (704 files)
2026-05-10 21:30:17 +02:00
c4239b2b11 Align jail policy and add system update path
---
Build: pass | Tests: pass — 51 passed (3 files)

---
Build: pass | Tests: pass — 2189 passed (648 files)
2026-05-06 09:43:08 +02:00
Operator & Claude Code
0fcac57e42 Use RUNTIME_ID for setup-side label interpolation
Follow-up to a99f971: covers the remaining ${TENANT_ID} interpolation
sites that produced leading-hyphen / empty-path values on root installs.

- setup/ollama.ts, setup/llama-cpp.ts: preferred jail names
- setup/sanoid.ts: tenant-era home candidate
- setup/hosts.ts: jail-name discovery filter (+ test mock)
- src/telegram-commands.ts: status identity line, suppress empty
  tenant clause on root installs

Root-detection sites that key off TENANT_ID === '' are intentionally
left untouched; the invariant is preserved.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---
Build: FAIL | Tests: FAIL — 15 failed
2026-05-04 06:31:21 +02:00
fe96ade042 Propagate platform naming into runtime consumers
---
Build: pass | Tests: pass — 85 passed (6 files)
2026-04-24 15:44:52 +02:00
c65c289f08 refactor(multitenant): make tenant and platform identity explicit
Replace ambiguous AGENT_NAME usage across runtime, setup, and helper scripts with explicit TENANT_ID or platform runtime identity where appropriate. Keep AGENT_NAME as a compatibility boundary instead of the primary source for shared runtime naming.

---
Build: pass | Tests: pass — 138 passed (10 files)
2026-04-23 21:41:42 +02:00
29fadfe1a6 refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude)
Introduces infra/jails.yaml as single source of truth for jail definitions,

src/jail-schema.ts with Zod validation, src/jail-registry.ts for runtime,

setup/bastille-helpers.ts as shared module replacing 7 copy-pasted

bastille()/jailExists()/detectFreeBSDRelease() wrappers.

Refactors setup/{db,cms,git,forgejo,jails,llama-cpp,ollama,skills-memory}.ts

to import from bastille-helpers. Archives infra/ansible/ to .archive/.

Net reduction: ~300 lines of duplicated code. All IPs now derive

from jails.yaml with env var overrides preserved.

Build: pass | Tests: not run (Linux)
2026-04-14 01:16:13 +02:00
cdf2c8f296 Enable Tailscale jail auto-join (Sam & Codex)
Add a setup helper to enable tailscale inside jails when FEATURE_TAILSCALE

and an auth key are present, prefetch tailscale packages, and document

the installer shortcut.

---

Build: FAIL — not run

Tests: FAIL — not run
2026-04-04 15:40:47 +00:00
e7043c872d feat(setup): implement pf/db/jails/hostd + safer sudo flow (Sam & Codex)
- Add missing install-all setup steps: worker jails, db jail, hostd service

- PF now writes /etc/pf.warden.conf and ensures pf.conf includes it

- install-all can run root-only steps via sudo; .env ownership preserved

- Prefer {agent}-prefixed service jails with legacy fallbacks

---

Build: pass | Tests: pass — 603 passed (44 files)

---
Build: pass | Tests: pass — Tests  603 passed (603)
2026-04-03 09:36:40 +00:00
2179e23ec9 feat: add local LLM runtime selection
---
Build: pass | Tests: pass — Tests  605 passed (605)
2026-04-02 15:18:22 +00:00