1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-25 06:42:22 -05:00

15 Commits

Author SHA1 Message Date
Matt Gibson
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
Chad Scharf
9800b752c0 Changed all C# control flow block statements to include space between keyword and open paren 2020-03-27 14:36:37 -04:00
Kyle Spearrin
01a293cf76 record installation devices 2019-03-19 00:39:03 -04:00
Kyle Spearrin
35e986a077 update libs and remove old code/workarounds 2019-02-26 08:15:56 -05:00
Kyle Spearrin
b2715503c3 update to new 2.0.0 preview for notification hub 2018-08-06 09:04:31 -04:00
Kyle Spearrin
46c36dc885 net471 directive fixes 2017-12-29 11:57:52 -05:00
Kyle Spearrin
f2e2db52a1 update projects to net47 2017-11-16 11:01:49 -05:00
Kyle Spearrin
41ca2a64a9 fix tag removal 2017-11-14 09:35:48 -05:00
Kyle Spearrin
49f4a773dc catch bad request exceptions to notification hub 2017-11-14 08:51:24 -05:00
Kyle Spearrin
0f37920de2 push registration through relay apis 2017-08-11 08:57:31 -04:00
Kyle Spearrin
e538817eb6 added installations, push scoped tokens, push api 2017-08-10 14:39:11 -04:00
Kyle Spearrin
3880edfb79 add x-platform support with netcore 2.0 2017-07-31 16:58:27 -04:00
Kyle Spearrin
7b1c0d6df1 clear token by id 2017-06-02 16:52:54 -04:00
Kyle Spearrin
5af974d541 notification hub services 2017-05-26 22:52:50 -04:00
Kyle Spearrin
c95d39f563 notification hub push registration service 2017-05-26 00:50:27 -04:00