You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent Backup writers from forging autosave-resume completion and releasing the lifecycle owner #962
Critical · a live Minecraft world can continue with autosave disabled while the panel reports it resumed. At master 7c71eca7, generic Backup creation persists a caller-supplied resume marker. A caller with namespaced backups:write can reach this path. A subsequent crash can lose progress since the backup.
Reproduction
Use a disposable controller/API fixture with a recording agent. No live world is needed.
POST a valid preserve-power, quiesced Minecraft Backup through the ordinary Backups resource handler. Add metadata.annotations["backup.gameplane.local/unquiesced-at"] = "client-supplied". GET the new object. The handler returned HTTP 201 and the subsequent GET returned the value unchanged.
Run BackupReconciler.Reconcile until the agent has received one pause and the GameServer lifecycle owner records NeedsUnquiesce=true. Mark the prepared worker Job successful and reconcile again.
Repeat with the same input but omit the annotation. Record resume calls, the terminal conditions and whether the lifecycle owner remains.
Case
Pause
Resume
Phase
Unquiesced
Owner held
Ordinary
1
1
Succeeded
True
No
Caller-supplied completion
1
0
Succeeded
True
No
The handler and reconciler paths were reproduced with fake clients. A game crash or actual world loss was not induced.
Acceptance criteria
Reserve controller-owned lifecycle metadata on Backup and Restore creation and update. A panel or direct CR writer cannot inject, alter or erase the operator's resume evidence.
Check the live, UID-bound owner before honoring a completion marker. Refuse release while the original process owes a resume. Clear the obligation only after verified save-on or proof that the original process exited.
Protect existing in-flight Backups with inconsistent annotations. Retrying after controller restart or a lost reply converges without reporting a false success.
Cover POST, PUT and native CR writes plus the ordinary control case. Assert agent call counts, condition and owner state independently.
Activity