1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-06 19:28:08 +01:00
bitwarden-server/src/Core
Matt Gibson 022e404cc5
Attachment blob upload (#1229)
* Add Cipher attachment upload endpoints

* Add validation bool to attachment storage data

This bool is used to determine whether or not to renew upload links

* Add model to request a new attachment to be made for later upload

* Add model to respond with created attachment.

The two cipher properties represent the two different
cipher model types that can be returned. Cipher Response from
personal items and mini response from organizations

* Create Azure SAS-authorized upload links for both one-shot and block uploads

* Add service methods to handle delayed upload and file size validation

* Add emergency access method for downloading attachments direct from Azure

* Add new attachment storage methods to other services

* Update service interfaces

* Log event grid exceptions

* Limit Send and Attachment Size to 500MB

* capitalize Key property

* Add key validation to Azure Event Grid endpoint

* Delete blob for unexpected blob creation events

* Set Event Grid key at API startup

* Change renew attachment upload url request path to match Send

* Shore up attachment cleanup method.

As long as we have the required information, we should always delete
attachments from each the Repository, the cipher in memory, and the
file storage service to ensure they're all synched.
2021-03-30 18:41:14 -05:00
..
Context Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
Enums [Reset Password] Enrollment API, Service, and Model updates (#1245) 2021-03-30 09:48:52 -05:00
Exceptions Changed all C# control flow block statements to include space between keyword and open paren 2020-03-27 14:36:37 -04:00
HostedServices Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
Identity WebAuthn (#903) 2021-03-22 23:21:43 +01:00
IdentityServer WebAuthn (#903) 2021-03-22 23:21:43 +01:00
Jobs Add identifiers to Triggers and Jobs (#1230) 2021-03-22 20:54:12 +01:00
MailTemplates/Handlebars Update EmergencyAccessConfirmed.text.hbs (#1172) 2021-03-01 10:49:13 -05:00
Models Attachment blob upload (#1229) 2021-03-30 18:41:14 -05:00
Properties Added PreValidate endpoint on Account controller (#896) 2020-08-28 12:14:23 -04:00
Repositories Use sas token for attachment downloads (#1153) 2021-02-22 15:35:16 -06:00
Resources Adding logout message when logging out of business portal (#1249) 2021-03-30 16:55:29 -04:00
Services Attachment blob upload (#1229) 2021-03-30 18:41:14 -05:00
Settings Attachment blob upload (#1229) 2021-03-30 18:41:14 -05:00
Sso Move SSO core to Core lib, new resource strings (#911) 2020-09-04 10:42:47 -04:00
Utilities add stackapps.com in global equivalent domains (#1209) 2021-03-30 16:40:08 -04:00
AssemblyInfo.cs Add cipher response to restore (#1072) 2021-01-08 08:52:42 -06:00
Constants.cs Fix safari sso header size (#1065) 2021-01-11 11:03:46 -05:00
Core.csproj WebAuthn (#903) 2021-03-22 23:21:43 +01:00
licensing.cer prod licensing certs 2017-10-03 16:19:20 -04:00