Files
kiskaadee b8bd12cd2b
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 8s
decision(homelab): align control plane ADR and project hub with Roadmap v6
Reconcile ADR-0002 (homelab-appctl-control-plane-architecture.md) and related cross-references with locked decisions DEC-01 through DEC-05:

- Update ADR-0002 to codify single POST /v1/operations endpoint across dual HTTP/1.1 transports, Bearer token auth + SO_PEERCRED viewer fallback, dedicated homelab-appctl service isolation, and fail-closed audit log.
- Align Roadmap v6, evolutionary knowledge article, and discussions to reference 13 canonical domain operations.
- Update 06-projects/homelab README to index active discussions and categorize superseded appctl refactoring plans.
2026-10-17 14:39:32 -05:00

17 KiB

type, status, tags
type status tags
project active
architecture
operations
security
homelab
infrastructure

🌐 Homelab Ecosystem & Core Infrastructure

The Homelab project encompasses the architecture, automation, deployment pipelines, and operational runbooks powering the 24/7 personal infrastructure ecosystem hosted at roadtotech.me.

The environment runs on dedicated hardware as a declarative NixOS appliance, providing self-hosted productivity tools, internal developer platforms, edge routing, and automated GitOps workflows.


🏛️ System Topology & Architecture

The homelab is organized into four decoupled architectural layers to isolate failures and maintain zero-downtime operations:

  1. Edge & Security Layer:
    • Traefik Reverse Proxy: Dynamic ingress routing over HTTPS with automated Let's Encrypt wildcard TLS certificates (*.roadtotech.me).
    • Authelia SSO: ForwardAuth single sign-on with multi-factor authentication (2FA) protecting private services and dashboards.
    • Dynu Dynamic DNS: Automated WAN address synchronization and fallback monitoring.
  2. Core Control Plane (~/Core):
    • Central homelab services managed as a declarative NixOS appliance, including Gitea (Git forge & CI/CD runner), Nextcloud, Vaultwarden, Homepage dashboard, and deployment webhooks.
  3. Workload Plane (~/Sites):
    • Autonomous, containerized application stacks (Docker Compose) completely decoupled from Core infrastructure. Each service repository declares its own metadata, routing rules, and lifecycle via an app.yaml manifest. Managed workloads include:
      • BDInvite (demos.roadtotech.me/birthday): Interactive digital birthday invitation with RSVP, FastAPI backend, and split Traefik/Authelia access.
      • MagNetFlix (magnetflix.roadtotech.me): Automated media acquisition and streaming pipeline behind Authelia SSO.
  4. Host Foundation:
    • Headless NixOS host system configured with encrypted secrets via SOPS-nix (age), strict firewall isolation, and standardized systemd timers for maintenance.

📍 Source Code & Repositories

Target Location / URL Description
Gitea Forge homelab-core Primary Git repository housing the NixOS appliance and Core services
Clone (SSH) ssh://git@gitea.roadtotech.me:2223/kiskaadee/homelab-core.git Developer clone URL using SSH port 2223
Workstation Path ~/Homelab/Core Active local development checkout on workstation (~/Homelab/Core and ~/Homelab/Sites)
Production Target server-remote:~/Core Production deployment checkout on the 24/7 server host

💬 Open Discussions

Architectural inquiries and problem statements currently under evaluation that have not yet produced an active implementation plan:

  • ❓ Multi-User Houston Architecture via Dynamic Container Spawner and LLDAP/Authelia
    • Focus: Evaluates a dynamic container spawner and LLDAP/Authelia ForwardAuth proxy architecture to provide per-user isolated Houston engine pods (~/Sites/houston).
    • Current Status: Open inquiry analyzing container lifecycle management, per-tenant state volume isolation, and idle spin-down semantics.
  • ❓ WhatsApp & Telegram AI Assistant Backend Architecture
    • Focus: Evaluates architecture, webhook ingress, and trade-offs between Telegram Bot API and WhatsApp Cloud API for a personal AI assistant microservice (~/Sites/homelab-assistant) connected to the Brain vault.
    • Current Status: Open inquiry examining authorization models, message formatting, cron triggers, and RAG search capabilities before formalizing an implementation plan.

🚧 Work in Progress (Active Plans)

Implementation roadmaps currently in progress (status: active) that are actively being executed or scheduled for deployment:

  1. 🟡 Architecture Consolidation & Control Plane Roadmap v6 [Active]
  2. 🟡 Rust Daemon Migration Plan: Standalone dynu-monitor [Active]
    • Implementing a standalone Rust daemon with 30-second polling and round-robin public DNS resolution across 5 independent providers (Cloudflare, Quad9, Google, OpenDNS, Dynu).
  3. 🟡 Custom API Security Hardening & Threat Analysis [Active]
    • Defense-in-depth security hardening for custom microservice APIs (Learning Hub and Minecraft dashboard) using Authelia ForwardAuth, token validation, and rate limiting.
  4. 🟡 GitHub to Gitea Automated Batch Migration Plan [Active]
    • Automated migration tooling using gh and tea APIs to migrate ~35 repositories from GitHub to self-hosted Gitea with push mirrors for redundancy.
  5. 🟡 LVM Storage Optimization & Partition Resizing Strategy [Active]
    • Storage space audit, disk cleanup runbooks, and a non-destructive LVM logical volume expansion procedure for the server's root filesystem.

🛠️ Canonical Guides & Runbooks

Operational runbooks and procedures for daily administration:


🏛️ Completed Roadmaps & Resolved Discussions

Archived and foundational documentation for completed milestones:

Resolved Architectural Discussions

Completed & Superseded Plans