Desktop identities and projects
A registration identifies one client
Section titled “A registration identifies one client”wiretap relay register creates a relay client ID and token. It can create initial project paths at the same time with --projects, and --save stores the identity for tunnel startup and ordinary project management.
To add a route later, use wiretap relay projects add with the saved identity instead of registering again:
wiretap relay projects add new-projectA project is a durable public route
Section titled “A project is a durable public route”For this request:
POST https://relay.example.com/new-project/orders/creatednew-project selects the relay project. /orders/created is preserved as the webhook path.
A project can have multiple subscribed clients. The relay stores one copy of each webhook and delivers it independently to every subscriber. Each subscription has its own start sequence, acknowledgement cursor, and pending count, so one offline client does not advance another client’s state.
The first client creates the project. Joining an existing project requires a relay administrator, which prevents a client from subscribing itself to a guessable path.
Choose whether a new subscriber receives history
Section titled “Choose whether a new subscriber receives history”By default, a newly added subscriber starts after the latest retained sequence and receives only future traffic. A relay administrator can deliberately include retained history:
wiretap relay --url https://relay.example.com --admin-token TOKEN \ projects subscribe new-project --client-id CLIENT_ID --include-historyThis choice affects only the new subscription. Existing subscribers keep their current cursors.
Unsubscribing is not deletion
Section titled “Unsubscribing is not deletion”The current client can remove its own subscriptions with its client credentials:
wiretap relay projects remove new-projectThe project, other subscribers, and retained relay history remain. If the last subscriber leaves, the project becomes inactive and ingress returns not found until an administrator adds a subscriber again.
Two kinds of secret
Section titled “Two kinds of secret”| Secret | Used for | Storage behavior |
|---|---|---|
| Relay admin token | Registration and /admin/* operations |
Memory only, or OS keyring for an opted-in saved relay profile |
| Desktop client token | Tunnel authentication and the desktop’s own project subscription changes | OS keyring when available; protected file fallback for unattended/headless use |