1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00
Commit Graph

11 Commits

Author SHA1 Message Date
5537470703 Use sas token for attachment downloads (#1153)
* Get limited life attachment download URL

This change limits url download to a 1min lifetime.
This requires moving to a new container to allow for non-public blob
access.

Clients will have to call GetAttachmentData api function to receive the download
URL. For backwards compatibility, attachment URLs are still present, but will not
work for attachments stored in non-public access blobs.

* Make GlobalSettings interface for testing

* Test LocalAttachmentStorageService equivalence

* Remove comment

* Add missing globalSettings using

* Simplify default attachment container

* Default to attachments containe for existing methods

A new upload method will be made for uploading to attachments-v2.
For compatibility for clients which don't use these new methods, we need
to still use the old container. The new container will be used only for
new uploads

* Remove Default MetaData fixture.

* Keep attachments container blob-level security for all instances

* Close unclosed FileStream

* Favor default value for noop services
2021-02-22 15:35:16 -06:00
edd4bc2623 Add disable send policy (#1130)
* Add Disable Send policy

* Test DisableSend policy

* PR Review

* Update tests for using CurrentContext

This required making an interface for CurrentContext and mocking out
the members used. The interface can be expanded as needed for tests.

I moved CurrentContext to a folder, which changes the namespace
and causes a lot of file touches, but most are just adding a reference

* Fix failing test

* Update exemption to include all exempt users

* Move all CurrentContext usages to ICurrentContext

* PR review. Match messaging with Web
2021-02-04 12:54:21 -06:00
b8a2158626 enabled send and added send sync notifications (#1106) 2021-01-22 16:16:40 -05:00
9800b752c0 Changed all C# control flow block statements to include space between keyword and open paren 2020-03-27 14:36:37 -04:00
29580684a3 upgrade to aspnet core 3.1 2020-01-10 08:33:13 -05:00
01a293cf76 record installation devices 2019-03-19 00:39:03 -04:00
18713054f6 add logout notification 2018-08-28 08:22:49 -04:00
1b489daca1 send collection ids with cipher notification 2018-08-21 09:29:38 -04:00
42d3a2d8e3 hub configurations 2018-08-16 13:35:16 -04:00
a4e91aa570 no azure queue service for now 2018-08-02 21:03:04 -04:00
0cde13e0c6 azure queue notification service 2018-08-02 17:23:37 -04:00