1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-02 13:53:23 +01:00
Commit Graph

30 Commits

Author SHA1 Message Date
Oscar Hinton
cae204cb7c
Refactor WebAuthn IoC container (#1302)
* Refactor WebAuthn IoC container

* Move to AddDefaultServices
2021-05-06 10:17:12 +02:00
Oscar Hinton
07f37d1f74
WebAuthn (#903) 2021-03-22 23:21:43 +01:00
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
Matt Gibson
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
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
29580684a3 upgrade to aspnet core 3.1 2020-01-10 08:33:13 -05:00
Kyle Spearrin
9da83cbdc3 remove alive job 2019-11-04 07:43:15 -05:00
Kyle Spearrin
48ec345702 update stripe SDK 2019-08-08 17:36:41 -04:00
Kyle Spearrin
94188fa0b5 update to net core 2.2 2019-07-23 16:38:49 -04:00
Kyle Spearrin
242e509b9d set en-US as default current culture 2019-07-11 15:03:17 -04:00
Kyle Spearrin
e6baa1490c UseForwardedHeaders with known proxies 2019-04-26 09:52:54 -04:00
Kyle Spearrin
28884c3330 move migrations to migrator project 2019-03-25 13:21:05 -04:00
Kyle Spearrin
8427c23b5e amazon sqs block ip queuing 2019-03-18 16:23:37 -04:00
Kyle Spearrin
2a49824ab7 BlockIpHostedService to replace func 2019-03-04 23:41:46 -05:00
Kyle Spearrin
e7e0d17ac6 security stamp validation for passwordless login 2019-01-17 16:07:24 -05:00
Kyle Spearrin
5812915677 database maintenance jobs setup in admin 2018-10-09 10:12:27 -04:00
Kyle Spearrin
88384836b5 get rid of AddBasicCustomIdentityServices 2018-09-12 00:15:59 -04:00
Kyle Spearrin
cf73b168ee More CanAccessPremium checks 2018-08-28 17:40:08 -04:00
Kyle Spearrin
9cf036227e UseForwardedHeaders on admin 2018-06-09 23:57:26 -04:00
Kyle Spearrin
6390a15835 Revert "explicitly disable app insights telemetry"
This reverts commit 819a4e031d.
2018-05-21 13:31:47 -04:00
Kyle Spearrin
819a4e031d explicitly disable app insights telemetry 2018-05-21 12:49:57 -04:00
Kyle Spearrin
40dff2cd6e success/error messages for admin 2018-03-28 10:38:01 -04:00
Kyle Spearrin
d6e84a1212 chown nginx logs and data protect admin 2018-03-27 21:37:35 -04:00
Kyle Spearrin
c4bd015e89 proxypass to /admin 2018-03-24 08:39:55 -04:00
Kyle Spearrin
af1aaba7ed UsePathBase 2018-03-23 23:43:34 -04:00
Kyle Spearrin
997839a2c7 set base admin path for self host 2018-03-23 23:27:33 -04:00
Kyle Spearrin
13db0285c9 cleanup logs 2018-03-23 13:39:34 -04:00
Kyle Spearrin
0d12cf9217 persist login. allow log out 2018-03-23 10:12:09 -04:00
Kyle Spearrin
d35d8185ed passwordless sign in for admin 2018-03-21 14:26:49 -04:00
Kyle Spearrin
6a4ab83625 setup new admin portal project 2018-03-21 12:57:43 -04:00