diff --git a/records/journal/2026-09-23.md b/records/journal/2026-09-23.md new file mode 100644 index 0000000..274012f --- /dev/null +++ b/records/journal/2026-09-23.md @@ -0,0 +1,52 @@ +--- +type: journal +project: homelab +date: 2026-09-23 +tags: + - operations + - homelab + - architecture + - portainer + - dozzle + - gitea + - sops +--- + +# Daily Journal: 2026-09-23 + +## Wins + +### Dozzle Forward-Proxy Authentication & Persistent Volume +- Configured native ForwardAuth header ingestion in Dozzle (`DOZZLE_AUTH_PROVIDER=forward-proxy`) to consume Authelia identity headers (`Remote-User`, `Remote-Email`, `Remote-Name`). +- Wired SSO logout redirection to `auth.roadtotech.me/logout` and attached a persistent named volume (`dozzle_data`) to retain UI layout and preference state across container lifecycles. + +### Architectural Classification & Portainer Deprecation +- Evaluated platform ownership boundaries ("What qualifies a service for Core ownership?"): + - Confirmed that Gitea and the Gitea CI runner should remain decoupled from Core in `Sites/gitea`, preserving independent recovery and avoiding granting arbitrary CI runner workloads platform-level privileges. + - Formulated and executed the clean deprecation of Portainer across all infrastructure layers. +- Removed Portainer from `docker-compose.yml`, eliminated `PORTAINER_ADMIN_PASSWORD` from `homeserver.nix`, and pruned the ciphertext from `secrets.yaml` via SOPS. +- Removed Portainer from `appctl` core service inventory and Homepage service mapping. +- Added automated regression invariant test `test_portainer_is_deprecated_and_absent` to `tests/security/test_security_invariants.py`. +- Synchronized all Core documentation (`README.md`, `SECURITY.md`, `architecture.md`, `operations.md`, `secrets-and-state.md`, `appctl.md`). +- Validated complete local test suite with 100% passing tests and clean Nix flake evaluation. + +--- + +## Architecture & Discussions + +- [Core Service Qualification & Portainer Deprecation](../../projects/homelab/discussions/core-service-qualification-and-portainer-deprecation.md) + - Detailed inquiry into the role of inherited tools versus deliberate platform primitives. + - Analysis of Portainer's fundamental mismatch with hardened read-only Docker socket proxies (`socket-proxy` with `POST=0`, `DELETE=0`). + - Separation of platform services from developer infrastructure and unprivileged CI runners. +- [Plan: Clean Deprecation of Portainer from Core](../../projects/homelab/plans/portainer-deprecation-plan.md) + - Phased deprecation, local validation, commit strategy, and production teardown runbook. + +--- + +## Mistakes and Lessons Learned + +### Inherited Tools vs. Platform Status +An inherited component does not acquire platform status merely because it was placed in the platform stack. If a service does not own a unique, indispensable responsibility in the operational model—or if its fundamental design (GUI container mutation) conflicts with declarative GitOps invariants and read-only socket proxies—it should be pruned cleanly rather than maintained out of inertia. + +### Privilege Boundaries in Developer Tooling +Even when source-control infrastructure (like Gitea) provides cross-cutting value to a homelab, associated execution engines (like CI runners) represent entirely different threat surfaces. The runner executes arbitrary repository code and requires container execution privileges; bundling it into Core by default violates least-privilege platform isolation.