Skip to content

Prevent Backup writers from forging autosave-resume completion and releasing the lifecycle owner #962

Open

Description

@Baylem

Impact

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.

  1. 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.
  2. 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.
  3. 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.

Generic API create · Resume shortcut · Owner release. #871 and #899 cover verified game acknowledgments; this bypass runs before the resume call.

Activity

  1. added
    bug
    type: security
    area: operator
    area: api
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiarea: operatorbugtype: security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions