---
title: "Data residency and security"
description: "Where your Workspace's data may be stored and processed, who chooses that and when, and where the credential of a Connection is kept and how to revoke access."
url: "https://harnesty.com/en/docs/residency-and-security"
language: "en"
kind: "docs"
updated: "2026-12-05"
summary:
  - "You choose the residency once, when you create the Workspace, and it never changes."
  - "`eu-guaranteed` stores and processes your data in the EU by contract. `global` permits every region our terms permit."
  - "workspace.residency.get reads the residency and the model routes it lets you use."
  - "The credential of a Connection is stored in your Workspace's vault, under your Workspace's own key."
sources:
  - title: "Workspace REST and MCP reference"
    url: "https://harnesty.com/en/docs/workspace-reference"
  - title: "General REST and MCP reference"
    url: "https://harnesty.com/en/docs/api-reference"
---

# Data residency and security

Every Workspace has a residency: where its data may be stored and processed. These are the four answers most people need first.

## In short

- You choose the residency once, when you create the Workspace, and it never changes.
- `eu-guaranteed` stores and processes your data in the EU by contract. `global` permits every region our terms permit.
- workspace.residency.get reads the residency and the model routes it lets you use.
- The credential of a Connection is stored in your Workspace's vault, under your Workspace's own key.
- **Is the data guaranteed to be stored and processed in the EU?** Yes. `eu-guaranteed` stores and processes your data in the EU by contract, with the exceptions our [data processing agreement](https://harnesty.com/en/legal/data-processing) lists. It is the default.
- **What does `global` mean?** It permits every region our terms permit. A `global` Workspace's data is stored in the regions of our hosting provider that our [subprocessor list](https://harnesty.com/en/legal/subprocessors) names, and its model calls may run in any region of a model provider, as that list states.
- **Who chooses, and when?** The person who creates the Workspace, on the create screen or with `residencyClass` in [`workspace.create`](https://harnesty.com/en/docs/api-reference#workspace.create@v1). A create that leaves `residencyClass` out gets `eu-guaranteed`. The [Workspaces guide](https://harnesty.com/en/docs/workspaces) walks through that create.
- **Can it change later?** No. The residency is fixed when you create the Workspace, and no act changes it afterwards. A Workspace that needs the other residency is a new Workspace.

## What `eu-guaranteed` covers

In an `eu-guaranteed` Workspace, when Harnesty makes model calls for your Workspace on its own routes or through your own provider account, each one goes to a model hosted in the EU. If the models hosted in the EU are unavailable, for example in an outage, the call stops rather than move to a model outside the EU.

Your own inference server is different, because Harnesty cannot see where it runs. In an `eu-guaranteed` Workspace, Harnesty refuses it until the Workspace owner declares it in the EU, and where it processes a prompt rests on that declaration: you answer for that declaration. Only the Workspace owner makes that declaration, and a change of the server's address, of how Harnesty reaches it, or of its Machine clears it.

Beyond the exceptions the data processing agreement lists, three call routes are not covered:

- A call through a Catalog integration reaches an outside provider hosted in the US. That traffic is outside the residency promise for every Workspace, and our [subprocessor list](https://harnesty.com/en/legal/subprocessors) names the provider.
- A call you make through a Connection to a tool outside Harnesty reaches that tool where it is hosted.
- A tool you run on your own computer through a Machine calls its model wherever its vendor hosts it.

## Read the residency

Call [`workspace.residency.get`](https://harnesty.com/en/docs/workspace-reference#workspace.residency.get@v1). It returns `residencyClass` and `permittedRoutes`, the model routes that residency lets you use. An empty list means that no route serves it. The read costs you nothing.

## Where a credential is stored

[`connection.create`](https://harnesty.com/en/docs/workspace-reference#connection.create@v1) stores a Connection's credential in your Workspace's vault, under your Workspace's own key. No answer returns it, and no Mandate hands it out: Harnesty decrypts it only inside the platform, and it never appears in code, configuration, a log or an event payload.

The guide [Connect your own MCP server or REST endpoint](https://harnesty.com/en/docs/integrations) walks through a Connection from its create to its first call.

## Take access back

- [`connection.remove`](https://harnesty.com/en/docs/workspace-reference#connection.remove@v1) removes a Connection. In the same act, Harnesty revokes every Mandate issued over it, so no caller reaches the tool through it again. The stored credential stays in the vault until you delete it with [`object.delete`](https://harnesty.com/en/docs/workspace-reference#object.delete@v1), with `objectId` set to the Connection's id.
- [`credential.revoke`](https://harnesty.com/en/docs/workspace-reference#credential.revoke@v1) ends a credential that a registered client obtained, before it expires. The client's next call with it is refused.

Your workspace audit log records each of these acts with who made it and under what authority.

## Sources

1. [Workspace REST and MCP reference](https://harnesty.com/en/docs/workspace-reference)
1. [General REST and MCP reference](https://harnesty.com/en/docs/api-reference)
