1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-15 20:41:35 +01:00
Commit Graph

5360 Commits

Author SHA1 Message Date
Rui Tomé
b75c63c2c6
[PM-15957] Fix: Domain Claim fails to enable Single Organization Policy, sends no emails and Revokes all users (#5147)
* Add JSON-based stored procedure for updating account revision dates and modify existing procedure to use it

* Refactor SingleOrgPolicyValidator to revoke only non-compliant organization users and update related tests
2024-12-17 15:57:31 +00:00
Michał Chęciński
16488091d2
Remove is_workflow_call input from build workflow (#5161) 2024-12-17 10:45:02 -05:00
aj-bw
ecbfc05683
QA-689/BEEEP-public-api-GET-subscription-details (#5041)
* added GET operation to org subscription endpoint

* adding back removed using statement

* addressing unused import and lint warnings

* whitespace lint fix

* successful local format

* add NotSelfHostOnly attribute

* add endpoint summary and return details
2024-12-17 08:32:37 -05:00
Robyn MacCallum
b907935eda
Add Authenticator sync flags (#5159)
* Add Authenticator sync flags

* Fix whitespace
2024-12-16 16:18:33 -05:00
Thomas Avery
7637cbe12a
[PM-13362] Add private key regeneration endpoint (#4929)
* Add new RegenerateUserAsymmetricKeysCommand

* add new command tests

* Add regen controller

* Add regen controller tests

* add feature flag

* Add push notification to sync new asymmetric keys to other devices
2024-12-16 12:01:09 -06:00
Daniel James Smith
d88a103fbc
Move CSVHelper under billing ownership (#5156)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-12-16 11:11:37 -05:00
Ike
c446ac86fe
[PM-12512] Add Endpoint to allow users to request a new device otp (#5146)
feat(NewDeviceVerification): Added a resend new device OTP endpoint and method for the IUserService as well as wrote test for new methods for the user service.
2024-12-16 07:57:56 -08:00
renovate[bot]
8994d1d7dd
[deps] Tools: Update aws-sdk-net monorepo (#5126)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2024-12-16 15:11:56 +00:00
Opeyemi
d0c72a34f1
Update SH Unified Build trigger (#5154)
* Update SH Unified Build trigger

* make value a boolean
2024-12-16 15:21:05 +01:00
Conner Turnbull
9321515eca
[PM-10873] Updated errors thrown when creating organization on selfhost to be more specific (#5007)
* Updated errors thrown when creating organization on selfhost to be more specific

* Added additional validation to ensure that the license type is accurate

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-12-16 08:04:05 -05:00
Addison Beck
a8091bf585
chore(db): add Installation.LastActivityDate column (#5060)
* chore(mssql): add `Installation.LastActivityDate` column

* chore(ef): add `Installation.LastActivityDate` column
2024-12-13 16:04:55 -05:00
SmithThe4th
141a046a28
[PM-14377] Add PATCH complete endpoint (#5100)
* Added CQRS pattern

* Added the GetManyByUserIdAsync signature to the repositiory

* Added sql sproc

Created user defined type to hold status

Created migration file

* Added ef core query

* Added absract and concrete implementation for GetManyByUserIdStatusAsync

* Added integration tests

* Updated params to status

* Implemented new query to utilize repository method

* Added controller for the security task endpoint

* Fixed lint issues

* Added documentation

* simplified to require single status

modified script to check for users with edit rights

* Updated ef core query

* Added new assertions

* simplified to require single status

* fixed formatting

* Fixed sql script

* Removed default null

* Added OperationAuthorizationRequirement for secruity task

* Added and registered MarkTaskAsCompletedCommand

* Added unit tests for the command

* Added complete endpoint

* removed false value
2024-12-13 14:50:20 -05:00
Matt Bishop
c0a9c55891
Fix image path formation for Cosign (#5151) 2024-12-13 10:26:45 -05:00
Matt Bishop
11bdb93d1e
Sign main branch container builds with cosign (#5148)
* Sign main branch container builds with cosign

* Properly label
2024-12-13 09:41:17 -05:00
renovate[bot]
a28e517eeb
[deps] Billing: Update swashbuckle-aspnetcore monorepo to v7 (#5069)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
2024-12-13 12:42:25 +01:00
Rui Tomé
6da7fdc39e
[PM-15547] Revoke managed user on 2FA removal if enforced by organization policy (#5124)
* Revoke managed user on 2FA removal if enforced by organization policy

* Rename TwoFactorDisabling to TwoFactorDisabled in EventSystemUser enum
2024-12-13 11:32:29 +00:00
renovate[bot]
6d9c8d0a47
[deps] Auth: Lock file maintenance (#4952)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 20:04:18 -08:00
renovate[bot]
ce60657b8e
[deps] Auth: Update mini-css-extract-plugin to v2.9.2 (#5013)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 19:04:33 -08:00
renovate[bot]
e0d82c447d
[deps] Auth: Update sass-loader to v16.0.4 (#5014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 12:57:00 -08:00
renovate[bot]
a3174cffd4
[deps] Auth: Update webpack to v5.97.1 (#5018)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 11:52:28 -08:00
SmithThe4th
a332a69112
[PM-14376] Add GET tasks endpoint (#5089)
* Added CQRS pattern

* Added the GetManyByUserIdAsync signature to the repositiory

* Added sql sproc

Created user defined type to hold status

Created migration file

* Added ef core query

* Added absract and concrete implementation for GetManyByUserIdStatusAsync

* Added integration tests

* Updated params to status

* Implemented new query to utilize repository method

* Added controller for the security task endpoint

* Fixed lint issues

* Added documentation

* simplified to require single status

modified script to check for users with edit rights

* Updated ef core query

* Added new assertions

* simplified to require single status

* fixed formatting

* Fixed sql script

* Removed default null

* Added security tasks feature flag
2024-12-12 14:27:31 -05:00
Brandon Treston
03dde0d008
update copy for domain claimed by organization email (#5138) 2024-12-12 13:54:04 -05:00
Ike
867fa848dd
[PM-8220] New Device Verification (#5084)
* feat(BaseRequestValidator): 
Add global setting for new device verification.
Refactor BaseRequestValidator enabling better self-documenting code and better single responsibility principle for validators.
Updated DeviceValidator to handle new device verification, behind a feature flag.
Moved IDeviceValidator interface to separate file.
Updated CustomRequestValidator to act as the conduit by which *Validators communicate authentication context between themselves and the RequestValidators.
Adding new test for DeviceValidator class.
Updated tests for BaseRequestValidator as some functionality was moved to the DeviceValidator class.
2024-12-12 09:08:11 -08:00
Jimmy Vo
a76a9cb800
[PM-14826] Add UsePolicies check to GET endpoints (#5046)
GetByToken and GetMasterPasswordPolicy endpoints provide policy information, so if the organization is not using policies, then we avoid the rest of the logic.
2024-12-12 10:18:11 -05:00
Alex Morask
c852575a9e
[PM-14984] Use provider subscription for MSP managed enterprise license (#5102)
* Use provider subscription when creating license for MSP managed enterprise organization

* Run dotnet format
2024-12-12 07:08:17 -05:00
Alex Morask
2d891b396a
[PM-11127] Write OrganizationInstallation record when license is retrieved (#5090)
* Add SQL files

* Add SQL Server migration

* Add Core entity

* Add Dapper repository

* Add EF repository

* Add EF migrations

* Save OrganizationInstallation during GetLicense invocation

* Run dotnet format
2024-12-11 13:55:00 -05:00
Github Actions
4c502f8cc8 Bumped version to 2024.12.1 2024-12-11 18:07:57 +00:00
Todd Martin
9b732c739a
[PM-15907] Disable cipher key encryption on self-hosted instances (#5140)
* Disable cipher key encryption on self-hosted instances

* Removed override instead of setting to false
2024-12-11 10:10:20 -05:00
Rui Tomé
170836aba1
Update unclaimed domains email copy (#5116) 2024-12-11 14:48:00 +00:00
Jonas Hendrickx
c99b4106f5
Revert [PM-6201] (#5143)
* Revert "[PM-6201] Fix creation of organizations no longer working after merging #5130 (#5142)"

This reverts commit 64573d01a3.

* Revert "[PM-6201] Self-Host Admin Portal is reporting "10239 GB of Additional… (#5130)"

This reverts commit 674e522843.
2024-12-11 15:19:38 +01:00
Jonas Hendrickx
64573d01a3
[PM-6201] Fix creation of organizations no longer working after merging #5130 (#5142) 2024-12-11 14:56:46 +01:00
Addison Beck
09db6c79cb
chore(codeowners): assign a bunch of workflows to platform (#5136) 2024-12-11 06:31:22 -05:00
Rui Tomé
9b478107b6
[PM-15128] Add Promote Provider Service User functionality to Bitwarden Portal (#5118)
* Add Promote Provider Service User feature to Admin Portal

* Rename feature flag key for Promote Provider Service User tool
2024-12-11 11:09:12 +00:00
Jonas Hendrickx
674e522843
[PM-6201] Self-Host Admin Portal is reporting "10239 GB of Additional… (#5130) 2024-12-11 10:32:28 +01:00
renovate[bot]
94761a8c7b
[deps] Billing: Update FluentAssertions to v7 (#5127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-10 15:21:26 -05:00
Vincent Salucci
39ce7637c9
fix: remove policy definitions feature flag, refs PM-14245 (#5139) 2024-12-10 18:50:06 +00:00
Addison Beck
2d257dc274
chore: run dotnet format (#5137) 2024-12-10 18:29:54 +01:00
Jonas Hendrickx
fe70db3e87
[PM-12765] Display error when attempting to autoscale canceled subscription (#5132) 2024-12-10 16:42:14 +01:00
Brandon Treston
4730d2dab7
add feature flag (#5114) 2024-12-10 09:55:36 -05:00
Brandon Treston
9c8f932149
[PM-12273] Integration page (#5119)
* add feature flag

* add rest endpoint to get plan type for organization
2024-12-10 09:55:03 -05:00
Michał Chęciński
9e860104f2
BRE-311 Fix the MsSqlMigratorUtility failing silently (#5134) 2024-12-10 09:30:34 -05:00
Rui Tomé
127f1fd34d
[PM-10338] Update the Organization 'Leave' endpoint to log EventType.OrganizationUser_Left (#4908)
* Implement UserLeaveAsync in IRemoveOrganizationUserCommand and refactor OrganizationsController to use it

* Edit summary message for IRemoveOrganizationUserCommand.UserLeaveAsync

* Refactor RemoveOrganizationUserCommand.RemoveUsersAsync to log in bulk

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-12-10 11:14:34 +00:00
Conner Turnbull
2212f552aa
Updated quartz jobs to create a container scope to allow for scoped services (#5131) 2024-12-09 14:56:12 -05:00
Brandon Treston
c591997d01
[PM-13013] add delete many async method to i user repository and i user service for bulk user deletion (#5035)
* Add DeleteManyAsync method and stored procedure

* Add DeleteManyAsync and tests

* removed stored procedure, refactor User_DeleteById to accept multiple Ids

* add sproc, refactor tests

* revert existing sproc

* add bulk delete to IUserService

* fix sproc

* fix and add tests

* add migration script, fix test

* Add feature flag

* add feature flag to tests for deleteManyAsync

* enable nullable, delete only user that pass validation

* revert changes to DeleteAsync

* Cleanup whitespace

* remove redundant feature flag

* fix tests

* move DeleteManyAsync from UserService into DeleteManagedOrganizationUserAccountCommand

* refactor validation, remove unneeded tasks

* refactor tests, remove unused service
2024-12-06 14:40:47 -05:00
孟武.尼德霍格.龍
fb5db40f4c
Update docker reference link (#5096)
Update docker reference link

Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2024-12-06 19:34:50 +01:00
Opeyemi
9ebddd223a
[BRE-470] - Update Renovate Conf for BRE team (#5123) 2024-12-06 11:53:52 -05:00
Addison Beck
092b0b8bd2
Remove LimitCollectionCreationDeletionSplit feature flag (#4809)
* Remove references to feature flag

* Demote entity property to an EF shadow property

* Add a few excludes to license file tests
2024-12-06 11:46:17 +01:00
Jared McCannon
2333a934a9
[PM-12488] Migrating Cloud Org Sign Up to Command (#5078) 2024-12-06 13:18:02 +10:00
Thomas Rittson
6a9b7ece2b
[PM-11360] Remove export permission for providers (#5051)
- also fix managed collections export from CLI
2024-12-06 08:07:04 +10:00
Vijay Oommen
1f1510f4d4
PM-15091 Add Feature Flag to DB called UseRiskInsights (#5088)
Add a new column called UseRiskInsights to `dbo.Organization`
2024-12-05 10:46:01 -06:00