The link to download the attachment is accessible without authorization

(#4832) Feature Open: In progress privacy security self-hosting

Current problem

Everybody can download my file

Proposed change

No one except me and the chat participants can download the file.

Platform

Web, Self-hosting

Additional information

Reproduction steps
  1. Send attachment in private chat (with your friend or something)
  2. Open context menu on file download button
  3. Select "Copy link"
  4. Open another browser/private tab/incognito mode or wget <url>
  5. Browser start download file
Build information Stable Web 2026.1109.42903, Linux (x64), Firefox 159.0, Locale en-US
  1. Hampus changed the status from Needs triage to Under consideration
  2. Hampus changed the status from Under consideration to In progress

2 comments

Sign in with Fluxer to comment and vote.
Comment by Hampus
HampusStaff 1 vote 1 reply
This is not a bug, but working as intended. It is intended that you are able to share attachment links in one place to another, that's a feature. However, this is a feature request for self-hosted instances to be able to configure requiring authorization for file access, if they want things to work more like Slack. This was a feature request I received by email yesterday and will be implemented today. As such, I'm converting this to a feature request and marking it as shipping soon.
Comment by lisenblsh
lisenblsh OP1 vote
Sharing links from a public channel is fine, but I think it’s wrong when the same thing applies to private chats. I’ll wait for updates, then. Thanks in any case.