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

5952 Commits

Author SHA1 Message Date
c55e8bccb5 fix: syntax error in sql 2025-06-27 15:03:38 -04:00
f54b1913a1 feat: create new view for pending AuthRequest in sql project 2025-06-27 14:50:04 -04:00
144787ec23 feat: change stored procedure to create a view that stores the previous query so it can be accessed through a more simple parameterized stored procedure. 2025-06-27 14:43:03 -04:00
52df8f6583 fix: sync ef query with view by joining also on UserId and making the expiration time check inclusive. 2025-06-26 18:01:28 -04:00
eeeaefe220 docs: fixing spelling and docs for GetManyPendingAuthRequest 2025-06-26 18:00:30 -04:00
093157324e Merge branch 'auth/pm-20348/extension-auth-approvals-add-auth-request-endpoint' of https://github.com/bitwarden/server into auth/pm-20348/extension-auth-approvals-add-auth-request-endpoint 2025-06-25 17:18:46 -04:00
853551d9bd fix: update stored procedure 2025-06-25 17:18:31 -04:00
Ike
0587d558a4 Update AuthRequest_ReadPendingByUserId.sql 2025-06-23 22:07:46 -04:00
943b0024bb fix: rename parameter to be clearer and changed order of parameters in constructor. 2025-06-23 21:57:17 -04:00
Ike
be3ccc3ff0 Merge branch 'main' into auth/pm-20348/extension-auth-approvals-add-auth-request-endpoint 2025-06-23 11:01:48 -04:00
cdfe51f9d6 [PM-22783] Add windows-desktop-autotype feature flag (#5990) 2025-06-20 14:02:48 -04:00
b13c950328 [BRE-848] Adding Workflow Permissions (#5985) 2025-06-20 12:15:38 -04:00
91b4ef756b build(ci): remove the need to cherry pick version bumps to rc (#5977) 2025-06-18 16:47:30 +02:00
05d74754d2 add PM22134SdkCipherListView feature flag (#5980) 2025-06-18 09:29:48 -05:00
502ab4b645 [PM-17562] Fix flickering unit test - WebhookIntegrationHandlerTests (#5973)
* [PM-17562] Fix flickering unit test - WebhookIntegrationHandlerTests

* Adjust to using TimeProvider and exact time matches

* Refactored RabittMqIntegrationListenerService and Tests to align on TimeProvider. Cleaned up tests that do not need to use DateTime.UtcNow
2025-06-18 10:09:47 -04:00
6800bc57f3 [PM-18555] Main part of notifications refactor (#5757)
* More tests

* More  tests

* Add non-guid tests

* Introduce slimmer services

* Implement IPushEngine on services

* Implement IPushEngine

* Fix tests

* Format

* Switch to `Guid` on `PushSendRequestModel`

* Remove TODOs
2025-06-17 13:30:56 -04:00
6dc26f4be6 chore: remove external id feature flag, refs PM-18634 (#5974) 2025-06-17 10:55:42 -05:00
a3c5741164 [PM-22610] validate file within max length; log deletion of invalid uploads (#5960) 2025-06-17 15:07:26 +00:00
0a5dc04d9e [PM-22458] Add user managed privileged apps FF for Android (#5935) 2025-06-17 14:48:11 +00:00
17507446a4 Added SendGridApiHost to Globals (#5961)
* Added SendGridApiHost to Globals

* Added SendGridApiHost for test coverage
2025-06-17 21:35:38 +08:00
a529492d1d [PM-17562] Update documentation for event integrations (#5924)
* [PM-17562] Update documentation for event integrations

* Fix SonarQube suggestion, bring ASB event listener in line with integration listener

* Apply suggestions from code review

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>

* Updates to README - PR fixes, additional context, tense alignment

* Fix the formatting for inlined code snippets

* Add links to different sections; remove inline code formatting in favor of single bacticks for JSON

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2025-06-17 08:38:16 -04:00
5ffa937914 [PM-22098] Create default collection when organization member is confirmed (#5944)
* Add RequiresDefaultCollection method to PersonalOwnershipPolicyRequirement

* Add CreateDefaultLocation feature flag to Constants.cs

* Add DefaultUserCollectionName property to OrganizationUserConfirmRequestModel with encryption attributes

* Update PersonalOwnershipPolicyRequirement instantiation in tests to use constructor with parameters instead of property assignment

* Enhance ConfirmOrganizationUserCommand to support default user collection creation. Added logic to check if a default collection is required based on organization policies and feature flags. Updated ConfirmUserAsync method signature to include an optional defaultUserCollectionName parameter. Added corresponding tests to validate the new functionality.

* Refactor Confirm method in OrganizationUsersController to use Guid parameters directly, simplifying the code. Updated ConfirmUserAsync call to include DefaultUserCollectionName from the input model.

* Move logic for handling confirmation side effects into a separate method

* Refactor PersonalOwnershipPolicyRequirement to use enum for ownership state

- Introduced PersonalOwnershipState enum to represent allowed and restricted states.
- Updated PersonalOwnershipPolicyRequirement constructor and properties to utilize the new enum.
- Modified related classes and tests to reflect changes in ownership state handling.
2025-06-17 12:20:22 +01:00
Tom
b8244908ec [PM-20112] Member access stored proc and splitting the query (#5943) 2025-06-16 16:32:36 -05:00
66d1c70dc6 Bumped version to 2025.6.2 2025-06-16 13:09:36 +00:00
f944bd2a31 feat: add deviceId to response for pending auth requests; Modified queries to match join for new devices; Fixed tests to account for object changes. 2025-06-14 00:06:09 -04:00
4a12120950 [PM-19703] Fix admin count logic to exclude current organization (#5918) 2025-06-13 16:27:48 -04:00
Ike
d525a1c93c Update test/Infrastructure.IntegrationTest/Auth/Repositories/AuthRequestRepositoryTests.cs
Co-authored-by: Patrick-Pimentel-Bitwarden <ppimentel@bitwarden.com>
2025-06-13 13:26:52 -04:00
Ike
295676d753 Update src/Core/Auth/Services/IAuthRequestService.cs
Co-authored-by: Patrick-Pimentel-Bitwarden <ppimentel@bitwarden.com>
2025-06-13 13:26:10 -04:00
Ike
03a5e22d41 Merge branch 'main' into auth/pm-20348/extension-auth-approvals-add-auth-request-endpoint 2025-06-12 18:00:06 -04:00
1eb6a0481f fix : sync sql and migration scripts 2025-06-12 13:30:12 -04:00
db77201ca4 Bumped version to 2025.6.1 2025-06-12 16:07:52 +00:00
0bdd18d6b7 Remove logic for generating and uploading checksum artifacts (#5950) 2025-06-12 11:26:35 -04:00
66a89245f9 [PM-20590] Correcting error provided when scaling provider org (#5951)
* Moved provider org check above organization stripe id checks.
2025-06-12 08:48:15 -05:00
64b288035c Chore: document SutProvider and clean up UserServiceTests (#5879)
* UserServiceTests - use builder pattern for SutProvider to reduce boilerplate
* SutProvider - add xmldoc
2025-06-12 10:21:05 +01:00
463dc1232d Add xmldoc for OrganizationUser (#5949) 2025-06-12 10:47:41 +10:00
6d36f636c4 Revert "replace fallback icon default with response (#5878)" (#5956)
This reverts commit ed780d45d3.
2025-06-11 21:46:21 +00:00
b21c3b8ac9 chore: dotnet format 2025-06-11 16:56:03 -04:00
821f66e99f [PM-22205] Fix logic for sending out revoked email (#5933) 2025-06-11 16:55:42 -04:00
681c9459e0 test: added integration tests for multiple auth requests but only returning the most recent. 2025-06-11 15:50:19 -04:00
5d251d77e0 Fix: update queries to only return the most recent authrequest, or none at all if the most recent is approved. 2025-06-11 15:49:43 -04:00
be72a77c72 [PM-22099] add collection type (#5942)
* add CollectionType enum

* add CollectionType to CollectionResponseModels

* cleanup

* clean up

* change types

* add collection type to public API model

* remove redundant statements
2025-06-11 11:01:04 -04:00
a618f97234 [PM 20621]Update error message when lowering seat count (#5836)
* implement the seat decrease error message

* Resolve the comment regarding abstraction

* Resolved the database failure

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

* Resolve the failing test

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

* Resolve the failing test

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

* Resolve the failing upgrade test

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

* Resolve the failing test

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

* Resolve the failing test

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

* Removed the unused method

* Remove the total calculation from the stored procedure

* Refactoring base on pr feedback

* Refactoring base on pr feedback

* Resolve the fauiling database

* Resolve the failing database test

* Resolve the database test

* Remove duplicate migrations

* resolve the failing test

* Removed the unneeded change

* remove this file

* Reverted Deleted migration

* revert the added space

* resolve the stored procedure name

* Rename the migration name

* Updated the stored procedure name

* Revert the changes on the sproc

* Revert unrelated changes

* Remove the unused method

* improved the xmldoc

* Add an integration testing

* Add the use of helper test class

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

* Resolve the failing test

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

* Resolve the failing test

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

* remove object look up

* Resolve message rollback

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

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-06-11 14:03:45 +01:00
f532236f05 [PM-22572] Added app-intents feature flag key (#5948) 2025-06-10 17:27:51 -03:00
1bd11e61ef Add enable-pm-prelogin-settings flag (#5946) 2025-06-10 15:50:22 -04:00
4277f435ab PM-22564 Fix Namespaces from Tools to Dirt (#5947)
* PM-22564 fixing namespaces

* PM-22564 fixing namespace in integration test

* PM-22564 fixing .sqlproj file
2025-06-10 12:36:49 -05:00
021e69bc5d [PM-17154] Limit item deletion feature flag logic removal (#5925)
* Refactor CiphersController and related tests by removing unused IFeatureService dependency and associated feature flag checks. Cleaned up tests to reflect these changes, ensuring they focus on manage permissions without reliance on feature flags.

* Refactor CipherService and related tests by removing feature flag checks for item deletion permissions. Updated tests to focus on user manage permissions without reliance on feature flags, ensuring cleaner and more maintainable code.

* Enhance CiphersControllerTests by adding user retrieval and organization ability checks. Updated test cases to ensure proper handling of item deletion permissions based on user roles and organization settings, improving test coverage and reliability.
2025-06-10 09:57:29 +01:00
fbdd62fadd [PM-20416]Downgraded paid org cannot upgrade from Free (#5748)
* enable the downgrade of free org

* resolve the free org update issue

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

* Retain the canceled subscriptionId

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

* resolve the pr coments

* Refactor the code base on the pr comment

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

* Resolve the pr comments

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

* Resolve the pr comment

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

* Resolve the failing test

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

* Resolve the repeated condition

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

* apply the condition suggestion

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

* Add the missing MaxCollection

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2025-06-10 07:50:09 +01:00
84e5ea1265 [PM-22097] Add Columns to Collections for Org User Default Collection (#5908)
* Adding columns and database migrations for organization DefaultUserCollection.
2025-06-09 13:50:15 -05:00
52c392d668 [deps] Billing: Update swashbuckle-aspnetcore monorepo to 7.3.2 (#5731)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-09 10:53:17 -05:00
88ffc91b99 [deps] Billing: Update coverlet.collector to 6.0.4 (#5720)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-09 10:49:41 -05:00