# Data Residency

**Data residency** lets you pin an organization's metadata and block storage to a real, infrastructure-enforced jurisdiction - **EU** or **US** - chosen once at signup.

It's free and self-serve on every paid plan, Starter through Enterprise (Free-plan orgs use shared storage and can't pin a region); there's no price gate and no sales conversation needed to turn it on.

An individual repository can additionally pin its **own** region at creation, independent of the org's - see [Per-repository residency](#per-repository-residency).

FedRAMP and FedRAMP-High storage regions are available on Enterprise, provisioned by us through sales rather than the self-serve picker. Swarmfile itself is not FedRAMP-authorized - the regions are available, the authorization is not - so if you have that requirement, talk to us before you plan around it.

This page is the operational how-to. For the underlying mechanism - how jurisdiction pinning actually works at the infrastructure level - see [Security Architecture](https://swarmfile.com/docs/admin/security-architecture).

## What this does and doesn't change

- **Platform-enforced, not a convention.** This isn't an application-level rule we promise to follow - it's a real, platform-level restriction on where your organization's metadata and block storage physically live. Jurisdiction-pinned storage exists in a namespace that's invisible to any request that doesn't carry the matching jurisdiction; there is no shared code path that could accidentally route around it.
- **Covers our system of record, not your own peer-to-peer transfers.** Your own team's machines transferring files to each other over the peer-to-peer engine are already authorized devices on your own network - that's not something jurisdiction pinning governs, the same way a cloud region guarantee doesn't follow your own laptop once you've downloaded a file. If you have your own downstream residency commitment to your own clients, you can additionally turn on cloud-only mode (Settings → Network) to disable peer-to-peer entirely for that org.
- **Global by default.** If you don't choose a jurisdiction at signup, your org runs on our standard global infrastructure - this is a purely additive choice, not a change to what already exists.
- **Immutable, on purpose.** Jurisdiction is fixed at creation by design. Both your metadata store and your block storage have their jurisdiction fixed at creation by the platform itself; moving one means migrating to entirely new infrastructure, not flipping a setting. Choose carefully at signup. The same applies to a per-repository pin (below).

## Choosing it

Pick **Data residency** on the signup form (or the organization-creation screen if you're joining as an existing user with no organization yet) - the choice is right next to the organization name field. Leaving it on **Global (default)** is the same as not having this feature at all; picking **European Union** or **United States** pins the org immediately upon creation, and a confirm dialog gates the choice specifically because it can't be undone.

FedRAMP and FedRAMP-High aren't in the self-serve picker, but they are available on Enterprise: we provision them through sales. If you have a FedRAMP requirement, talk to us directly.

## Per-repository residency

A paid org can pin an **individual repository** to its own EU/US region when the repository is created - independent of the org's own choice, so a repository on a Global org can be pinned, and a repository on an EU org can be pinned to US. A pinned repository gets its own metadata namespace and its own region bucket, and is never served from the org's storage.

- **Chosen at creation, immutable.** Like the org-wide choice, a repository's region is fixed when the repository is created; there is no way to move or un-pin it later. The create form states this before you commit.
- **Entitlement.** Per-repository EU/US pinning is available on every paid plan; FedRAMP regions are Enterprise, provisioned through sales (not the self-serve picker), and Swarmfile itself is not FedRAMP-authorized.
- **Provisioning.** The region's bucket is provisioned on first use. Until it's ready the repository's reads and writes fail closed with a `storage_provisioning` refusal - it never silently falls back to the org's bucket - and the creator is notified once it's ready.
- **Rules out customer-managed storage.** A pinned repository can't use a [branch mirror](https://swarmfile.com/docs/admin/branch-mirror), and an org with any pinned repository can't switch to [BYOS primary storage](https://swarmfile.com/docs/admin/bring-your-own-storage): Swarmfile can't verify the region of a customer-supplied endpoint.
- **Web, desktop app and CLI.** `swarmfile repository create --residency eu` pins at creation, and `swarmfile repository show` reports the repository's region and storage status (see the [CLI reference](https://swarmfile.com/docs/cli/swarmfile)).

## Known limitations today

- **No self-serve upgrade path.** If your org is already running on global infrastructure, there's no way to move it to a pinned jurisdiction after the fact. This is the same "provisioning is a one-time, creation-time decision" constraint as [Dedicated Storage](https://swarmfile.com/docs/admin/dedicated-storage), for the same underlying reason - neither your metadata store nor your block storage can be relocated once created.
- **FedRAMP is Enterprise, not self-serve.** There's no self-serve picker for it - we provision FedRAMP/FedRAMP-High regions through sales - and Swarmfile is not FedRAMP-authorized; ask us before planning around it.
