Daniel García
2cd17fe7af
Add token with short expiration time to send url
4 years ago
Jeremy Lin
c2ef331df9
Rework file ID generation
4 years ago
Jeremy Lin
29ed82a359
Add support for v2 attachment upload APIs
Upstream PR: https://github.com/bitwarden/server/pull/1229
4 years ago
Jeremy Lin
029008bad5
Add support for the `Send Options` policy
Upstream refs:
* https://github.com/bitwarden/server/pull/1234
* https://bitwarden.com/help/article/policies/#send-options
4 years ago
Jeremy Lin
d3449bfa00
Add support for hiding the sender's email address in Bitwarden Sends
Note: The original Vaultwarden implementation of Bitwarden Send would always
hide the email address, while the upstream implementation would always show it.
Upstream PR: https://github.com/bitwarden/server/pull/1234
4 years ago
Jeremy Lin
3ff8014add
Add `sends_allowed` config setting
This provides global control over whether users can create Bitwarden Sends.
4 years ago
Jake Howard
3ab90259f2
Modify rustfmt file
4 years ago
Jeremy Lin
73ff8d79f7
Add a generic job scheduler
Also rewrite deletion of old sends using the job scheduler.
4 years ago
Miro Prasil
aa5cc642e1
Use constant for the "inaccessible" error message
4 years ago
Miro Prasil
4b6a574ee0
Return generic message when Send not available
This should help avoid leaking information about (non)existence of Send
and be more in line with what official server returns.
4 years ago
Daniel García
1fc6c30652
Send deletion thread and updated users revision
4 years ago
Daniel García
551810c486
Fix updating file send
4 years ago
Daniel García
84810f2bb2
Remove unnecessary fields from send access
4 years ago
Jeremy Lin
424d666a50
Add support for the Disable Send policy
Upstream refs:
* https://github.com/bitwarden/server/pull/1130
* https://bitwarden.com/help/article/policies/#disable-send
4 years ago
Daniel García
95e24ffc51
rename send key -> akey
4 years ago
Jeremy Lin
00d56d7295
Send access check fixes
Adjust checks for max access count, expiration date, and deletion date.
The date checks aren't that important, but the access count check
currently allows one more access than it should.
4 years ago
Daniel García
8da5b99482
Send API
4 years ago