# Roadmap Phases are ordered so the core framework is proven on the simplest workload before the hardest ones. ## Phase 0 — Foundations - [x] Repository and licence (Apache-2.0) - [x] CI: lint, type check, docstring coverage, tests with PostgreSQL, docs build, image build - [ ] Contribution guide - [x] Container image and `compose.yaml`; running on Ubuntu 26.04 (test server) - [ ] Smoke test with Docker CE on RHEL 10 - [x] Core: config, DB + migrations, job queue, scheduler tick, backup engine, job runner, events table - [ ] Audit log API and UI (table and writes exist) - [x] Graph client: certificate auth, throttling, batching, delta, streaming - [x] Storage engine: filesystem backend, chunking, compression, encryption, packs, check - [ ] S3 backend (later; local disk first) - [x] Module SDK + contract checks - [x] Web UI shell: first-run setup, break-glass sign-in + TOTP, module toggles, users, sign-in settings - [x] Branding: name, colours, theme, logos, favicon, sign-in message, email footer - [x] Setup wizard: device code tenant connection, automatic app registrations (Backup, Restore, Sign-in with roles), permission sync, re-run to renew certificates - [x] Backup storage: create or connect (disaster recovery) a filesystem repository inside the backup volume; recovery kit - [x] Backup jobs: create/edit/delete, schedule presets or cron, run now, run history with per-object results - [x] Tenant page warns when enabled modules need permissions not yet granted - [ ] Setup wizard: notifications app, expiry warnings, manual fallback - [x] Entra OIDC sign-in for the web UI (app roles), sign-in app created by the wizard - [ ] `exo-runner` image (PowerShell 7 + ExchangeOnlineManagement) and Exchange device code sign-in - [x] Notifications: event delivery with severity threshold, throttling, fallback and retries; Graph (Notifications app, Exchange-scoped Mail.Send) and SMTP senders; settings page with test email; Alerts page - [ ] Notifications: automated Exchange step (`exo-runner`), daily summary/weekly report, resolved emails, heartbeat ## Phase 1 — Entra ID module - [x] Snapshot backup of directory objects and policies (9 categories; unlicensed features skipped) - [x] Browse (point in time, search, folders, deleted objects), version history, property-level diff, changes between runs - [x] Change alerts: privileged roles, Conditional Access, tenant policies and domains, consents (warning); apps (info) - [ ] Object/property restore, recycle-bin restore - [ ] Readable object view in Browse: Details tab with sections, labels and formats per item type, field-level compare; raw JSON and Download JSON kept (see {doc}`ui`) Why first: small data, no content streaming, high value (Conditional Access mistakes and deleted objects), and it exercises the whole framework. ## Phase 2 — OneDrive module - [x] Delta backup, streamed files of any size, folder renames/moves/deletions, resync; Browse with file download and ZIP export - [x] Restore to original folders or a new folder, same or another user's drive - [ ] Previous file versions (optional) - [x] Retention: point-in-time per repository, holds, preview, nightly run with space reclamation, audit-log/alert retention - [ ] Thinning (GFS), item-age deletion; S3 Object Lock ## Phase 3 — Exchange module - [x] Mail delta backup (MIME, immutable IDs, moves, folder renames/removals, resumable first sync); email view in Browse - [x] Jobs: per-module scope (entire organization / all except / only selected), live progress with estimated time left, Stop, no overlapping runs, interrupted runs marked; 4 mailboxes in parallel - [x] Calendar and contacts backup (own calendars, contact folders; JSON plus restore copies) - [x] Mail restore (restore copies, original or new folder, any mailbox) and mailbox search - [x] Calendar and contacts restore - [x] Tasks (Microsoft To Do) backup and restore - [x] ICS export (events and tasks) from Browse - [x] VCF (contacts) and EML export (one message, or a ZIP of a folder, search or selection) - [ ] MBOX export (if wanted) - [ ] Research spike: archive mailbox and full-fidelity export options - [ ] Research spike: PST writer (see {doc}`modules`), then PST export ## Phase 4 — SharePoint module - [ ] Libraries (reusing OneDrive drive code), lists, pages, permissions - [ ] `Sites.Selected` least-privilege mode ## Phase 5 — Hardening for v1.0 - [x] UI translation: ICU message catalogs, language setting, Spanish and French (beta) (see {doc}`ui`) - [ ] Server-side translation: API error codes, module label keys, emails in the organization’s language - [ ] Native-speaker review of Spanish and French; drop the beta label - [ ] Reporting (protected objects, license usage, job SLA), weekly report email - [ ] Copy jobs to a second repository - [ ] Bandwidth limit (deferred 2026-12-03): one global "limit Microsoft 365 traffic to N Mbit/s" for message downloads, restore copies and imports (not small API calls), with an optional working-hours window (for example Mon–Fri 07:00–19:00, server time). One shared allowance in the worker process. No limit on repository writes. - [ ] Per-address rate limit on sign-in, bootstrap and two-factor confirmation, if the server is ever meant to face the internet (today: LAN or VPN only, see {doc}`deployment`) - [ ] DR runbook: rebuild server from repository - [ ] Admin guide with screenshots of every wizard step and main screen - [ ] Load test (large tenant), security review, signed images and SBOM ## Later (after v1.0) - [ ] `teams` module: teams/channels/settings/membership backup and restore; channel messages (needs Microsoft's protected API approval), HTML/JSON export - [ ] S3 backend tuning and Object Lock testing at scale - [ ] Multi-tenant (MSP) mode ## Decisions from planning (2026-12-02) | Question | Answer | Effect | |----------|--------|--------| | Tenant size | ~10 users, < 50 GB | One worker; no large-tenant tuning before v1 | | Storage | Local disk | `filesystem` backend first; S3 later | | Tenancy | Single tenant | `tenant_id` kept in the data model; no MSP UI | | Licence | Apache-2.0 | `LICENSE` added; see {doc}`../adr/0005-licence` | | Mail export | EML and PST | EML first; PST after a writer spike | | Veeam migration | Run in parallel (assumed) | No import of Veeam backups | | Docs hosting | GitHub Pages, **not yet** | CI only builds the docs; deploy turns on with repo variable `PAGES_ENABLED=true` once Pages is enabled | | Tenant setup | Web wizard, no pre-registration | Device code sign-in creates the apps ({doc}`../adr/0006-automatic-app-registration`) | | Email notifications | Graph by default (wizard creates `backup-alerts` mailbox), SMTP as alternative/fallback | Separate `Mail.Send`-only app ({doc}`../adr/0007-notification-delivery`) | | Doc screenshots | Wanted | Captured from the running app when the UI exists | | Name | **Mail Safehouse** (mailsafehouse.com / .app), was Simple365Backup | No "365"/"Microsoft" in the name (Microsoft trademark guidance). Internal `s365b` identifiers, the repository format ID and the Exchange scope name stay; rename of internal identifiers before v1 | | Languages | English, then Spanish and French (beta until reviewed) | ICU catalogs in the UI; server text next; see {doc}`ui` | | Teams | Not in v1 (not used in the tenant) | `teams` module moved to "Later"; the module system is unaffected | | Container engine (2026-12-03) | Docker only | Podman and Quadlet units dropped; RHEL hosts use Docker CE | ## Still open Nothing at the moment.