Email notification to the Send owner when a Send gets downloaded #7408
KosukeFukumori
started this conversation in
Ideas
Replies: 1 comment
|
This sounds like a good feature, but this project usually tries to not go ahead of the Bitwarden features, as it's already behind. Plus, this would be a better feature if it was configurable by the end user, which is out of scope for this repo. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
When sharing a file or text via Send, the owner currently has no way of knowing whether the recipient has actually retrieved it. The
accessCountfield exists, but you have to open the vault and check it manually. Especially for Sends with a short deletion date, it would be useful to know "the recipient got it, I can stop worrying" — similar to the download notifications offered by common file transfer services.Proposal
A new Vaultwarden-specific global setting
SEND_DOWNLOAD_NOTIFY(default:off) which, when enabled, notifies the owner of a Send via email when a recipient downloads it (file Sends, triggered when the download URL gets requested) or views it (text Sends):off: no notification (default, current behavior)always: notify on every download/view, including the current access countfirst: only notify on the first download/view of each SendThe notification only contains metadata the server already knows (date, IP address, send type, send id, creation date, access count). Since the Send name and contents are encrypted client-side and the server cannot decrypt them, the zero-knowledge design is not affected.
Implementation notes
I have a working implementation ready to submit as a PR:
access_countfor the "first" detectionSMTP_SECURITYtokio::spawn), so recipients are never blocked or informed about the notificationaccess_countincrements when the access token gets issued, so infirstmode a file Send whose page was opened repeatedly without downloading won't trigger a notification on the eventual first downloadWould this feature be acceptable for upstream? Happy to open the PR and adjust the design based on feedback.
All reactions