Fly.io, a cloud provider that runs customer apps on its own servers worldwide, replaced HashiCorp Vault, a widely used secrets manager, on the path apps use to load secrets at boot. Vault took writes in a single region, IAD, so every boot depended on it. The company says p99 read latency (the time within which 99% of reads finish) was 10 seconds. It built Petsem, an in-house store with read replicas in several regions, plus checks that let a server read only the secrets of apps placed on it. Fly.io says p99 fell to 300 ms.
The move took over a year: dual writes and backfill from March 2024, both systems running side by side, and a final cutover in July 2025. Fly.io accepted weaker consistency in exchange for speed and availability. It says multi-region enterprise Vault would have cost about one engineer's yearly salary. The design has limits: a compromised server can still read its guests' memory, and Vault still runs elsewhere in its infrastructure.
