Cyber {IN} SecurityHow secure are we, really?
CISO Desk / Recovery & Continuity

What GitLab’s database recovery could not bring back

GitLab’s repositories survived while hours of database changes were lost. A restore test should examine the approvals and transactions behind the code.

Imagine a release manager finding the commit exactly where it should be and discovering that the approval discussion has disappeared. Should the release proceed? Recovering the code answers a different question from recovering the authority to ship it.

That distinction follows from GitLab’s public account of its 31 January 2017 database incident. Git and wiki repositories survived, while roughly six hours of database changes were lost, including work on issues and merge requests. The release manager is an illustrative consequence, not a reported individual case. GitLab’s incident account

Decide what can be reconstructed without guessing

For a hypothetical release team, an independent build record may establish exactly which source revision produced a package. A calendar invitation to a review establishes much less about whether anyone approved shipping it. Rebuilding both records from memory and marking them recovered would conceal a consequential difference in evidence quality.

Split the backlog accordingly. Reconstruct mechanically verifiable records first. Route releases with missing authority for a fresh decision by someone empowered to make it. Include that second queue when estimating when ordinary engineering work can resume.

Decide which record gives permission

A notification email might identify the reviewer. It may refer to an earlier revision or omit a later withdrawal. If the approval cannot be tied to the exact change, fresh review may be both cheaper and stronger than a day spent reconstructing correspondence. Agree who can request that review while release pressure is low.

For the next recovery exercise, select a completed business transaction that spans two systems. Restore the systems to the points actually available. Have the business owner identify the last transaction they can safely honour, then show what happens to later transactions. A system that accepts writes again can compound a discrepancy if nobody has settled where reliable history ends. GitLab’s postmortem is worth reading for how the available recovery options differed from what the backup arrangements appeared to promise. GitLab’s database postmortem

In the board paper I would give three times: the last trustworthy business record, restoration of service, and resumption of authorised work. If the third lags the second by a day, another purchase of faster restore hardware may miss the limiting factor. The better investment could be retaining independent approval evidence or arranging enough reviewers to clear the queue.

Cite or embed this articleFollow the journal by RSS
Back to the article archive