1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-16 01:51:21 +01:00
Commit Graph

5490 Commits

Author SHA1 Message Date
renovate[bot]
f1a7770a27
[deps]: Update Divergic.Logging.Xunit to 4.3.1 2025-02-06 21:47:57 +00:00
Conner Turnbull
f8b65e0477
Removed all usages of FluentAssertions (#5378) 2025-02-06 16:46:23 -05:00
Bernd Schoolmann
58d2a7ddaa
[PM-17210] Prevent unintentionally corrupting private keys (#5285)
* Prevent unintentionally corrupting private keys

* Deny key update only when replacing existing keys

* Fix incorrect use of existing user public/encrypted private key

* Fix test

* Fix tests

* Re-add test

* Pass through error for set-password

* Fix test

* Increase test coverage and simplify checks
2025-02-06 20:38:50 +00:00
Todd Martin
f7d882d760
Remove feature flag from endpoint (#5342) 2025-02-06 14:37:15 -05:00
Jonas Hendrickx
a1ef07ea69
Revert "[PM-18028] Attempting to enable automatic tax on customer with invali…" (#5375)
This reverts commit 678d5d5d63.
2025-02-06 17:11:20 +01:00
Jonas Hendrickx
678d5d5d63
[PM-18028] Attempting to enable automatic tax on customer with invalid location (#5374) 2025-02-06 16:34:22 +01:00
Jonas Hendrickx
bc27ec2b9b
[PM-12765] Change error message when subscription canceled and attemp… (#5346) 2025-02-06 15:15:36 +01:00
Vijay Oommen
17f5c97891
PM-6939 - Onyx Integration into freshdesk controller (#5365) 2025-02-06 08:13:17 -06:00
Rui Tomé
a12b61cc9e
[PM-17168] Sync organization user revoked/restored status immediately via push notification (#5330)
* [PM-17168] Add push notification for revoked and restored organization users

* Add feature flag for push notification on user revoke/restore actions

* Add tests for user revocation and restoration with push sync feature flag enabled
2025-02-06 10:28:12 +00:00
cyprain-okeke
1c3ea1151c
[PM-16482]NullReferenceException in CustomerUpdatedHandler due to uninitialized dependency (#5349)
* Changes to throw exact errors

* Add some logging to each error state

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

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-02-06 09:22:16 +01:00
Graham Walker
daf2696a81
PM-16085 - Increase import limitations (#5275)
* 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

* make import limits configurable via appsettings

* PM-16085 fix issue with appSettings converting to globalSettings for new cipher import limits
2025-02-05 16:36:18 -06:00
SmithThe4th
46004b9c68
[PM-14381] Add POST /tasks/bulk-create endpoint (#5188)
* [PM-14378] Introduce GetCipherPermissionsForOrganization query for Dapper CipherRepository

* [PM-14378] Introduce GetCipherPermissionsForOrganization method for Entity Framework

* [PM-14378] Add integration tests for new repository method

* [PM-14378] Introduce IGetCipherPermissionsForUserQuery CQRS query

* [PM-14378] Introduce SecurityTaskOperationRequirement

* [PM-14378] Introduce SecurityTaskAuthorizationHandler.cs

* [PM-14378] Introduce SecurityTaskOrganizationAuthorizationHandler.cs

* [PM-14378] Register new authorization handlers

* [PM-14378] Formatting

* [PM-14378] Add unit tests for GetCipherPermissionsForUserQuery

* [PM-15378] Cleanup SecurityTaskAuthorizationHandler and add tests

* [PM-14378] Add tests for SecurityTaskOrganizationAuthorizationHandler

* [PM-14378] Formatting

* [PM-14378] Update date in migration file

* [PM-14378] Add missing awaits

* Added bulk create request model

* Created sproc to create bulk security tasks

* Renamed tasks to SecurityTasksInput

* Added create many implementation for sqlserver and ef core

* removed trailing comma

* created ef implementatin for create many and added integration test

* Refactored request model

* Refactored request model

* created create many tasks command interface and class

* added security authorization handler work temp

* Added the implementation for the create manys tasks command

* Added comment

* Changed return to return list of created security tasks

* Registered command

* Completed bulk create action

* Added unit tests for the command

* removed hard coded table name

* Fixed lint issue

* Added JsonConverter attribute to allow enum value to be passed as string

* Removed makshift security task operations

* Fixed references

* Removed old migration

* Rebased

* [PM-14378] Introduce GetCipherPermissionsForOrganization query for Dapper CipherRepository

* [PM-14378] Introduce GetCipherPermissionsForOrganization method for Entity Framework

* [PM-14378] Add unit tests for GetCipherPermissionsForUserQuery

* Completed bulk create action

* bumped migration version

* Fixed lint issue

* Removed complex sql data type in favour of json string

* Register IGetTasksForOrganizationQuery

* Fixed lint issue

* Removed tasks grouping

* Fixed linting

* Removed unused code

* Removed unused code

* Aligned with client change

* Fixed linting

---------

Co-authored-by: Shane Melton <smelton@bitwarden.com>
2025-02-05 16:56:01 -05:00
Justin Baur
a971a18719
[PM-17957] Pin Transitive Deps (#5371)
* Remove duplicate quartz reference

* Pin Core packages

* Pin Notifications packages
2025-02-05 15:32:27 -05:00
Patrick Honkonen
77364549fa
[PM-16157] Add feature flag for mTLS support in Android client (#5335)
Add a feature flag to control support for selecting a mutual TLS client certificate within the Android client.
2025-02-05 15:03:13 +00:00
Rui Tomé
03c390de74
[PM-15637] Notify Custom Users with “Manage Account Recovery” permission for Device Approval Requests (#5359)
* Add stored procedure to read organization user details by role

* Add OrganizationUserRepository method to retrieve OrganizationUser details by role

* Enhance AuthRequestService to send notifications to custom users with ManageResetPassword permission

* Enhance AuthRequestServiceTests to include custom user permissions and validate notification email recipients
2025-02-05 14:47:06 +00:00
Tom
617bb5015f
Removing the member access feature flag from the server (#5368) 2025-02-05 10:57:19 +01:00
cyprain-okeke
a8a08a0c8f
Remove the feature flag (#5331) 2025-02-05 09:18:23 +01:00
Jason Ng
412c6f9849
[PM-11162] Assign to Collection Permission Update (#4844)
Only users with Manage/Edit permissions will be allowed to Assign To Collections. If the user has Can Edit Except Password the collections dropdown will be disabled.

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
Co-authored-by: kejaeger <138028972+kejaeger@users.noreply.github.com>
2025-02-04 15:45:24 -05:00
Todd Martin
90680f482a
Revert version from 2025.1.5 to 2025.1.4 (#5369) 2025-02-04 15:40:17 -05:00
Alex Morask
72b78ed655
Update feature flag name (#5364) 2025-02-04 14:58:54 -05:00
Matt Andreko
d2fb3760d3
Reworked PR workflow logic to prevent missing parameter (#5367) 2025-02-04 13:53:16 -05:00
Daniel James Smith
bdbed7adc8
Group tools owned feature flags (#5362)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2025-02-04 13:31:15 -05:00
Matt Andreko
b5cfb4b9c7
Enabled SonarQube scanning for PRs (#5363)
* Added scan workflow parameter for PR number to enable branch scanning

* Added missing backslash
2025-02-04 12:14:55 -05:00
cyprain-okeke
0337300eac
[PM-15625]Disable trial/send-verification-email endpoint for self-host (#5265)
* endpoint is shut off for self-hosted env

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

* Fix the reference issues

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

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-02-04 15:27:58 +01:00
Alex Morask
37b5cef085
[PM-16040] Update Organization_UnassignedToProviderSearch.sql SPROC to allow Reseller plan types (#5332)
* Update Organization_UnassignedToProviderSearch.sql SPROC

* Robert's feedback
2025-02-04 09:06:04 -05:00
Brant DeBow
3f3da558b6
[PM-17562] Refactor existing RabbitMq implementation (#5357)
* [PM-17562] Refactor existing RabbitMq implementation

* Fixed issues noted in PR review
2025-02-04 09:02:43 -05:00
Alex Morask
f1b9bd9a09
[PM-15179] Implement endpoints to add existing organization to CB provider (#5310)
* Implement endpoints to add existing organization to provider

* Run dotnet format

* Support MOE

* Run dotnet format

* Move ProviderClientsController under AC ownership

* Move ProviderClientsControllerTests under AC ownership

* Jared's feedback
2025-02-04 09:02:18 -05:00
renovate[bot]
90f308db34
[deps] Tools: Update aws-sdk-net monorepo (#5278)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 11:09:09 +01:00
Jimmy Vo
060e9e60bf
[pm-337] Remove the continuation token from the ListResponseModel. (#5192) 2025-02-03 14:55:57 -05:00
Jimmy Vo
fe983aff7f
[pm-17911] Refresh OrganizationView (#5360) 2025-02-03 12:35:46 -05:00
Robyn MacCallum
1adc5358a8
Create a single feature flag for the Authenticator sync (#5353)
* Create a single feature flag for the Authenticator sync

* Update feature flag key
2025-02-03 09:35:38 -05:00
Vincent Salucci
669c253bc6
chore: add limit item deletion feature flag constant, refs PM-17214 (#5356) 2025-01-31 12:18:10 -06:00
Justin Baur
408ddd9388
Scaffold Events Integration Tests (#5355)
* Scaffold Events Integration Tests

* Format
2025-01-31 11:08:07 -05:00
Jimmy Vo
bd394eabe9
[pm-16528] Fix entity framework query (#5333) 2025-01-31 09:50:14 -06:00
Todd Martin
e43a8011f1
[PM-17709] Send New Device Login email for all new devices (#5340)
* Send New Device Login email regardless of New Device Verification

* Adjusted tests

* Linting

* Clarified test names.
2025-01-31 10:46:09 -05:00
Rui Tomé
d239170c1c
[PM-17697] Save Organization Name changes in Bitwarden Portal (#5337)
* Add Org_Name_Edit permission to the Permissions enum

* Add Org_Name_Edit permission to RolePermissionMapping

* Implement Org_Name_Edit permission check in UpdateOrganization method

* Add Org_Name_Edit permission check to Organization form input
2025-01-31 15:01:26 +00:00
renovate[bot]
148a631178
[deps]: Update github/codeql-action action to v3.28.8 (#5292)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-31 15:59:39 +01:00
Justin Baur
ab0cab2072
Fix Events Startup (#5352) 2025-01-30 13:59:58 -05:00
Brant DeBow
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
Alex Morask
443a147433
Replace StripePaymentService with PremiumUserBillingService in ReplacePaymentMethodAsync call (#5350) 2025-01-30 11:55:05 -05:00
renovate[bot]
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
Alex Morask
ad2ea4ca21
Don't enable tax for customer without tax info (#5347) 2025-01-30 10:26:34 -05:00
Shane Melton
2f2ef20c74
Add missing IGetTasksForOrganizationQuery query registration (#5343) 2025-01-29 12:07:03 -08:00
Todd Martin
a5b3f80d71
[PM-16053] Add DeviceType enum to AuthRequest response model (#5341) 2025-01-29 12:08:29 -05:00
Rui Tomé
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
Patrick Honkonen
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
Jimmy Vo
93f5b34223
Add limit item deletion server code (#5308) 2025-01-28 12:58:04 -05:00
Jimmy Vo
6d7bdb6ec0
Ac/pm 17217/add use policy check for accept endpoint(#5324) 2025-01-28 12:23:15 -05:00
Nick Krantz
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