1
0
mirror of https://github.com/bitwarden/server synced 2025-12-21 02:33:30 +00:00
Commit Graph

27 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
e869b4df63 Add external amr to auth method claims accepted (#1112) 2021-01-27 10:53:27 -05:00
Kyle Spearrin
6bc7a3cdc0 adjust cors origin checks (#800)
* allow cors from bitwarden.com on cloud

* allow file:// cors for safari extension

* fix missing paren
2020-06-27 15:08:50 -04:00
Kyle Spearrin
cf70a5e480 set cors policies to only allow web vault origin (#787)
* set cors policy to only allow web vault

* vault cors policy service
2020-06-23 18:47:53 -04:00
Kyle Spearrin
b106fd22fb Only set channel prefix. Use machine name on counter (#687) 2020-04-03 08:39:59 -04: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
132016bca4 ChannelPrefix 2020-03-21 00:22:14 -04:00
Kyle Spearrin
c8e249b05e client name 2020-03-20 23:05:08 -04:00
Kyle Spearrin
fccbeddac8 check for SettingHasValue 2020-03-20 20:19:46 -04:00
Kyle Spearrin
c8d7f04826 signalr redis support. remove old azure signalr refs 2020-03-04 21:57:42 -05:00
Kyle Spearrin
29580684a3 upgrade to aspnet core 3.1 2020-01-10 08:33:13 -05:00
Kyle Spearrin
53ba5fe324 all host origins allowed 2019-08-22 15:05:00 -04:00
Kyle Spearrin
19850631f6 allow cors origin wildcard 2019-08-22 12:00:10 -04:00
Kyle Spearrin
f6da38f931 allow web vault origin for cors requests 2019-07-25 15:05:03 -04:00
Kyle Spearrin
94188fa0b5 update to net core 2.2 2019-07-23 16:38:49 -04:00
Kyle Spearrin
7c41da494f signalr heartbeat 2019-07-11 23:06:30 -04:00
Kyle Spearrin
51e4c5e1b7 filter out heartbeat warning log 2019-07-11 21:55:57 -04:00
Kyle Spearrin
a6bd55e7a5 more logging 2019-07-11 16:19:38 -04:00
Kyle Spearrin
242e509b9d set en-US as default current culture 2019-07-11 15:03:17 -04:00
Kyle Spearrin
a2f5f7730f add azure to signalRServerBuilder 2018-08-27 11:20:09 -04:00
Kyle Spearrin
6fa49ff65b increase buffers 2018-08-24 22:12:51 -04:00
Kyle Spearrin
68c349f72f support message pack protocol for signalr 2018-08-23 21:56:48 -04:00
Kyle Spearrin
d458d77511 connection counter 2018-08-23 15:48:40 -04:00
Kyle Spearrin
43e5f300a7 tweak buffer sizes and filter error logs 2018-08-23 15:13:28 -04:00
Kyle Spearrin
d992125b5f add support for azuresignalr services 2018-08-22 16:04:27 -04:00
Kyle Spearrin
5766c1f6f3 enable notifications services 2018-08-17 18:04:11 -04:00
Kyle Spearrin
80a49e53ac rename hub to notifications 2018-08-16 13:45:31 -04:00