# Vault “Transit” & downloads

Since **v1.1.0**. Two places for files in the box — with a clear line between them:

| | `~/Downloads` | `~/Transit` (vault) |
|---|---|---|
| For | everything you download in the box | **only** what should deliberately go out (or come in) |
| Kept | yes (own volume) | yes |
| Reachable from outside | **no** (root only, see below) | yes — with the vault password, while the box is off |
| On disk | unencrypted | **encrypted** (gocryptfs) |

Tor Browser asks where to save each download (default `~/Downloads`). In the box menu (`🧅 ☰`) **“📥 Downloads”**
and **“🔐 Transit”** open the file manager — just drag files from Downloads to Transit.

## Create

`setup.sh` asks once on the first update to 1.1 or on install: “Create the vault “Transit”?”. Any time later:

```bash
onionpod transit init
```

Its own password, **not** the lock password. Tip: a sentence instead of cryptic characters.
**Forget the password = lose the content** — there is no back door. Start over (empties the vault):

```bash
onionpod transit reset
```

## Inside the box

When opening, after the lock password the same window asks for the **vault password** (3 tries, checked by the box
itself) — or **“Open without vault”**. With the vault there is `~/Transit`, in the menu and as a bookmark in the file
dialog.

## Outside (box off)

```bash
onionpod transit open     # asks for the vault password, opens /var/lib/onionpod-transit/Transit in the file manager
onionpod transit close    # close again
onionpod transit status
```

Only you can enter the folder (`/var/lib/onionpod-transit` belongs to you, `700`). **Box and outside never at the
same time:** while the box runs, the vault is in the box; while it's open outside, the box won't open with the vault —
`onionpod transit close` first.

## Why not SiriKali?

The box runs under freshly rolled user IDs on every start. The vault is opened **inside the box** (only a short helper
process gets rights in the box namespace for that, Tor Browser doesn't), so the encrypted files always belong to the
box, never to you. SiriKali (running as you) can't reach them — `onionpod transit open` mounts the vault for you on the
box's behalf instead. A welcome side effect: **the computer never sees the plain text** while the box has the vault
open.

## Honestly: what is readable where?

- **Transit** is encrypted on disk (`/var/lib/onionpod/.conionpod`). Without the password it's just noise — even for
  root.
- **Downloads, Tor Browser profile, box settings** are stored **unencrypted** in the box user's folder
  (`/var/lib/onionpod/…/volumes/onionpod-downloads/_data/` etc.). Programs running as you can't reach them, **root
  can** — and so can anyone who removes the disk of a computer without full-disk encryption. Keep important things in
  Transit.
