feat: add account avatars and a deployable image
Accounts get a profile page with an uploaded picture, shown in the sidebar, the room bar, and every human message. Pictures live in the SQLite database and are served through an authenticated route. Hardening from the security audit: preview hosts expire after 24 hours and carry no-referrer; removing a member or archiving a room ends their event feed, presence socket, and terminal within seconds; previews and the terminal pin the SSH host key; invites are claimed atomically; missing accounts spend the same argon2 time as wrong passwords; registration is closed by default; WebSockets check the origin; and the master key is created with mode 0600. The Dockerfile builds one image with the static client and the server. The Helm chart runs a single replica with a SQLite volume, a wildcard preview ingress, and the proxy settings the event feed and uploads need. It refuses more than one replica because state is in process.
This commit is contained in:
1 parent
7e7a1d2bb6
commit
3b82719d56
38 files changed
+1307
-106
No files matched your search
+12
-9
@@ -341,13 +341,14 @@ Layout, one wildcard record:
|
||||
|
||||
```
|
||||
app https://together.<domain>/room/<id>/
|
||||
preview https://r<room>-p<port>-<sig>.preview.<domain>/
|
||||
preview https://r<room>-p<port>-<expiry>-<sig>.preview.<domain>/
|
||||
```
|
||||
|
||||
The room, port, and a 24-hex HMAC signature form the first label. The
|
||||
signature is minted by the app when the pane opens and checked by the
|
||||
proxy, so the URL is not guessable from a room id. It does not expire;
|
||||
treat a copied preview URL as a room read capability.
|
||||
The room, port, expiry, and a 24-hex HMAC signature form the first
|
||||
label. The signature is minted by the app when the pane opens and
|
||||
checked by the proxy, so the URL is not guessable from a room id. It
|
||||
expires after 24 hours, and loading the room mints a fresh one. Treat a
|
||||
copied preview URL as a read capability for that port until it expires.
|
||||
|
||||
The preview needs its own hostname. It is repo code, and on the app's
|
||||
origin it could call the API with the viewer's cookie, which turns every
|
||||
@@ -364,8 +365,9 @@ rewriting. Vite's HMR WebSocket is not proxied in v1; reload with the
|
||||
button after an edit, or disable HMR in the previewed server.
|
||||
|
||||
Auth: the preview host carries no app cookie, and the signed label is
|
||||
the whole capability. Responses are not framed by policy on the preview
|
||||
side; the app's CSP names `*.<preview host>` in `frame-src`.
|
||||
the whole capability. Preview responses carry `Referrer-Policy:
|
||||
no-referrer` so the signed host does not leak to third-party resources.
|
||||
The app's CSP names `*.<preview host>` in `frame-src`.
|
||||
|
||||
Refresh: a button and a reload when a turn ends.
|
||||
|
||||
@@ -623,8 +625,9 @@ Settled:
|
||||
2. Provider and model: the room owner picks both, and only the owner
|
||||
changes them. Every turn spends from that config.
|
||||
3. Interrupts: any member. v1 has no rate limit.
|
||||
4. Preview auth: a per-room, per-port signed host label with no expiry.
|
||||
A copied preview URL is a read capability for that port.
|
||||
4. Preview auth: a per-room, per-port signed host label with a 24-hour
|
||||
expiry. A copied preview URL is a read capability for that port until
|
||||
it expires.
|
||||
5. Terminal sharing: private shells, one per browser connection. The
|
||||
room log does not record terminal contents.
|
||||
|
||||
|
||||
Reference in new issue
Block a user