Phase0
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 22s
CI / Go — edge-gateway build (push) Successful in 13s

This commit is contained in:
smueller
2026-06-26 11:12:51 +02:00
parent e25e871067
commit 4fe25e6ec3
106 changed files with 1002 additions and 160 deletions

View File

@@ -2,45 +2,50 @@
Last updated: 2026-06-26
## Current phase: Phase 0 — Repository and foundations
## Current phase: Phase 0 — Repository and foundations
### Completed
| Area | Status | Notes |
|------|--------|-------|
| Monorepo layout | Done | pnpm workspace, Turborepo |
| Go node-agent | Done | Config, protocol types, health, agent loop stub |
| Go edge-gateway | Stub | Disabled by default; Phase 8 |
| Docker Compose dev stack | Done | PostgreSQL, Redis, MinIO, Mailpit, API, Worker, Web |
| Environment template | Done | `.env.example` |
| CI pipeline | Done | Lint, typecheck, tests, Go tests, build |
| Documentation skeleton | Done | ADR, architecture, threat model, installation |
| WHMCS integration layout | Placeholder | Directory structure and README |
| Deploy placeholders | Done | Traefik, Ansible, systemd, Prometheus |
### In progress / next (Phase 1)
- User registration, login, sessions
- Email verification and password reset
- TOTP 2FA
- Admin bootstrap CLI
- Prisma schema and migrations
| Monorepo layout | Done | pnpm workspace, Turborepo, shared TypeScript config |
| `@hexahost/database` | Done | Prisma 6, 14 Kernmodelle, UUID-IDs, optimistic locking |
| `@hexahost/contracts` | Done | Zod-Schemas (Health, RFC7807, Pagination) + Vitest |
| `@hexahost/config` | Done | Typisierter Env-Loader mit Validierung |
| `@hexahost/auth` | Done | Rollen-Enum und Typen (Stub für Phase 1) |
| `@hexahost/ui` | Done | Button, Card (Tailwind, a11y) |
| `@hexahost/api` | Done | NestJS 11 + Fastify, Health, OpenAPI, Pino, Rate Limits |
| `@hexahost/worker` | Done | BullMQ-Queues (Stubs), Health HTTP :3002 |
| `@hexahost/web` | Done | Next.js 15, i18n de/en, Dark Mode, Landing, Auth-UI, Dashboard |
| Go node-agent | Done | Protokoll-Typen, Health, Agent-Loop, Unit-Tests |
| Go edge-gateway | Stub | Deaktiviert (Phase 8) |
| Docker Compose dev | Done | PostgreSQL, Redis, MinIO, Mailpit, API, Worker, Web |
| `.env.example` | Done | Vollständige Konfigurationsvorlage |
| CI pipeline | Done | Lint, typecheck, test, build, Go-Tests |
| Dokumentation | Done | ADR, Architektur, Threat Model, Installation |
| WHMCS-Layout | Placeholder | Verzeichnisstruktur für spätere Integration |
| README | Done | Startbefehle und Übersicht |
### Abnahmekriterium Phase 0
- [x] Repository structure and configuration baseline
- [x] Local infrastructure compose file
- [x] Node agent builds and tests pass
- [x] CI workflow defined
- [ ] All services start locally end-to-end (requires `docker compose up` validation)
- [ ] Full API/Web/Worker feature implementation (Phase 1+)
- [x] Monorepo-Struktur mit allen Grundverzeichnissen
- [x] pnpm-workspace, Turborepo, Next.js, NestJS, Worker, Go-Module
- [x] PostgreSQL/Prisma-Grundschema
- [x] Redis- und MinIO-Konfiguration in Compose
- [x] Healthchecks (API, Worker, Node Agent)
- [x] Strukturiertes Logging (Pino)
- [x] OpenAPI unter `/api/v1/docs`
- [x] Basis-CI
- [x] ADR und IMPLEMENTATION_STATUS
- [x] Build, Lint, Typecheck und Tests lokal grün
### Known limitations
- Edge gateway is intentionally not implemented (Join-to-Start is Phase 8).
- API, Worker, and Web are minimal health-check stubs in Phase 0.
- Traefik, Ansible, and production compose are documented but not fully implemented.
- Node agent does not yet connect to the control plane WebSocket.
- Edge Gateway ist bewusst nicht implementiert (Join-to-Start = Phase 8).
- Authentifizierung, Server-Lifecycle und Node-WebSocket folgen in Phase 12.
- Traefik-, Ansible- und Produktions-Compose sind dokumentiert, nicht vollständig umgesetzt.
- Docker Compose erfordert optional `docker network create traefik-network`.
- WHMCS-Integration ist nur als Verzeichnisstruktur vorbereitet.
### Test commands
@@ -49,5 +54,13 @@ pnpm install
pnpm lint
pnpm typecheck
pnpm test
pnpm build
cd apps/node-agent && make test
```
### Next phase: Phase 1 — Authentication & user panel
- Registrierung, E-Mail-Verifizierung, Login, Sessions
- Passwort-Reset, TOTP 2FA, Recovery Codes
- Admin-Bootstrap-CLI
- Vollständiger sicherer Login-Flow mit Tests