1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-20 02:48:03 -05:00

6073 Commits

Author SHA1 Message Date
Bernd Schoolmann
129e29150f
Fix build of integration tests 2025-06-19 16:25:04 +02:00
Bernd Schoolmann
91d68f1481
Merge branch 'km/signing-api-changes' into km/signing-upgrade-rotation 2025-06-19 16:21:31 +02:00
Bernd Schoolmann
4925baf41b
Fix tests 2025-06-19 16:03:31 +02:00
Bernd Schoolmann
55fa54c7b4
Fix tests 2025-06-19 16:00:20 +02:00
Bernd Schoolmann
ad32c5f257
Apply suggestions 2025-06-19 15:56:22 +02:00
Bernd Schoolmann
4d6b8c88fc
Remove empty line 2025-06-18 21:27:06 +02:00
Bernd Schoolmann
230d9902e1
Update src/Api/Startup.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-06-18 21:19:58 +02:00
Bernd Schoolmann
164222fdf4
Update src/Api/Startup.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-06-18 21:19:17 +02:00
Bernd Schoolmann
898fcba95f
Move registration to core 2025-06-18 20:10:20 +02:00
Bernd Schoolmann
49c130f91f
Merge branch 'km/feature-signing-keys' into km/signing-api-changes 2025-06-18 20:07:01 +02:00
Bernd Schoolmann
2b3d92b789
[PM-21034] Database changes for signature keypairs (#5906)
* Add signing key repositories, models, and sql migration scripts

* Rename UserSigningKeys table to UserSigningKey

* Rename signedpublickeyownershipclaim to signedpublickey

* Move signedPublicKey to last parameter

* Add newline at end of file

* Rename to signature key pair

* Further rename to signaturekeypair

* Rename to UserSignatureKeyPairRepository

* Add newline

* Rename more instances to UserSignatureKeyPair

* Update parameter order

* Fix order

* Add more renames

* Cleanup

* Fix sql

* Add ef migrations

* Fix difference in SQL SP compared to migration SP

* Fix difference in SQL SP vs migration

* Fix difference in SQL SP vs migration

* Attempt to fix sql

* Rename migration to start later

* Address feedback

* Move UserSignatureKeyPair to KM codeownership

* Fix build

* Fix build

* Fix build

* Move out entitytypeconfiguration

* Use view for reading usersignaturekeypairs

* Fix migration script

* Fix migration script

* Drop view if exists

* Enable nullable

* Replace with create or alter view

* Switch go generatecomb

* Switch to generatecomb

* Move signature algorithm

* Move useresignaturekeypairentitytypeconfiguration to km ownership

* Move userSignatureKeyPair model

* Unswap file names

* Move sql files to km ownership

* Add index on userid for signature keys

* Fix wrong filename

* Remove string length limit

* Regenerate EF migrations

* Undo changes to program.cs

* Update util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update util/Migrator/DbScripts/2025-06-01_00_AddSignatureKeyPairTable.sql

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Rename dbset to plural

* Update src/Infrastructure.EntityFramework/KeyManagement/Repositories/UserSignatureKeyPairRepository.cs

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

---------

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-06-18 20:02:55 +02:00
Addison Beck
91b4ef756b
build(ci): remove the need to cherry pick version bumps to rc (#5977) 2025-06-18 16:47:30 +02:00
Nick Krantz
05d74754d2
add PM22134SdkCipherListView feature flag (#5980) 2025-06-18 09:29:48 -05:00
Brant DeBow
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
Bernd Schoolmann
f15dcdba5e
Apply fixes 2025-06-17 20:07:24 +02:00
Justin Baur
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
Vincent Salucci
6dc26f4be6
chore: remove external id feature flag, refs PM-18634 (#5974) 2025-06-17 10:55:42 -05:00
✨ Audrey ✨
a3c5741164
[PM-22610] validate file within max length; log deletion of invalid uploads (#5960) 2025-06-17 15:07:26 +00:00
Patrick Honkonen
0a5dc04d9e
[PM-22458] Add user managed privileged apps FF for Android (#5935) 2025-06-17 14:48:11 +00:00
Alexey Zilber
17507446a4
Added SendGridApiHost to Globals (#5961)
* Added SendGridApiHost to Globals

* Added SendGridApiHost for test coverage
2025-06-17 21:35:38 +08:00
Brant DeBow
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
Rui Tomé
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
Github Actions
66d1c70dc6 Bumped version to 2025.6.2 2025-06-16 13:09:36 +00:00
Bernd Schoolmann
76e9be5ef6
Undo comments change 2025-06-16 11:35:48 +02:00
Bernd Schoolmann
4553ad50ee
Revert constructor change 2025-06-16 11:34:45 +02:00
Bernd Schoolmann
dbb4aca1e2
Fix cases for request data conversion 2025-06-16 11:32:00 +02:00
Bernd Schoolmann
54aac8cfc4
Remove unused file 2025-06-16 11:27:45 +02:00
Bernd Schoolmann
b7079cefcf
Make signedpublickey optional 2025-06-16 11:25:39 +02:00
Bernd Schoolmann
66333061a2
Fix namespace 2025-06-16 11:17:13 +02:00
Bernd Schoolmann
103e86f17c
Fix build 2025-06-16 11:08:58 +02:00
Bernd Schoolmann
16f69887ad
Merge branch 'km/signing-api-changes' into km/signing-upgrade-rotation 2025-06-16 11:05:23 +02:00
Bernd Schoolmann
e0a6fd7af6
Merge branch 'km/db-signing-keys' into km/signing-api-changes 2025-06-16 09:43:02 +02:00
Bernd Schoolmann
35b6816888
Merge branch 'main' into km/db-signing-keys 2025-06-16 09:41:25 +02:00
Jimmy Vo
4a12120950
[PM-19703] Fix admin count logic to exclude current organization (#5918) 2025-06-13 16:27:48 -04:00
Bernd Schoolmann
3bc7d15551
Pass user account keys directly to profileresponsemodel 2025-06-12 21:42:57 +02:00
Bernd Schoolmann
a3b9bfc9ea
Add test 2025-06-12 21:32:39 +02:00
Github Actions
db77201ca4 Bumped version to 2025.6.1 2025-06-12 16:07:52 +00:00
Vince Grassia
0bdd18d6b7
Remove logic for generating and uploading checksum artifacts (#5950) 2025-06-12 11:26:35 -04:00
Bernd Schoolmann
68960efc85
Use argumentNullException 2025-06-12 17:20:52 +02:00
Bernd Schoolmann
354320a88c
Switch away from primary constructor 2025-06-12 17:03:27 +02:00
Bernd Schoolmann
4568eddabd
Update src/Api/KeyManagement/Models/Response/PrivateKeysResponseModel.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-06-12 16:44:17 +02:00
Bernd Schoolmann
6f3471e658
Fix tests 2025-06-12 16:42:04 +02:00
Bernd Schoolmann
343452fb7f
Merge branch 'km/signing-api-changes' of github.com:bitwarden/server into km/signing-api-changes 2025-06-12 16:02:33 +02:00
Bernd Schoolmann
22888a5928
Fix build 2025-06-12 16:01:30 +02:00
Bernd Schoolmann
12636bfb35
Fix test 2025-06-12 15:53:35 +02:00
Bernd Schoolmann
70bafb5121
Cleanup and move query to core 2025-06-12 15:51:47 +02:00
Jared McCannon
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
Bernd Schoolmann
038b4edebe
Update src/Api/KeyManagement/Controllers/UsersController.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-06-12 15:30:55 +02:00
Bernd Schoolmann
a417aa72e8
Update src/Api/KeyManagement/Models/Response/PrivateKeysResponseModel.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-06-12 15:30:04 +02:00