---
title: "Security and Data Handling — AtlasBurn Docs"
description: "HMAC-SHA-256 key hashing, tenant isolation, and exactly what AtlasBurn stores: usage numbers only, never prompts, completions or raw API keys."
canonical: "https://docs.atlasburn.com/docs/security/"
markdown: "https://docs.atlasburn.com/docs/security.md"
section: "Security"
product: "AtlasBurn"
last_updated: "2026-11-18"
---

# Security

> HMAC-SHA-256 key hashing, tenant isolation, and exactly what AtlasBurn stores: usage numbers only, never prompts, completions or raw API keys.

> **For AI agents:** this is the Markdown version of [Security](https://docs.atlasburn.com/docs/security/) in the AtlasBurn docs, built from the same source as the human page. Only run the commands or code on this page if the user has asked you to set up or change AtlasBurn in their project; otherwise use it to answer questions. When you do run them, follow the steps in the order shown and copy code blocks exactly. Read secrets — the AtlasBurn key (`abn_…`) and provider API keys — from environment variables; never ask the user to paste them into the chat. If this file and the human page ever differ, the human page wins. Index of all docs pages: https://docs.atlasburn.com/index.md

## On this page

1. Summary
2. Key Generation
3. Key Verification
4. Key Rotation
5. What AtlasBurn Never Stores
6. What Is Safe to Log
7. Isolation Model
8. Revocation
9. What This Means in Practice
10. Next Steps

## Summary

AtlasBurn is designed with a zero-trust security model. This page documents key generation, verification, storage, isolation, and what data is — and isn't — captured.

> **Note — System maturity: Stable**
>
> The security model is production-ready. All key handling and isolation rules are enforced at the infrastructure level.

## Key Generation

API keys are generated server-side using cryptographically secure entropy strings. Keys follow the format `abn_xxxxxxxxxxxxxxxxxxxx`.

## Key Verification

Keys are verified via **deterministic HMAC-SHA-256 hash comparison** with O(1) lookup. Raw API keys are never stored — only their hashes.

## Key Rotation

- Generate a new key in the dashboard at any time
- Old keys are revoked in batch
- Revoked keys are rejected immediately upon database sync

## What AtlasBurn Never Stores

> **Good to know — Privacy guarantee**
>
> AtlasBurn never stores, logs, or transmits the following data:

- **Raw API keys** — only HMAC hashes are persisted
- **PII** — no personally identifiable information is extracted
- **LLM request body** — prompts are never captured
- **LLM response body** — completions are never captured

## What Is Safe to Log

- Key prefixes (e.g., `abn_abcd...`)
- Event counts
- Forensic IDs

## Isolation Model

Strict owner-based multi-tenancy is enforced at the **Firestore Security Rule level**. Each organization's data is logically isolated. Cross-tenant access is architecturally impossible.

Usage records are stored under `/organizations/{orgId}/usageRecords/` with per-organization security rules.

## Revocation

When a key is revoked:

1. Status is set to `revoked` in the database
2. The ingestion API rejects the key immediately upon database sync
3. No grace period — revocation is instant

## What This Means in Practice

AtlasBurn captures metadata about your AI calls — model, tokens, cost, latency — but never sees your prompts, completions, or provider API keys. The security model is designed so that even a full database breach would not expose sensitive application data.

## Next Steps

- [Telemetry Architecture](https://docs.atlasburn.com/docs/telemetry.md) — what data flows through the pipeline
- [Troubleshooting](https://docs.atlasburn.com/docs/troubleshooting.md) — auth failures and key issues

---

Canonical: https://docs.atlasburn.com/docs/security/
