Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 6s
3.9 KiB
3.9 KiB
type, date, project, tags
| type | date | project | tags | |||||
|---|---|---|---|---|---|---|---|---|
| journal | 2026-09-13 | homelab |
|
Daily Journal: 2026-09-13
Wins
Homelab Core — Milestone P0: GitOps Trust Boundary Implementation
Completed and validated all deliverables (1.1–1.5 and 3.1–3.6) for Milestone P0 of the Architecture Consolidation Plan.
Completed Deliverables & Commit Chain
-
Deliverable 1.1 — Remove Arbitrary
customExecution- Commit:
29dd186refactor(gitops): remove arbitrary custom execution - Actions: Removed
shell=Trueandcustom:execution handler fromscripts/gitops_dispatcher.py. Unsupported actions fail closed.
- Commit:
-
Deliverable 1.2 — Trusted Repository Resolution
- Commit:
01acdb4feat(gitops): add trusted repository resolution - Actions: Implemented
resolve_repository(repo_name)enforcing canonical path resolution, strict regex naming (^[a-zA-Z0-9][a-zA-Z0-9._-]*$), directory traversal rejection (../../etc), symlink escape rejection, and allowed root containment (~/Sites,~/Brain).
- Commit:
-
Deliverable 1.3 — Webhook Authentication
- Commit:
fa8054afeat(gitops): add webhook authentication - Actions: Configured HMAC-SHA256 signature verification (
X-Gitea-Signature) using constant-time comparison (hmac.compare_digest). Generated shared secret encrypted via SOPS/Age innixos/secrets.yamland projected to/run/secrets/gitops/webhook_secretviahomeserver.nix.
- Commit:
-
Deliverable 1.4 — Repository, Event, and Branch Admission
- Commit:
c265c3efeat(gitops): enforce repository/event/branch admission - Actions: Implemented
admit_deployment()verifying event type (pushonly), ref structure (refs/heads/*only; tags/PRs rejected), trusted repository identity, manifest validity, and target branch matching policy.
- Commit:
-
Deliverable 1.5 — Serialized Asynchronous Deployment with Superseding
- Commit:
5aae4effeat(gitops): add serialized asynchronous deployment - Actions: Separated HTTP admission from background execution. Incoming webhooks write atomic pending files and return HTTP 200 immediately. Workers acquire non-blocking per-repository
flocklocks, sequentially running deployments and automatically superseding intermediate pending commits (A running, B queued, C replaces B -> A deploys, then C deploys).
- Commit:
-
Deliverables 3.1, 3.2, 3.6 — Automated Testing & CI Invariants
- Commits:
142697atest(architecture): add structural invariants and test runnerf4b676btest(architecture): add compose and socket proxy security invariants3351466ci: run architecture and security validation in flake check and gitea actions
- Actions: Added automated test runner
scripts/test, structural invariant checks (tests/structural/), Compose security invariant checks (tests/security/test_security_invariants.py), Nix flake check integration (checks.x86_64-linux.test-suiteinflake.nix), and Gitea Actions CI workflow (.gitea/workflows/ci.yaml).
- Commits:
-
Documentation Synchronization
- Commit:
534ea9edocs: sync repository documentation with GitOps hardening and automated test invariants - Actions: Synchronized
README.mdandSECURITY.mdwith the hardened GitOps architecture, automated test runner instructions, Docker socket isolation guarantees, and declarative NixOS SOPS checklist.
- Commit:
Verification & Invariant Proofs
- Pytest Suite: 31 passing tests in 0.09s (
tests/security/,tests/structural/). - One-Command Test Runner:
./scripts/test(linting + unit tests + Nix flake check). - Ruff Code Health: Zero lint or formatting warnings across the entire repository.
- NixOS Evaluation & Pure Sandbox Check:
nix flake checkpassing with zero errors. - Continuous Integration: Machine-enforced via Gitea Actions on every push and PR.