1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00
Commit Graph

5803 Commits

Author SHA1 Message Date
ab0cab2072 Fix Events Startup (#5352) 2025-01-30 13:59:58 -05:00
5efd68cf51 [PM-17562] Initial POC of Distributed Events (#5323)
* Initial POC of Distributed Events

* Apply suggestions from code review

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* Clean up files to support accepted changes. Address PR Feedback

* Removed unneeded using to fix lint warning

* Moved config into a common EventLogging top-level item. Fixed issues from PR review

* Optimized per suggestion from justinbaur

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* Updated to add IAsyncDisposable as suggested in PR review

* Updated with suggestion to use KeyedSingleton for the IEventWriteService

* Changed key case to lowercase

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2025-01-30 12:07:02 -05:00
443a147433 Replace StripePaymentService with PremiumUserBillingService in ReplacePaymentMethodAsync call (#5350) 2025-01-30 11:55:05 -05:00
23dce58103 [deps] Billing: Update xunit to 2.9.3 (#5289)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 10:58:14 -05:00
ad2ea4ca21 Don't enable tax for customer without tax info (#5347) 2025-01-30 10:26:34 -05:00
2f2ef20c74 Add missing IGetTasksForOrganizationQuery query registration (#5343) 2025-01-29 12:07:03 -08:00
a5b3f80d71 [PM-16053] Add DeviceType enum to AuthRequest response model (#5341) 2025-01-29 12:08:29 -05:00
62afa0b30a [PM-17691] Change permission requirement for organization deletion initiation (#5339) 2025-01-29 16:13:36 +00:00
Tom
f1c94a1400 Risk insights feature flag for server (#5328) 2025-01-28 18:52:11 +00:00
3d273bf494 [PM-15906] Add feature flags for Android single tap passkey flows (#5334)
Add feature flags to control single tap passkey creation and authentication in the Android client.
2025-01-28 13:39:19 -05:00
93f5b34223 Add limit item deletion server code (#5308) 2025-01-28 12:58:04 -05:00
6d7bdb6ec0 Ac/pm 17217/add use policy check for accept endpoint(#5324) 2025-01-28 12:23:15 -05:00
4e1e514e83 [PM-11249] Update cipher revision date when an attachment is added or deleted (#4873)
* update the cipher revision date when an attachment is added or deleted

* store the updated cipher in the DB when an attachment is altered

* return cipher from delete attachment endpoint
2025-01-28 09:49:51 -06:00
a9a12301af [PM-17120] add feature flag (#5329)
* add feature flag

* cleanup

* cleanup
2025-01-27 17:01:28 -05:00
a51c7a1a8b [BEEEP] Remove unused code (#5320) 2025-01-27 19:22:55 +01:00
ec1cf31d91 [PM-17425] Cannot open Stripe links for individual premium accounts (#5314) 2025-01-27 17:20:40 +01:00
411291b782 Bumped version to 2025.1.5 2025-01-27 15:48:47 +00:00
5562ca9d5e WIP (#5210) 2025-01-27 15:28:47 +01:00
5310f63514 [deps] Billing: Update coverlet.collector to 6.0.4 (#5219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com>
2025-01-27 09:17:18 -05:00
c03abafa71 [deps] Billing: Update CsvHelper to v33 (#5181)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 09:08:15 -05:00
9e718d7336 [PM-15637] Add Email Notification Templates and Logic for Device Approval Requests (#5270)
* Add device approval notification email templates

* Add DeviceApprovalRequestedViewModel for device approval notifications

* Add method to send device approval requested notification email

* Send email notification to Organization Admins when adding a new admin approval auth request

* Add tests for device approval notification email sending in AuthRequestServiceTests

* fix(email-templates): Remove unnecessary triple braces from user name variable in device approval notification emails

* Add feature flag for admin notifications on device approval requests

* Add logging for skipped admin notifications on device approval requests
2025-01-27 10:59:46 +00:00
3908edd08f [PM-12489] Extract OrganizationService.DeleteAsync and OrganizationService.InitiateDeleteAsync into commands (#5279)
* Create organization deletion command with logic extracted from OrganizationService

* Add unit tests for OrganizationDeleteCommand

* Register OrganizationDeleteCommand for dependency injection

* Refactor organization deletion logic to use IOrganizationDeleteCommand and remove legacy IOrganizationService.DeleteAsync method

* Add organization deletion initiation command and refactor service usage

* Enhance organization deletion commands with detailed XML documentation

* Refactor organization command registration to include sign-up and deletion methods
2025-01-27 10:58:08 +00:00
f2182c2aae PM-16261 fixing linter issue (#5322) 2025-01-24 13:43:41 -06:00
f140c7f6c1 [PM-11730] Remove feature flag: AC-2476-deprecate-stripe-sources-api (#5201)
* Removed feature flag

* Run dotnet format

* Fix integration tests
2025-01-24 13:38:35 -05:00
99a1dbbe02 PM-16261 move ImportCiphersAsync to the tools team (#5245)
* PM-16261 move ImportCiphersAsync to the tools team and create services using CQRS design pattern

* PM-16261 fix renaming methods and add unit tests for succes and bad request exception

* PM-16261 clean up old code from test
2025-01-24 10:57:44 -06:00
36c8a97d56 Bumped version to 2025.1.4 2025-01-24 15:20:02 +00:00
ef32e80725 [PM-15807]Move subscription to 'canceled' 7 days after unpaid (#5221)
* Changes to implement the cancel job

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Resolve the Dependency issues

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* changes when open invoices is more than 10

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Move the package reference to ore

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-01-24 12:02:13 +01:00
Ike
ca21758492 feat (newDeviceVerification)
Added conditional for selfhosted to manage access to feature
2025-01-23 09:23:45 -07:00
275f7ceb27 Auth/pm 17233/tests for multiple users on single device for web approvals (#5316)
* test(test-device-repository): [PM-17233] Add Test Case for Critical Bug Found in Device Repository - Added new test case for previously found bug.
2025-01-23 11:21:28 -05:00
20fb45b05c Round PayPal transaction amount to two decimal points (#5318) 2025-01-23 11:19:46 -05:00
31e95d529f Added some defensive logging around making braintree payments (#5317) 2025-01-23 10:00:51 -05:00
e8cd86e5f6 [deps] Billing: Update xunit.runner.visualstudio to v3 (#5183)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
2025-01-23 12:51:57 +01:00
9e7d1abdf1 changes for update to current plan (#5312) 2025-01-22 19:27:11 +01:00
8f8a599c07 Use .db extension for SQLite configuration example (#5313) 2025-01-22 13:09:46 -05:00
28a592103d Updated invoice history to filter on customerId only (#5175) 2025-01-22 12:26:21 -05:00
0e0dd8203a [PM-14818] Update migrate.ps1 to support test database used by integration tests (#4912)
* Check for correct database in an old MySql migration

* Update `migrate.ps1` to support integration test databases
2025-01-22 11:41:18 -05:00
cb76cdb5d3 Group AC Team feature flags (#5309) 2025-01-22 14:04:08 +00:00
c671818304 Add argon2-default flag (#5253) 2025-01-22 14:14:59 +01:00
163a74000d Add Authenticator sync flags (#5307) 2025-01-21 16:32:30 -05:00
4069ac3a4b Add limit item deletion organization setting migration (#5283) 2025-01-21 15:51:34 -05:00
7462352e18 [deps] DbOps: Update Microsoft.Azure.Cosmos to 3.46.1 (#5290)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 14:49:20 -05:00
a9ef475046 [deps]: Update github-action minor (#5296)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 10:56:17 -08:00
f1893c256c remove feature flag (#5284)
Clients PR was merged, now merging server PR.
2025-01-21 09:53:12 -05:00
edb74add50 [PM-14243] Free organization limit is not enforced when editing user (#5155)
* Enforce free organization limit when updating user

* Add test for throwing error on accepting admin user joining multiple free organizations

* Add test for throwing BadRequest when free organization admin attempts to sign up for another free organization

* Fix user ID handling in UpdateOrganizationUserCommand for free organizations

* Rename parameter 'user' to 'organizationUser' in UpdateUserAsync method for clarity
2025-01-21 10:15:02 +00:00
Ike
9efcbec041 [PM-15605] Return VerifyDevices in Profile sync response (#5264)
* feat (NewDeviceVerification) : 
- Database migration scripts for VerifyDevices column in [dbo].[User].
- Updated DeviceValidator to check if user has opted out of device verification.
- Added endpoint to AccountsController.cs to allow editing of new User.VerifyDevices property.
- Added tests for new methods and endpoint. 
- Removed Anon attribute from the POST account/verify-devices endpoint.
- Updating queries to track dbo.User.VerifyDevices.
- Added update to verify email to the new device verification flow.
- Updating some tests for CloudOrganizationSignUpCommand that were failing.
- Updating ProfileResponseModel to include the new VerifyDevices data to hydrate the state in the web client.
2025-01-20 16:35:43 -08:00
0de108e051 [PM-16682] Fix tax id not being saved for providers (#5257) 2025-01-20 16:50:11 +01:00
ee2d7df061 [pm-16949] Include revoked users in applicable policies (#5261) 2025-01-20 10:49:33 -05:00
04e5626c57 [PM-16777] Fix exception when bulk restoring revoked users who never accepted invitations (#5224)
* Fix null handling for UserId in Two Factor Authentication checks

* Add tests for restoring users with and without 2FA policies
2025-01-20 14:59:10 +00:00
5423e5d52f Remove feature flag "browser-fileless-import" (#5282)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-01-17 15:58:04 +01:00
0c29e9227c Remove provider-export-permission feature flag (#5263)
* also remove old CipherService and CollectionService methods
  only used by old export code
2025-01-17 08:28:23 +10:00