mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
fix(backup): trace an account made for an upload when it is made
The upload creates a passwordless account before it reads the file and deletes it again when the file is refused. The only audit row was written after a successful store, so a refused upload whose delete also failed left an account nobody could sign into and no record of where it came from. The account and its admin.user.create row (outcome "created") now commit together, and the discard writes admin.user.delete with outcome "deleted" or "failed", so a leftover account always has a trace. The runbook says how to remove one by hand.
This commit is contained in:
1 parent
16d1b542a5
commit
94854bd8f7
4 files changed
+132
-28
No files matched your search
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 345,
|
||||
"total": 111940,
|
||||
"total": 111929,
|
||||
"entries": {
|
||||
"app/achievements/page.tsx :: AchievementsPage": 206,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 286,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 275,
|
||||
"app/api/admin/notifications/reminder-check/route.ts :: apiHandler(arg)": 206,
|
||||
"app/api/admin/settings/route.ts :: apiHandler(arg) #2": 211,
|
||||
"app/api/auth/login/route.ts :: apiHandler(arg)": 262,
|
||||
|
||||
Reference in new issue
Block a user