# The access model

Source: https://tiltas.openpanel.sh/docs/concepts/access-model

> Everything is closed until a rule opens it. What is open from the start, and how rules and Groups open the rest.

Tiltas refuses every connection between Devices unless something allows it. Three things can.

> Diagram: everything is closed until a rule opens it. Ona's own Personal devices reach each other. An Access rule lets Ona reach the Server nas on port 445. Nothing allows Ona to reach the Service gitea, so it is refused.

## 1. The built-in rule

Each Member's own Personal devices reach each other: your laptop reaches your phone, and your phone your laptop. It is
listed first under **Access rules** as **Built in**, and cannot be removed.

It does not reach other people's Devices, and it does not reach Servers.

**Allowed is not the same as open**

On macOS, Windows, iPhone and Android, the app starts with **Allow incoming connections** off. The rules allow your
phone to reach your laptop, but the laptop refuses until you turn that on in its Settings. On a Linux computer and on
Servers, incoming connections are on.

## 2. Access rules

An **Access rule** says who may reach what, and on which ports. The console writes it as one sentence: who, then what,
then ports.

- **Who**: everyone in the Network, or chosen Members, Groups and Devices.
- **May reach**: one or more Services, Devices, Groups, or Subnets (a LAN shared through a Device).
- **Ports**: numbers or ranges such as `8000-8100`; empty means all ports.

Rules only add access. There is no rule that refuses; anything no rule allows stays closed. Owners and Admins write the
rules; every Member can read them. See [Access rules](/docs/access).

## 3. A Service's "Who can open it"

Each Service says who may open it, on the Service itself. It opens that one program, not the rest of the Device.
See [Services](/docs/concepts/services).

## Groups

A **Group** is a named set of Members and Servers, such as `admins` or `ops`. Write rules for Groups, then change who is
in them instead of editing every rule. A Group cannot be deleted while a rule refers to it. See [Groups](/docs/access/groups).

## What is closed

- Servers and Services, until a rule or a Service's "Who can open it" opens them.
- Other Members' Personal devices.
- A Device waiting for approval, when [Device approval](/docs/access/device-approval) is on: it reaches nothing.
- SSH sign-in as a system user, which has its own rules: see [SSH access](/docs/ssh).

## Check before you rely on it

Open any Device in the console to see what it can reach and which rule allows each thing. The view is computed from the
same rules the Coordinator enforces. See [Check what a Device can reach](/docs/access/check-reach).

Changes reach the Devices within seconds.
