Files
Doghouse/CHANGES-0.6.0.md
2026-12-01 06:21:47 +11:00

14 KiB

Doghouse 0.6.0

Custom roles and channel permissions (with private and read-only channels) and statuses (Online, Idle, Do not disturb, Invisible, custom text that can clear itself), on top of 0.5.0, plus housekeeping (the app image is tagged with the version), a security fix for 0.5.0 and earlier, and the fixes listed below. One additive database migration, 011_roles_status.sql, applied automatically on start. No new settings and no new ports.

Right before you upgrade, back up the data folder (deploy/data) and .env. Database migrations can't be undone: going back to 0.5.0 needs that backup, and restoring it loses anything posted after the backup was made. See "Upgrading to 0.6.0 and rolling back" below.

New: custom roles and channel permissions (M28, M29)

  • Server settings has a Roles tab for owners, admins and anyone with Manage roles: create a role, name it (up to 32 characters), give it a colour and pick what it allows (view channels, send messages, send in threads, add reactions, pin messages, manage messages, add emoji, manage emoji, manage channels, manage roles). Up to 50 roles per server, plus @everyone.
  • Every server has @everyone, the role all members have. On upgrade it gets exactly what members could do in 0.5.0 (view, send, threads, reactions, pins, adding emoji), so nothing changes for anyone until you change it. @everyone can't be renamed or deleted.
  • Roles are ordered; reorder them with the up and down buttons (keyboard friendly). The owner and admins sit above every role and keep every permission, so nobody can lock out the owner. Someone with Manage roles can only edit, assign or reorder roles below their own top role, and only hand out permissions they have themselves.
  • Members: Server settings > Members assigns roles. A member's name takes the colour of their highest coloured role in chat, the member list and mentions (High contrast keeps names in the normal text colour; a colour too dark for the theme falls back to the text colour). The member list groups online members under their highest role.
  • Channel permissions tab: for each channel, allow or deny bits for @everyone and for roles, on top of the server-wide role permissions. Saving a change that would take a permission away from you asks first ("You won't be able to undo this yourself; an owner or admin would have to"); a change that would give you a permission you don't have is refused. The Roles tab asks the same before a save or delete that lowers your own permissions.
  • Kick, ban, promoting to admin and transferring ownership work exactly as before (by rank).

New: private and read-only channels (M29)

  • Deny View channels to @everyone (and allow it to a role) and the channel is private: people who can't see it don't get it in the channel list, its history, pins, threads, search results, unread counts, notifications, voice participants or member list, and it doesn't leak through live updates either. Taking someone's access away drops the channel (and a voice call in it) for them at once, without a reload.
  • Admins and the owner see every private channel (as Discord's Administrator does). A private channel hides from members, not from admins.
  • Deny Send messages and the channel is read-only for those people: the composer says "You can't send messages here." instead of offering a text box.

New: statuses (M30)

  • Open the status menu in the user panel (bottom left, "Set status") to pick Online, Idle, Do not disturb or Invisible.
  • Auto-idle: after 10 minutes with no input in any of your tabs (a hidden tab counts as idle 10 minutes after its last input), others see you as Idle; you're Online again as soon as you're back. A status you picked yourself is never changed for you.
  • Do not disturb: no push notifications for messages, mentions or incoming calls and no ring sound (incoming calls still show the ring card), on top of the existing notification settings and quiet hours.
  • Invisible: everyone else sees you exactly as offline (member list, online count, profile, typing), while you can carry on as normal.
  • Custom status: "Set custom status…" in the same menu: up to 128 characters (a live counter shows how many; the app and the server count them the same way) and an optional emoji, cleared after 30 minutes, 1 hour, 4 hours, at the end of today, or never. It shows in the user panel, the member list and the profile card, to people who share a server or DM with you, not while you're offline or Invisible, and never between people who have blocked each other. Text that has expired goes away by itself, also if the server was off when it expired.

Housekeeping

Docker image is tagged with the version

  • deploy/docker-compose.yml now uses image: doghouse-app:<version> (doghouse-app:0.6.0 in the release) instead of doghouse-app:local. A plain docker compose up -d builds the image the first time (the compose file has a build: section) and reuses it after that, so a new release can't start on the previous release's image because --build was forgotten. That is what made Settings show 0.4.0 after a 0.5.0 upgrade done without --build. up -d --build still works and rebuilds.
  • A release check keeps the tag honest: npm run check (through validate:deploy), the packager and the package-files test all fail if the compose image isn't exactly doghouse-app:<package.json version>. When you bump the version in package.json, also bump the compose image tag to doghouse-app:<version> in the same change.
  • The app service has pull_policy: never: a missing image is built straight away, with no attempt to pull doghouse-app from a registry and no "pull access denied" warning (QA-140).
  • Development zips (doghouse-<version>.<hash>.zip) tag their image doghouse-app:<version>-<hash>, written into the zip's compose file by the packager, so each milestone zip builds its own image on a plain up -d even though the version hasn't changed (QA-141). Release zips keep doghouse-app:<version>.
  • Older images stay on the machine under their own tag until you remove them (docker image rm doghouse-app:<version>).
  • Tested on a real Docker daemon: a plain up -d built the missing tag, a second up -d rebuilt nothing, and a version bump built and started the new tag while the old tag stayed.

Security

  • 0.5.0 and earlier: the cross-origin check on state-changing requests (and, in 0.6 builds before this fix, the "don't cache" header on API answers) could be skipped by writing the path with percent-escapes, for example /%61pi/... for /api/... (QA-163, Medium). A page on a sibling subdomain could, for example, make a logged-in user join a server. SameSite cookies already stopped other sites. Now every POST, PUT, PATCH and DELETE is checked whatever its path, a request with no Origin header is accepted only from the page itself or from non-browser clients (a sibling subdomain is refused), and every JSON answer is marked Cache-Control: no-store unless it is a static file.

Fixes

  • After you unblock someone, thread names (and the parent message in an open thread) come back without a reload. Before, a thread you had loaded while they were blocked kept the neutral name "Thread" until you reloaded (a 0.5.0 leftover).
  • The old 0.4.1 "pinned a message" line, for a reply that has since moved into a thread, now opens that thread at the reply instead of saying "That message isn't available any more" (QA-135). A deleted message still says so.
  • GET /api/messages/:id now answers "not found" for a message by someone you blocked, like the history, jump and pins routes do (QA-137). Nothing in the app showed it before.
  • A tab that gets a "session needed" answer and finds another account logged in (another tab switched accounts) now ends its session and shows the login screen, instead of carrying on as that account (QA-124). The same check runs when the tab is focused or becomes visible again, so a cookie swapped to another valid account is caught without waiting for a 401.
  • The emoji picker is one Tab stop; the arrow keys move between emoji, and Tab leaves the grid in one press instead of walking through all of them (QA-125).
  • The server rail's divider no longer trips the accessibility checker's "list" rule (QA-125).
  • Every name (display names, custom status, server, channel, role and device names) refuses text that shows nothing, such as only zero-width spaces, a Braille blank or Hangul fillers (QA-162), while emoji keep every part, for example ❤️ at the end, 🏳️‍⚧️, keycaps and the Scotland, England and Wales flags (QA-168).
  • Text channel names keep accents and vowel signs: "नमस्ते" and "สวัสดี" are no longer cut down (QA-170, a bug since 0.5.0 or earlier). Existing channel names are not changed.
  • Display-name changes are rate limited like custom status (10 in 10 seconds per person); theme saves are not (QA-166, QA-167).
  • Accessibility: confirmations describe themselves to screen readers and start on Cancel when they delete or can't be undone (QA-159); after a role save focus returns to Save, and after revoking an invite it moves to the next one (QA-165); the custom status dialog starts in its text field; danger buttons on hovered rows (QA-160) and the hovered thread badge (QA-169) reach 4.5:1 in every theme.
  • Every API answer that is JSON is marked Cache-Control: no-store, so a shared browser or proxy never keeps a copy (QA-161).

Upgrading to 0.6.0 and rolling back

Back up the data folder and .env right before you upgrade, not the night before. Migration 011 can't be undone, so the way back to 0.5.0 is that backup: anything done on 0.6.0 after the upgrade is lost.

  • From 0.5.0: follow "Upgrading 0.5.0 -> 0.6.0" in the README (back up, unzip doghouse-0.6.0.zip, copy .env and move data across, docker compose up -d --build). Settings > App and notifications > About and /api/health then show 0.6.0.
  • From 0.4.x or 0.3.x: the same steps, reading your folder name for doghouse-0.5.0. 0.6.0 includes every earlier fix, and the migrations in between run on start, in order. The way back is the backup you made, as below.
  • The database (migration 011_roles_status.sql, the only one in 0.6): it adds roles, member roles and channel permission overrides, plus three columns on users for custom status text. Nothing is rebuilt. Every existing server gets an @everyone role with exactly the 0.5.0 member rights, so nothing changes for anyone on upgrade. Owners and admins keep every permission through their rank and need no roles. A check at start-up creates @everyone for any server that is missing one.
  • Rolling back to 0.5.0: restore the backup. 0.5.0 would start on 0.6 data (it ignores the new tables), but it has no private channels: every member would see every private channel's history, read-only channels become writable again, and roles and custom text vanish. So go back with the backup you made before the upgrade (README, step 5), not by moving the 0.6 data back.

Real-device checklist

The 0.3.0, 0.4.0 and 0.5.0 checklists still apply. New in 0.6:

  • Docker build on the server: unzip the 0.6.0 package, run docker compose up -d --build in its deploy folder and wait until docker compose ps says healthy. Settings > App and notifications > About and /api/health show 0.6.0 (build <10 characters>, <date>), and docker images doghouse-app lists a 0.6.0 tag.
  • Voice and TURN: a voice channel call and a screen share between a phone on mobile data and a computer at home (so the media goes through the router's forwarded ports, and TURN on UDP 3478 for the phone if its network is strict); both hear each other and see the share.
  • Push on a phone: with the app installed on the phone and the tab closed, a mention and a DM arrive as notifications; set Do not disturb and they don't; back to Online and they do.
  • Statuses on two devices: on the phone pick Idle, then Invisible, then set a custom status that clears in 30 minutes; the computer (logged in as someone else) shows Idle, then you as offline with no custom text, then Online again with the text; leave a tab alone for 10 minutes and it shows Idle.
  • Private channels and role edits: make a role, give it to a second account, make a channel private to that role (deny View for @everyone, allow it for the role). The second account sees the channel at once; take the role away and it disappears for them without a reload. A third account never sees it, nor in search. Deny Send for @everyone somewhere: the third account sees "You can't send messages here."
  • Admin view: an admin account sees every private channel (D37), including ones no role allows; the owner sees everything.
  • Admin policy (D61): 0.6.0 ships with ADMIN_CHANNEL_POLICY = 'all' (admins see every private channel). The other choice, 'roles' (admins see only channels their roles allow, but can still fix access because the Channel permissions page lists every channel's name), is built and tested but needs a one-line change in packages/shared/src/permissions.ts and a rebuild. Say if you want it.

Known limitations (0.7 list)

  • Custom status text isn't shown in DM list rows (it is in the member list, user panel and profile card).
  • The custom status dialog loses what you've typed (text, emoji and "Clear after") if your status changes from another tab or device while it's open.
  • No general per-user write limit: theme saves and some other own-account writes aren't rate limited (as in 0.5.0).
  • Every custom role is its own group in the member list; a "display separately" option per role comes later.
  • No category-level permissions: a private category is several private channels.

Not fixed in 0.6 (decided)

QA-117 (search time cap), the other three QA-125 items (cosmetic), QA-129, QA-130 and QA-136.

Developers

  • REQUIRE_LIVEKIT=1 npm run check runs typecheck, lint and all unit tests with nothing skipped: shared 340, server 834, web 1792, 0 failed.
  • A full e2e run (REQUIRE_LIVEKIT=1 npm run e2e) is 136 passed, 122 skipped, 0 failed. All skips follow the skip policy in CHANGES-0.3.0.md: desktop-only tests skipped in the phone project and phone-only layout checks skipped in the desktop project.
  • The release zip carries the notes of every release (CHANGES-0.1.1.md to this file and CHANGES-M6.md) and THIRD-PARTY-NOTICES.md.