kiskaadee a3649c3ead docs(architecture): reconcile review findings and enforce fail-closed portable auth
- AGENTS.md: replace hardcoded Traefik/Authelia references with generic reverse-proxy/OIDC SSO triggers and align Tier 1 dangerous extensions (case-insensitive, adding .ps1 and .7z).
- docs/adr/001-pipeline-safety-and-bff-dual-client.md: remove hardcoded addmovie.roadtotech.me/Traefik/Authelia references, add CORS_ALLOWED_ORIGINS portability, and restrict local_user fallback strictly to AUTH_ENABLED=false (fail-closed 401 otherwise).
- docs/adr/002-pipeline-invariants-and-active-reconciliation.md: add Base32-to-hex info_hash normalization and uq_download_jobs_active_info_hash index (DEC-2), refine Tier 1/2 sanitizer and path/subtitle rules (DEC-3/5), add bounded startup retry and zero-delta stall wording (DEC-6), separate relocation executor and subscribe-before-snapshot coalescing (DEC-7), and enforce fail-closed AUTH_ENABLED + CORS_ALLOWED_ORIGINS (DEC-8).
- docs/architecture.md: add Canonical References and Scope/Non-Goals/Operational Limits, document QUEUED->FAILED transition, align DEC-2..DEC-8 invariants, and add /healthz and gRPC health check probes.
- docs/deployment.md: parameterize Compose environment/volume/proxy variables (MAGNETFLIX_HOST, TRAEFIK_AUTH_MIDDLEWARE, proxy_network, MAGNETFLIX_*_DIR), add worker non-root PUID/PGID + depends_on + transmission healthcheck, and update fail-closed identity adapter table.
- docs/roadmap.md & todo.txt: mark M1.1-M1.7 completed, add pending M1.8 (Base32 info_hash normalization + migration 003), and synchronize M2-M4 work items with the reconciled DEC-3..DEC-8 requirements.
2026-11-14 00:16:55 -05:00
2026-09-01 15:07:37 -05:00

🎬 MagNetFlix

Self-hosted, automated media acquisition and library organization pipeline built with FastAPI (BFF), gRPC, SQLite WAL, Transmission RPC, and pluggable SSO/OIDC authentication.


📖 Table of Contents


⚡ Quick Start

# 1. Enter hermetic dev shell (Nix)
nix develop

# 2. Or install dependencies with uv workspace
uv sync

# 3. Generate protobuf stubs & documentation
make generate

# 4. Run test suite
uv run pytest

# 5. Run static type checking and linters
make check

📁 Repository Structure

.
├── AGENTS.md                  # Development guidelines & safety invariants
├── CLAUDE.md                  # Developer CLI commands & tool directives
├── Makefile                   # High-level build, codegen, lint, and test targets
├── README.md                  # Project landing page
├── buf.gen.yaml               # Buf code generation configuration
├── buf.yaml                   # Buf module configuration
├── docker-compose.yml         # Multi-container Compose stack specification
├── docs/                      # Authoritative architecture and operations documentation
│   ├── adr/                   # Architecture Decision Records (ADRs)
│   ├── history/               # Audit logs and review ledgers
│   ├── architecture.md        # System design, data flow, and invariants
│   ├── deployment.md          # Container topology and reverse proxy integration
│   ├── overview.md            # Feature overview & workflow
│   └── roadmap.md             # 5-Milestone implementation plan
├── proto/                     # Protocol Buffer definitions
│   └── magnetflix/v1/
│       └── pipeline.proto
├── services/
│   ├── bff/                   # FastAPI Web Gateway / HTML Form / Pluggable SSO
│   ├── contracts/             # Shared Protobuf & gRPC contracts package
│   └── worker/                # gRPC Pipeline Worker & Transmission Coordinator
└── tests/                     # Unit and integration test suites
S
Description
Self-hosted media acquisition and library organization pipeline built with FastAPI (BFF), gRPC, SQLite WAL, Transmission RPC, and Authelia SSO.
Readme
728 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 93%
Dockerfile 3%
Nix 2.5%
Mako 1.1%
Makefile 0.4%