---
title: "Incident 2023-12-04: Data leak and loss in some free tier databases"
description: "A migration bug introduced on November 20 left 0.07% of Turso free-tier databases with an empty backup identifier, so they all pointed at a shared S3 prefix (s3://bucket//) instead of per-database paths."
url: "https://swe.quest/articles/incident-2023-12-04-data-leak-and-loss-in-some-free-tier-databases-f301d07a6ce79951"
canonical: "https://turso.tech/blog/incident-2023-12-04-data-leak-and-loss-in-some-free-tier-databases-7cba5bc7"
source: "Turso"
published: "2023-12-05"
difficulty: "medium"
kind: "Incident"
reading_minutes: 3
tags: ["incident-response","multi-tenancy","storage-systems","security","serverless"]
---

# Incident 2023-12-04: Data leak and loss in some free tier databases

A post on [Turso](https://swe.quest/sources/turso.md), published 2023-12-05, 3 min read, Incident. Original: [https://turso.tech/blog/incident-2023-12-04-data-leak-and-loss-in-some-free-tier-databases-7cba5bc7](https://turso.tech/blog/incident-2023-12-04-data-leak-and-loss-in-some-free-tier-databases-7cba5bc7)

## Summary

A migration bug introduced on November 20 left 0.07% of Turso free-tier databases with an empty backup identifier, so they all pointed at a shared S3 prefix (s3://bucket//) instead of per-database paths. When scale-to-zero databases on fly.io couldn't be resumed and were recreated from backup, they restored from this shared location, leaking data across tenants. The fix re-ran the migration and restored each affected database from its correct December 1 backup, discarding later writes. Remediation includes control- and data-plane checks that backups match their database, stricter allowed configurations with self-healing, safer migrations and better security reporting channels.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)

## Prerequisites

- object storage basics ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- database backups and restore ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

Turso, fly.io, S3

## Related posts

- [You can now migrate your existing databases to AWS](https://swe.quest/articles/you-can-now-migrate-your-existing-databases-to-aws-664f4db954322a62.md): Turso · 2025-05-12 · Medium · 4 min read · SQLite, Databases, Cloud platforms
  Turso paid-plan users can move database groups from Fly.io to AWS with new \`turso group aws-migration info/start/abort\` CLI commands; free-tier users have already been migrated.
- [Post mortem on Linear incident from Jan 24th, 2024](https://swe.quest/articles/post-mortem-on-linear-incident-from-jan-24th-2024-c1bcc35cc14b559c.md): Linear · 2024-01-30 · Medium · 9 min read · Incidents & postmortems, PostgreSQL, Schema migrations, Local-first & sync
  A database migration using \`TRUNCATE TABLE ... CASCADE\` on two new, unused tables silently wiped every production table with foreign keys to them, including issue and document descriptions, comments, notifications and reactions.
- [How does Turso Cloud keep your data durable and safe?](https://swe.quest/articles/how-does-turso-cloud-keep-your-data-durable-and-safe-676876baa112a2af.md): Turso · 2025-05-20 · Medium · 4 min read · SQLite, Storage engines, Storage systems, Multi-tenancy, Cloud platforms
  Turso Cloud makes every SQLite database durable on S3 and S3 Express, treating local server disk purely as a cache.
- [An adventure in writing compatible systems](https://swe.quest/articles/an-adventure-in-writing-compatible-systems-f48d37f87fc6e365.md): Turso · 2025-08-28 · Medium · 4 min read · SQLite, Storage engines, Formal methods, Debugging, Rust
  Turso, a Rust rewrite of SQLite, hit a bug where every write after the database crossed 1GB made SQLite's integrity checks fail, even though Turso's own checks found the file intact.
- [Turso Cloud on AWS is now available for everybody](https://swe.quest/articles/turso-cloud-on-aws-is-now-available-for-everybody-1dc0ea860495bbb1.md): Turso · 2025-03-17 · Easy · 2 min read · SQLite, Storage engines, Multi-tenancy, Cloud platforms, Serverless
  Turso Cloud is now generally available on AWS, built on an S3-native architecture where every commit is made durable on S3 Express One Zone and local disks serve as a read cache.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
