Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
- Remove nested dynu-monitor sub-project directory - Add discussion on DDNS polling frequency and Rust vs Python trade-offs - Establish active implementation plan for standalone Rust daemon - Update homelab README catalog and validate graph integrity
94 lines
6.3 KiB
Markdown
94 lines
6.3 KiB
Markdown
---
|
|
type: project
|
|
status: active
|
|
tags:
|
|
- homelab
|
|
- infrastructure
|
|
---
|
|
# 🌐 Homelab & Infrastructure Planning
|
|
|
|
This project documents the architectural roadmaps, infrastructure designs, deployment automation, and system administration workflows for the homelab ecosystem.
|
|
|
|
---
|
|
|
|
---
|
|
## 💬 Architectural Discussions ("Why & What If?")
|
|
|
|
Foundational inquiries, problem statements, and trade-off analyses that inform the homelab's direction:
|
|
|
|
1. [**NixOS Monorepo vs. Multi-Repo Architecture**](discussions/nixos-monorepo-vs-multirepo.md)
|
|
- Evaluates coupling between workstation and server configurations; explores the trade-offs of single flake vs. standalone server appliance.
|
|
2. [**Decoupling `nixos-config` and `homelab-core`**](discussions/nixos-monorepo-decoupling.md)
|
|
- Analysis and file migration inventory for transferring the server definition into `homelab-core`.
|
|
3. [**Gitea Git Credential Helper, Protocol Trade-Offs, and Backup Architecture**](discussions/gitea-credentials-and-backup-strategy.md)
|
|
- Evaluates Git credential management, SSH vs. HTTPS, and primary (Gitea) vs. backup (GitHub) topology.
|
|
4. [**Dynu DDNS Polling Frequency, Resolver Rotation, and Rust Migration**](discussions/dynu-monitor-polling-and-language-tradeoffs.md)
|
|
- Evaluates 30m vs. 30s polling intervals, provider rate limits, and the rationale for migrating from Python directly to a native Rust daemon.
|
|
|
|
---
|
|
|
|
## 📑 Plans & Execution Roadmaps ("How & When?")
|
|
|
|
Phased implementation plans originating from architectural decisions:
|
|
|
|
### 🏛️ Core Architecture & Evolution
|
|
1. 🟡 [**Architecture Consolidation & Hardening Roadmap**](plans/architecture-consolidation-roadmap.md) `[Active]`
|
|
- Four-tier topology formalization, GitOps security hardening (closed dispatch enum), `app.yaml` schema contract, and invariant tests.
|
|
2. 🟢 [**Turn `homelab-core` into a Declarative NixOS Appliance**](plans/nixos-appliance-migration.md) `[Completed]`
|
|
- Execution plan that migrated the headless server configuration into a self-contained NixOS appliance.
|
|
|
|
### 🖥️ Server 24/7 & Infrastructure
|
|
1. 🟢 [**NixOS Server & Laptop Migration**](plans/server-24-7/nixos-server-laptop-migration.md) `[Completed]`
|
|
- Headless conversion of the server host and laptop workstation provisioning.
|
|
2. 🟢 [**Domain Migration (`roadtotech.me`)**](plans/server-24-7/domain-migration-roadtotech.md) `[Completed]`
|
|
- Cutover from legacy `arch-services.mywire.org` to apex `roadtotech.me`.
|
|
3. 🟢 [**Production Folder Structure Reorganization**](plans/server-24-7/folder-structure-reorganization.md) `[Completed]`
|
|
- Established strict production boundaries: `~/Core`, `~/Sites`, `~/Brain`, and `~/Config`.
|
|
4. 🟡 [**LVM Storage Optimization & Partition Resizing Strategy**](plans/server-24-7/lvm-storage-optimization-and-resizing.md) `[Active]`
|
|
- Storage topology analysis, desktop indexer cache reclamation, and zero-data-loss LVM resize runbook.
|
|
|
|
### 📦 Orchestration (`appctl`)
|
|
1. 🟢 [**Core & Sites Cutover and Testing Plan**](plans/appctl/core-sites-cutover-testing-plan.md) `[Completed]`
|
|
- Zero-downtime cutover runbook from `~/Deployments` to decoupled `~/Core` and `~/Sites`.
|
|
2. 🟢 [**appctl Refactor & Decentralized `app.yaml` Metadata Architecture**](plans/appctl/refactor-and-metadata-sync.md) `[Completed]`
|
|
- Decentralized service manifests, canonical aliasing, and Homepage `services.yaml` compilation.
|
|
3. 🟢 [**appctl Git Synchronization & Full-Stack Lifecycle Strategy**](plans/appctl/git-sync-and-lifecycle.md) `[Completed]`
|
|
- Real-time Git tracking status (`✓ Synced`, `⬆ Ahead`, `⬇ Behind`, `* Dirty`), `--fetch`, and atomic `appctl update`.
|
|
4. 🟡 [**Smart Selective Deployment Pipeline for Homelab Core**](plans/appctl/smart-deployment-pipeline.md) `[Active]`
|
|
- Change-aware Gitea GitOps & CLI deployment, selective container restarts, and bash autocompletion sync.
|
|
|
|
### 🍵 Gitea & GitOps
|
|
1. 🟢 [**CI/CD & Deployment Strategy**](plans/gitea/deployment-and-cicd-strategy.md) `[Completed]`
|
|
- Design of automated deployment pipelines, self-hosted Gitea runner, and dynamic webhook dispatching.
|
|
2. 🟢 [**Real-Time Brain Synchronization & Gitea Push Mirroring**](plans/gitea/brain-sync-and-gitea-mirroring.md) `[Completed]`
|
|
- Pilot pipeline: zero-delay hooks, Gitea Actions CI, and instant reflection on `docs.roadtotech.me`.
|
|
3. 🟡 [**GitHub to Gitea Automated Batch Migration Plan**](plans/gitea/github-to-gitea-migration-plan.md) `[Active]`
|
|
- Batch migration automation (~35 repos) via `gh` and `tea` API, visibility retention, and recovery runbook.
|
|
|
|
### 🔒 Security & Hardening
|
|
1. 🟡 [**Custom API Security Hardening & Threat Analysis**](plans/api-security-hardening.md) `[Active]`
|
|
- Attack surface review, Authelia ForwardAuth integration, rate limiting, and JWT fail-fast validation.
|
|
|
|
### 🔄 Dynamic DNS & Infrastructure Daemons
|
|
1. 🟡 [**Rust Daemon Migration Plan: Standalone `dynu-monitor`**](plans/dynu-monitor-rust-daemon.md) `[Active]`
|
|
- High-frequency 30-second polling, 5-endpoint round-robin rotation, and zero-runtime-dependency Rust daemon.
|
|
|
|
---
|
|
|
|
## 🛠️ Canonical Guides & Runbooks ("How to Use & Operate?")
|
|
|
|
Operational procedures and standard operating runbooks:
|
|
|
|
1. [**Onboarding a New Application Stack**](guides/onboarding-a-new-service.md)
|
|
- Step-by-step procedure: directory setup in `~/Sites`, writing `app.yaml`, Traefik labels, and `appctl up`.
|
|
2. [**Managing Secrets and Authelia Users**](guides/managing-secrets-and-authelia-users.md)
|
|
- How to edit `nixos/secrets.yaml` with SOPS, generate Argon2 password hashes, and add users to Authelia.
|
|
3. [**Server Maintenance and System Updates Runbook**](guides/server-maintenance-and-updates.md)
|
|
- NixOS appliance upgrades, systemd post-update checklist, garbage collection, and Docker pruning.
|
|
4. [**Appctl & Application Manifests (`app.yaml`) User Guide**](guides/appctl-operations-and-manifest-guide.md)
|
|
- CLI reference for inspecting container health, managing stack lifecycles, and authoring `app.yaml`.
|
|
5. [**Brain GitOps & Auto-Sync Deployment Pipeline**](guides/brain-gitops-deployment-pipeline.md)
|
|
- How changes committed locally automatically push, validate in Gitea Actions, and deploy to `docs.roadtotech.me`.
|
|
6. [**Dynu DDNS Domain Configuration Troubleshooting Runbook**](guides/dynu-ddns-troubleshooting.md)
|
|
- Diagnostic steps for verifying WAN rotations, checking SOPS age keys, and forcing `ddclient` updates.
|