1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-19 00:21:35 -05:00
Commit Graph

23 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
00853bc250 Import Invite Error (#1121)
* throw error if user is already invited on import

* added back the single InviteUser OrgService method
2021-01-30 17:56:37 -05:00
63fcdc1418 Implemented Custom role and permissions (#1057)
* Implemented Custom role and permissions

* Converted permissions columns to a json blob

* Code review fixes for Permissions

* sql build fix

* Update Permissions.cs

* formatting

* Update IOrganizationService.cs

* reworked a conditional

* built out tests for relevant organization service methods

* removed unused usings

* fixed a broken test and a bad empty string init

* removed 'Attribute' from some attribute instances
2021-01-12 11:02:39 -05:00
7bf559b4b6 Return continuation token (#833) 2020-07-21 20:19:53 -04:00
5c8c915f4e Increase limits set by importer to 2k (#729) 2020-05-13 09:23:59 -04:00
fae4a335dc public API for organization import (#707) 2020-04-23 11:29:19 -04: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
81424a8526 Enforce 2fa policy (#654) 2020-02-19 14:56:16 -05:00
f3f1ac57d2 refactor policy apis 2020-01-20 08:53:15 -05:00
3f9b44f493 public policy apis 2020-01-15 09:19:55 -05:00
72750cf298 org re-invite api 2019-10-07 16:23:38 -04:00
df6d55584f group/member update ids apis 2019-03-13 17:07:48 -04:00
3187afdb0b get group member ids and member group ids apis 2019-03-12 11:35:03 -04:00
14ee85eea2 collection update model 2019-03-07 09:34:20 -05:00
62503068c6 events apis 2019-03-07 09:13:39 -05:00
a6b14131ef public collection apis 2019-03-06 09:15:23 -05:00
de1b00533f org members public api 2019-03-05 23:24:14 -05:00
df09b02ecc return collection associations with group response 2019-03-05 10:55:02 -05:00
3c9c1a2ab7 doc model param 2019-03-04 21:06:41 -05:00
92d686ba36 public apis for groups 2019-03-01 17:38:22 -05:00
6e4df8cb0b test group get api for swagger 2019-02-28 20:51:47 -05:00
176078f04b Stub out public api for org groups 2019-02-26 22:06:39 -05:00