Repository navigation
v3.49.0
Eight languages, two Google connections removed, and admins can finally see who is filling the disk.
Added
Haven speaks Brazilian Portuguese (#5516). The eighth language out of the box, and the only one currently translated in full: all 1,634 phrases in the interface, where the other locales still fall back to English in places. The first pass was machine-generated and then reviewed line by line by a native speaker, which is the part that matters. Contributed by @bernardokcosta.
See how much upload storage each member is using. Admins had no way to tell who was filling the disk short of going through the uploads folder by hand. All Members now shows a size per member, with a breakdown of channels, DMs and avatars behind a tooltip, a filter that ranks everyone by storage used, and a running total for the server. Sizes are read from disk when the list is built, so deleting a file drops it from the count with no bookkeeping to fall out of step. Moderator-only, and files uploaded before this show as an unattributed total rather than being guessed at. DM attachments are encrypted, so only their size is known, never their contents. Suggested by TGS and bo0sted.
Google can be taken out of the picture (#5514). Two connections nobody could opt out of are gone. Fonts are bundled with Haven now instead of being fetched from Google Fonts on every visit, and the Content-Security-Policy has been tightened so they cannot quietly come back. The Google STUN servers have been dropped from the voice fallback pool, which now runs on three independent providers. Mobile push is a separate matter, since Google is what wakes an Android phone, so it gets a switch instead under Settings, Security, FCM Privacy. Turning it off skips FCM entirely and leaves browser notifications alone, so only do it if everyone on your server has a UnifiedPush app installed. Contributed by @Bo0sted.
Invite links can stand in for the registration token (#5508). On a server with the registration token switched on, an invite link still left the recipient facing a box asking for a code they did not have. There is now an admin switch that lets a valid invite link register on its own, off by default. An invite link arriving at the sign-in page opens the registration tab straight away, and a link that turns out to be expired or used up puts the token box back rather than leaving the person stuck. New links now default to a single use and 30 days rather than unlimited and never. Contributed by @birdcrazy.
Bots on your own network can be called back (#5518). Haven refuses to send webhook callbacks to private addresses, which is right by default but blocked the ordinary case of a bot running on the same LAN or in a neighbouring Docker container. HAVEN_ALLOW_PRIVATE_CALLBACKS=true allows them. It is deliberately an environment variable rather than a switch in the admin panel, because setting a callback URL only needs the webhook permission rather than full admin, so a switch in the interface could be flipped by the very account the guard exists to contain. Cloud metadata addresses stay blocked either way. Reported by @josolanes.
Admins are told when the disk reserve runs out (#5505). The reserve added in 3.48.0 keeps a server recoverable, but the only sign it had kicked in was a line in the server log and an error for whoever happened to try an upload. Admins now get a warning in the header the moment uploads start being refused, with the free space and the reserve size behind it, and it clears itself once there is room again. Admins only, and it appears when the state changes rather than on a timer. Reported by @KentuckyFriedBlyat.
Fixed
Banned users no longer turn up in @mention autocomplete. The list feeding autocomplete joined users to channel membership without checking for a ban, and banning deliberately leaves those rows alone so that unbanning restores membership. They now disappear the moment the ban lands, for people already sitting in the channel rather than only after switching away and back.
Channel lists refresh after a main channel is deleted (#5519). Every other change to a channel told everyone's sidebar to update, and deletion was the one that did not. Contributed by @birdcrazy.
Last.fm album art loads again (#5515). Last.fm began serving cover images from a subdomain that was not on the allowlist, so the art came back blank for anyone using it for music presence. Contributed by @Bo0sted.
Security
Webhook callbacks are much harder to point somewhere they should not go (#5520). The old check read the callback address as text, which meant it could be walked around by writing the same address a different way, and it never looked at what a hostname actually resolved to. It now rejects addresses written in decimal, hexadecimal or octal, the IPv4-in-IPv6 forms, and URLs carrying credentials; it inspects every address a hostname resolves to and refuses the lot if any of them is private; it pins the connection to the address that passed the check, so a second DNS answer cannot swap in a private one after the fact; and it does not follow redirects. One deadline now covers name lookup and delivery together. Contributed by @bernardokcosta.
If you run Haven in Kubernetes or Docker, read this one. Because hostnames are now resolved and checked, a callback pointing at something like
http://mybot.defaultthat lands on an internal address will be refused where it previously went through. SetHAVEN_ALLOW_PRIVATE_CALLBACKS=trueto keep it working.
Documentation
Point SSL_CERT_PATH at fullchain.pem, not cert.pem. With Let's Encrypt or certbot, cert.pem holds only your own certificate and leaves out the intermediate one above it. Browsers quietly paper over the gap by fetching the missing piece themselves, so the site looks fine in Chrome while curl, link checkers and various mobile and API clients reject it. Haven's own setup script already copies the right file, so this only affects anyone setting the path by hand.
Background images in custom themes. Documented how to set one, which was possible but not written down anywhere.
Also in this release: the download page now expands screenshots on click, and the stale NEW badges are gone.
Full changelog: https://github.com/ancsemi/Haven/blob/main/CHANGELOG.md