---
title: "How Alien uses Turso to make BYOC deployments reliable"
description: "Alien's pull-mode BYOC operator, which runs inside customer cloud accounts and must survive restarts, network loss and half-applied deployments, replaced hand-rolled JSON state files with an embedded, encrypted Turso database."
url: "https://swe.quest/articles/how-alien-uses-turso-to-make-byoc-deployments-reliable-91a3844afded050a"
canonical: "https://turso.tech/blog/turso-powers-alien-byoc"
source: "Turso"
published: "2026-06-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["sqlite","system-design","deployment","rust","cloud"]
---

# How Alien uses Turso to make BYOC deployments reliable

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-06-22, 8 min read, Case study. Original: [https://turso.tech/blog/turso-powers-alien-byoc](https://turso.tech/blog/turso-powers-alien-byoc)

## Summary

Alien's pull-mode BYOC operator, which runs inside customer cloud accounts and must survive restarts, network loss and half-applied deployments, replaced hand-rolled JSON state files with an embedded, encrypted Turso database. JSON files worked for a single deployment-state document but broke down once the operator had to handle approvals, buffered telemetry, command routing context and schema migrations, all needing transactional and partial updates across independent loops. A small schema (key/value state, approvals, telemetry buffer) opened from Rust with AEGIS-256 encryption at rest now serves as the durable coordination point between the sync, deployment, telemetry and command loops, with no extra service for customers to run.

Written by swe.quest, not by the author.

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

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- embedded databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- cloud IAM basics ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- Rust async basics ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))

## Keywords

Turso, Alien, BYOC, AEGIS-256, OTLP, encryption at rest

## Related posts

- [Introducing BYOK Encryption in Turso Cloud](https://swe.quest/articles/introducing-byok-encryption-in-turso-cloud-25db96acfd02640f.md): Turso · 2026-02-18 · Medium · 3 min read · Cryptography, SQLite, Databases, Privacy
  Bring-Your-Own-Key encryption, previously Enterprise-only, is now available to self-service Turso Cloud customers starting on the Pro Plan.
- [Why we chose Turso to secure AI credentials](https://swe.quest/articles/why-we-chose-turso-to-secure-ai-credentials-d8af40123ec1f1e5.md): Turso · 2026-06-16 · Medium · 11 min read · SQLite, Rust, Cryptography, PostgreSQL, AI agents
  Eden, a gateway and control plane for database, API and AI traffic, uses Turso's in-process SQLite-compatible storage with AES-256-GCM whole-database encryption so a single Rust binary can run beside the workloads it governs without a separate Postgres.
- [Encrypting SQLite Databases with Turso: Local, Cloud, and BYOK](https://swe.quest/articles/encrypting-sqlite-databases-with-turso-local-cloud-and-byok-5501c64f071d7d00.md): Turso · 2026-09-02 · Medium · 11 min read · SQLite, Cryptography, Multi-tenancy, Rust
  Turso offers two SQLite encryption models: native, open-source page-level encryption in its Rust rewrite of SQLite (still behind an --experimental-encryption flag, hex keys) and production-ready BYOK on Turso Cloud, where a base64 key is supplied per connection and never persisted by Turso.
- [How to build an encrypted secrets vault for agents](https://swe.quest/articles/how-to-build-an-encrypted-secrets-vault-for-agents-471dd9551705613b.md): Turso · 2026-06-18 · Medium · 8 min read · AI agents, SQLite, Security, Cryptography
  A local secrets vault for coding agents can be built as a single encrypted Turso database.
- [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)
