zerobyte/app/server/utils
Nico 451aed8983
Multi users (#381)
* feat(db): add support for multiple users and organizations

* feat: backfill entities with new organization id

* refactor: filter all backend queries to surface only organization specific entities

* refactor: each org has its own restic password

* test: ensure organization is created

* chore: pr feedbacks

* refactor: filter by org id in all places

* refactor: download restic password from stored db password

* refactor(navigation): use volume id in urls instead of name

* feat: disable registrations

* refactor(auth): bubble up auth error to hono

* refactor: use async local storage for cleaner context sharing

* refactor: enable user registration vs disabling it

* test: multi-org isolation

* chore: final cleanup
2026-01-20 22:28:22 +01:00
..
backend-compatibility.ts secret reference server usage 2025-12-15 10:50:13 +01:00
cache.ts refactor: use backend cache in restic operations (#295) 2026-01-04 16:37:42 +01:00
crypto.ts Multi users (#381) 2026-01-20 22:28:22 +01:00
errors.ts refactor: warning only when backup is aborted 2025-12-19 23:30:23 +01:00
fs.ts chore: small code style improvements 2025-12-16 19:36:37 +01:00
id.ts refactor: tag snapshots with schedule short_id instead of db id (#248) 2025-12-28 11:42:25 +01:00
logger.ts refactor: implement a proper code migration system (#324) 2026-01-08 18:46:32 +01:00
mountinfo.ts refactor: unify backend and frontend servers (#3) 2025-11-13 20:11:46 +01:00
rclone.ts refactor: use spawn & exec instead of bun $ (#356) 2026-01-15 22:09:00 +01:00
restic.ts Multi users (#381) 2026-01-20 22:28:22 +01:00
sanitize.ts feat: restore to custom location (#78) 2025-11-29 16:53:44 +01:00
shoutrrr.ts refactor: use spawn & exec instead of bun $ (#356) 2026-01-15 22:09:00 +01:00
spawn.ts refactor: use spawn & exec instead of bun $ (#356) 2026-01-15 22:09:00 +01:00
timeout.ts refactor: unify backend and frontend servers (#3) 2025-11-13 20:11:46 +01:00