# Security

Source: https://tiltas.openpanel.sh/docs/security

> How Tiltas keeps your traffic private, where keys live, what our servers see, and how to report a weakness.

Tiltas's servers introduce your Devices to each other and pass encrypted packets on only when a direct connection is
impossible. They cannot read your traffic. The short version is on the site's [Security](/security) page; this page has
the details.

## How your traffic is protected

- Traffic between two Devices is encrypted with WireGuard, from one Device to the other. A Relay in between sees only
  ciphertext.
- Every connection is refused unless a rule allows it: see [The access model](/docs/concepts/access-model). A Web
  Service checks, on every request, that the caller may open that Service, so opening one program never opens the rest
  of the Device.
- Personal devices on macOS, Windows, iPhone and Android refuse incoming connections until you allow them in the app.

## Keys

- **Device keys.** Each Device makes its own WireGuard private key when it joins. It stays where the system keeps
  secrets: the Keychain on Apple devices, encrypted with the Android Keystore on Android, a file only root can read on
  Linux. The Coordinator holds only public keys, so it could not decrypt traffic even if it saw it.
- **Device tokens.** After sign-in, each Device holds its own token for talking to the console's API, stored the same
  way. Removing the Device, or signing it out, ends it.
- **Join keys and Access tokens** are shown once and stored only as a hash. Join keys expire; revoke either at any time.
- **HTTPS keys** (when HTTPS for Web Services is on) are made on the Device that hosts the Service and never leave it.

## Signing in

- There are no passwords. A Magic link works once, for 15 minutes, and only in the browser that asked for it. A console
  session lasts 30 days. Teams can sign in through their own identity provider instead:
  [Single sign-on](/docs/people/sso).
- To add a Device, you type the code the Device shows into a page where you are signed in. The code is never inside a
  link, so a link someone sends you cannot add their Device to your Network. The page names the Device, its system and
  where the request came from, and warns when it came from a different network than your browser.
- With [Device approval](/docs/access/device-approval) on, an Owner or Admin also approves every new Device.

## What our servers see

| Server | Sees | Never sees |
|---|---|---|
| Coordinator | your Devices' names, addresses, public keys and operating systems; your Access rules; when each Device was last online | the content of your traffic; private keys |
| Relay | encrypted packets between two Devices that cannot connect directly, and their size | what is inside them |
| Console and API | your Members' email addresses, your Network's settings, Services and rules, the audit log | your traffic |

Devices send the console a short report every minute: their app and system version, for each peer whether the
connection is direct or relayed, and whether each Service they host answers. Logs on a Device stay on the Device; they
are never uploaded.

## Every Network runs apart

Each Network has its own Coordinator process, database and keys. A mistake in one Network's rules cannot open another,
because the two never share one. Every request to the console and the API is checked against your Account; a request
for something in another Account is answered as if it did not exist.

## Where it runs

The console, the Coordinators and the Relay run on servers in the EU. Traffic between your Devices goes straight from one
to the other, and reaches a Relay only when no direct path exists.

## Audit log

Owners and Admins can read what was done in the Account, by whom and when, and export it as CSV. See
[Audit log](/docs/people/audit-log).

## Reporting a vulnerability

Found a weakness? Tell us through the contact options on the [Security](/security) page.
