aj-bw
d407c164b6
BRE-917 Update to Alpine base ( #5976 )
...
* testing-wolfi
* testing alpine
* fix gosu download
* fix Admin dockerfile
* update dockerfiles
* alpine-compatible-entrypoint-script-for-api-test
* make-entrypoint-scripts-alpine-compatible
* testing nginx with alpine
* cleaning up comments from dockerfile from testing
* restore accidentally deleted icon
* remove unused file
* pin alpine, update apk add no cache
* remove comments from testing
* test shadow implementtaion for entrypoints
* add shadow package, revert entrypoints, change from bash to shell for entry
* add icu to setup container, update helpers to use shell
* update migrator utility
* add missing krb5 libraries
2025-07-28 10:56:20 -04:00
cyprain-okeke
2cf7208eb3
[PM 21897]Add Manual Enable/Disable Override for Providers in Admin Portal ( #6072 )
...
* Add the changes for the enable provider
* remove the wanted permission added
* Added a unit testing for the updateAsync
2025-07-24 16:12:25 +01:00
Alex Morask
ec70a18bda
[NO LOGIC] [PM-21100] Organize billing organization code ( #6099 )
...
* [NO LOGIC] Organize Billing organization code
* Run dotnet format
2025-07-17 12:02:25 -05:00
renovate[bot]
5270fba44d
[deps] Auth: Update sass to v1.89.2 ( #5863 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-15 10:02:51 -04:00
Conner Turnbull
9b65e9f4cc
[PM-22580] Org/User License Codeownership Move (No logic changes) ( #6080 )
...
* Moved license models to billing
* Moved LicensingService to billing
* Moved license command and queries to billing
* Moved LicenseController to billing
2025-07-11 16:41:32 -04:00
Justin Baur
da66400248
Add #nullable disable to AC code ( #6052 )
2025-07-08 17:32:49 -04:00
Justin Baur
85b2a5bd94
Add #nullable disable to billing code ( #6054 )
2025-07-08 11:46:24 -04:00
Justin Baur
fa0c9cb387
Add #nullable disable to platform code ( #6057 )
2025-07-08 10:25:59 -04:00
Justin Baur
7fb7d6fa56
Add #nullable disable to auth code ( #6055 )
2025-07-08 10:25:41 -04:00
tangowithfoxtrot
5d9071da1f
fix: failed db migrations due to missing kerberos tools ( #6005 )
2025-06-25 10:20:42 -07:00
Rui Tomé
494c41e3b1
[PM-15160] Create ResellerClientOrganizationSignUpCommand ( #5981 )
...
* Implement ResellerClientOrganizationSignUpCommand for signing up reseller client organizations with email invitations and error handling
* Refactor ProvidersController to replace IOrganizationService with IResellerClientOrganizationSignUpCommand for organization sign-up process
* Remove CreatePendingOrganization method from IOrganizationService and its implementation in OrganizationService
* Add IResellerClientOrganizationSignUpCommand to service collection for organization sign-up
* Add comment to clarify organization deletion process in ResellerClientOrganizationSignUpCommand
2025-06-24 13:33:09 +01:00
cyprain-okeke
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
Henrik
8bac7f0145
[PM-14476] Avoid multiple lookups in dictionaries ( #4973 )
...
* Avoid multiple lookups in dictionaries
* Consistency in fallback to empty CollectionIds
* Readability at the cost of lines changed
* Readability
* Changes after running dotnet format
2025-06-02 11:18:28 -05:00
Daniel James Smith
c7b1c7f6d5
[PM-22190] Remove gathering and reporting of ReferenceEvents ( #5897 )
...
* Remove gathering and reporting of ReferenceEvents
* Fix test that relied on reference events throwing
---------
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com >
2025-06-02 16:49:49 +02:00
tangowithfoxtrot
63f5811aa9
feat: non-root self hosted images for standard deployment ( #5701 )
...
* Use IHttpMessageHandlerFactory For HTTP Communication
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com >
* feat: allow custom app-id.json location for rootless
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com >
* fix: new build context wont allow copying git context
* feat: allow images to run as non-root user
* fix: build failures caused by bad merge
* build: we don't need to copy the `.git` dir
* Revert "build: we don't need to copy the `.git` dir"
This reverts commit 32c2f6236a .
* Use `IHttpClientFactory` in more places
* update build workflow
* fix: compatibility with the existin run.sh script
* fix: compatibility with existing run.sh script
* Add SelfHosted GlobalSettings for Setup
* Fix my build error
* Add other services
* Add IConfiguration
* fix: missing gosu command for rootful mode
* fix: try using .net core certificate handling
* fix: add `SSL_CERT_DIR` to remaining images
* Remove X509ChainCustomization activation code
* Revert "Use IHttpMessageHandlerFactory For HTTP Communication"
This reverts commit c93be6d52b .
* Revert "fix: build failures caused by bad merge"
This reverts commit 3e4639489b .
* Revert "Use `IHttpClientFactory` in more places"
This reverts commit 284501a493 .
* remove unused code
* re-add error log for installation id
* remove missing error message in log
* build: remove duplicate docker+qemu setup steps
Co-authored-by: Opeyemi <Alaoopeyemi101@gmail.com >
* build: optimize for simpler builds over caching
* build: restore previous method for getting the GIT_HASH
* fix: add missing build args to remaining images
* fix: rm extraneous source revision id arg
* fmt: apply consistent spacing and rm redundant WORKDIR directive
* build: update migrator to use simpler build; apply consistent spacing
* fix: merge conflicts; simplify changes
* fix: add publish branch check back
---------
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com >
Co-authored-by: Opeyemi <Alaoopeyemi101@gmail.com >
2025-05-30 10:29:47 -07:00
Alex Morask
390b93f6ce
[PM-21250] Remove pm-18770-enable-organization-business-unit-conversion ( #5848 )
...
* Remove pm-18770-enable-organization-business-unit-conversion
* Run dotnet format
2025-05-30 09:58:36 -04:00
Brandon Treston
930fe29c82
replace owner/admins list with table ( #5892 )
2025-05-29 09:55:33 -04:00
Brandon Treston
cd994f72bf
change verbiage, add column to table ( #5888 )
2025-05-28 12:06:25 -04:00
renovate[bot]
77865f071a
[deps] Auth: Lock file maintenance ( #5747 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 13:33:46 -04:00
renovate[bot]
34414a0610
[deps] Auth: Update sass to v1.88.0 ( #5684 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ike <137194738+ike-kottlowski@users.noreply.github.com >
2025-05-22 17:02:23 +00:00
renovate[bot]
dd60769499
[deps] Auth: Update bootstrap to v5.3.6 ( #5687 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 12:24:55 -04:00
renovate[bot]
ad22f77aba
[deps] Auth: Update webpack to v5.99.8 ( #5728 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-22 11:17:17 -04:00
renovate[bot]
ad8b1d9143
[deps] Auth: Update sass-loader to v16.0.5 ( #5689 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ike <137194738+ike-kottlowski@users.noreply.github.com >
2025-05-22 09:51:38 -04:00
Alex Morask
18d146406c
[PM-21099] (NO LOGIC) Organize Billing provider code ( #5819 )
...
* [NO LOGIC] Organize Billing provider code
* Run dotnet format
* Run dotnet format'
* Fixed using after merge
* Fixed test usings after merge
2025-05-21 09:04:30 -04:00
Graham Walker
818934487f
PM-18939 refactoring send service to 'cqrs' ( #5652 )
...
* PM-18939 refactoring send service to 'cqrs'
* PM-18939 fixing import issue with sendValidationService
* PM-18939 fixing code based on PR comments
* PM-18339 reverting to previous code in test
* PM-18939 adding XMLdocs to services
* PM-18939 reverting send validation methods
* PM-18939 updating code to match main
* PM-18939 reverting validateUserCanSaveAsync to match main
* PM-18939 fill our param and return sections of XMLdocs
* PM-18939 updating XMLdocs based on PR comments
* Update src/Core/Tools/SendFeatures/Commands/Interfaces/IAnonymousSendCommand.cs
Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com >
* Update src/Core/Tools/SendFeatures/Commands/Interfaces/INonAnonymousSendCommand.cs
Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com >
* Update src/Core/Tools/SendFeatures/Commands/Interfaces/INonAnonymousSendCommand.cs
Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com >
* Update src/Core/Tools/SendFeatures/Services/Interfaces/ISendStorageService.cs
Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com >
* PM-18939 adding commits to change tuple to enum type
* PM-18939 resetting stream position to 0 when uploading file
* PM-18939 updating XMLdocs based on PR comments
* PM-18939 updating XMLdocs
* PM-18939 removing circular dependency
* PM-18939 fixing based on comments
* PM-18939 updating method name and documentation
---------
Co-authored-by: ✨ Audrey ✨ <ajensen@bitwarden.com >
2025-05-19 22:59:30 -05:00
Brandon Treston
cbf49b915b
[PM-11622] Implement UseOrganizationDomains ( #5822 )
...
* implement UseOrganizationDomains
* fix undefined error
2025-05-16 12:51:22 -04:00
renovate[bot]
07de9aa8bc
[deps] Auth: Update expose-loader to v5.0.1 ( #5688 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-15 15:41:19 -04:00
Brandon Treston
81bff5e5cf
[PM-11622] use organization domains ( #5560 )
...
* DBO changes
* Add migration scripts
* wip
* wip
* wip
* add EF migrations
* run dotnet format
* cleanup
* revert business logic
* wip
* add update statement to mssql migration script
* fix user service tests
* increment license, add UseOrganizationDomains
* add migration helpers to seed initial value from UseSso
* clean up
* cleanup
* fix mssql migrations
* fix license version and test
* fix file names
* fix license json
* add missing property to license test
* rename file
* fix migrations
* fix migration
* add WHERE to helper scripts
* separate schema/data migrations
* restore comment
* Merge conflict
* fix migrations
* add new property to migration
* wip
* fix file names
* fix file name
2025-05-15 10:42:51 -04:00
Conner Turnbull
9e2562fc8d
Updated Braintree ID string validation to account for providers ( #5794 )
2025-05-15 09:42:01 -04:00
Thomas Rittson
a1b22e66e5
[PM-14613] Remove account deprovisioning feature flag ( #5676 )
...
* Remove flag
* Remove old tests
* Remove old xmldoc referencing the flag
* Remove old emails
2025-05-13 07:17:54 +10:00
Todd Martin
3989e3b26b
chore(feature-flag): [PM-8671] Remove new-device-verification feature flag
...
* Completed grouping of feature flags by team.
* Completed grouping feature flags by team.
* Remove email delay feature flag
* Removed feature flag
* Fixed reference.
* Remove flag after merge.
* Removed flag from server.
* Removed feature flag from server
* Remove new device verification feature flag.
* Removed unnecessary using.
* Remove feature flag from Constants
2025-05-09 09:37:16 -04:00
Alex Morask
00b9ba2392
Allow for deletion of pending providers ( #5679 )
2025-04-28 15:50:40 -04:00
renovate[bot]
d265e62f6d
[deps] Auth: Lock file maintenance ( #5507 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Patrick-Pimentel-Bitwarden <ppimentel@bitwarden.com >
2025-04-23 15:59:20 -04:00
cyprain-okeke
60e7db7dbb
[PM-17823]Add feature toggle for admin sponsored families to admin portal ( #5595 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Add `Notes` column to `OrganizationSponsorships` table
* Add feature flag to `CreateAdminInitiatedSponsorshipHandler`
* Unit tests for `CreateSponsorshipHandler`
* More tests for `CreateSponsorshipHandler`
* Forgot to add `Notes` column to `OrganizationSponsorships` table in the migration script
* `CreateAdminInitiatedSponsorshipHandler` unit tests
* Fix `CreateSponsorshipCommandTests`
* Encrypt the notes field
* Wrong business logic checking for invalid permissions.
* Wrong business logic checking for invalid permissions.
* Remove design patterns
* duplicate definition in Constants.cs
* Add the admin sponsored families to admin portal
* Add a feature flag
* Rename the migration file name
* Resolve the existing conflict and remove added file
* Add a migration for the change
* Remove the migration Because is already added
* Resolve the failing migration
---------
Co-authored-by: Jonas Hendrickx <jhendrickx@bitwarden.com >
2025-04-17 14:58:29 +01:00
Alex Morask
01a08c5814
[PM-19566] Update MSPs to "charge_automatically" with Admin-based opt-out ( #5650 )
...
* Update provider to charge automatically with Admin Portal-based opt-out
* Design feedback
* Run dotnet format
2025-04-16 13:36:04 -04:00
Jonas Hendrickx
c182b37347
[PM-17830] Backend changes for admin initiated sponsorships ( #5531 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Add `Notes` column to `OrganizationSponsorships` table
* Add feature flag to `CreateAdminInitiatedSponsorshipHandler`
* Unit tests for `CreateSponsorshipHandler`
* More tests for `CreateSponsorshipHandler`
* Forgot to add `Notes` column to `OrganizationSponsorships` table in the migration script
* `CreateAdminInitiatedSponsorshipHandler` unit tests
* Fix `CreateSponsorshipCommandTests`
* Encrypt the notes field
* Wrong business logic checking for invalid permissions.
* Wrong business logic checking for invalid permissions.
* Remove design patterns
* duplicate definition in Constants.cs
* Allow rollback
* Fix stored procedures & type
* Fix stored procedures & type
* Properly encapsulating this PR behind its feature flag
* Removed comments
* Updated ValidateSponsorshipCommand to validate admin initiated requirements
---------
Co-authored-by: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com >
Co-authored-by: Conner Turnbull <cturnbull@bitwarden.com >
2025-04-16 11:27:58 -04:00
Alex Morask
54e7fac4d9
[PM-18770] Convert Organization to Business Unit ( #5610 )
...
* [NO LOGIC] Rename MultiOrganizationEnterprise to BusinessUnit
* [Core] Add IMailService.SendBusinessUnitConversionInviteAsync
* [Core] Add BusinessUnitConverter
* [Admin] Add new permission
* [Admin] Add BusinessUnitConverterController
* [Admin] Add Convert to Business Unit button to Organization edit page
* [Api] Add OrganizationBillingController.SetupBusinessUnitAsync action
* [Multi] Propagate provider type to sync response
* [Multi] Put updates behind feature flag
* [Tests] BusinessUnitConverterTests
* Run dotnet format
* Fixing post-main merge compilation failure
2025-04-10 10:06:16 -04:00
Jared McCannon
dcd62f00ba
[PM-15420] Managed to Claimed ( #5594 )
...
* Renamed ManagedUserDomainClaimedEmails to ClaimedUserDomainClaimedEmails
* Renamed method to improve clarity and consistency.
Replaced `ValidateManagedUserDomainAsync` with `ValidateClaimedUserDomainAsync`.
* Rename `GetOrganizationsManagingUserAsync` to `GetOrganizationsClaimingUserAsync`.
This renaming clarifies the function's purpose, aligning its name with the concept of "claiming" rather than "managing" user associations.
* Refactor variable naming in ValidateClaimedUserDomainAsync
* Managed to claimed
* Managed to claimed
* Managed to claimed
* Managing to Claiming
* Managing to Claiming
* Managing to Claiming
* Managing to Claiming
* Renamed DeleteManagedOrganizationUserAccountCommand to DeleteClaimedOrganizationUserAccountCommand
* Renamed IDeleteManagedOrganizationUserAccountCommand to IDeleteClaimedOrganizationUserAccountCommand
* Updated variable name
* IsManagedBy to IsClaimedBy
* Created new property. obsoleted old property and wired up for backward compatibility.
* More Managed to Claimed renames.
* Managed to Claimed
* Fixing tests... 🤦
* Got the rest of em
* missed the test 🤦
* fixed test.
2025-04-08 14:38:44 -05:00
Alex Morask
282e80ca02
[PM-13837] Switch provider price IDs ( #5518 )
...
* Add ProviderPriceAdapter
This is a temporary utility that will be used to manage retrieval of provider price IDs until all providers can be migrated to the new price structure.
* Updated ProviderBillingService.ChangePlan
* Update ProviderBillingService.SetupSubscription
* Update ProviderBillingService.UpdateSeatMinimums
* Update ProviderBillingService.CurrySeatScalingUpdate
* Mark StripeProviderPortalSeatPlanId obsolete
* Run dotnet format
2025-04-03 08:51:09 -04:00
Alex Morask
ef3b8b782a
Provide plans to OrganizationEditModel for resellers ( #5493 )
2025-03-12 11:56:47 -04:00
Alex Morask
fa90991270
[PM-12601] Add discount to MSP during creation in Admin Portal ( #5391 )
...
* Add Provider DiscountId to database and Stripe customer
* Fix tests
* Add missing EF migrations
* Run dotnet format
2025-03-05 14:59:15 -05:00
Todd Martin
1efc105028
fix(New Device Verification): [PM-18906] Removed flagging from BW Portal
2025-03-05 08:31:43 -05:00
Jared McCannon
cb68ef711a
Added optional param to exclude orgs from cipher list. ( #5455 )
2025-03-04 08:21:02 -06:00
Alex Morask
a2e665cb96
[PM-16684] Integrate Pricing Service behind FF ( #5276 )
...
* Remove gRPC and convert PricingClient to HttpClient wrapper
* Add PlanType.GetProductTier extension
Many instances of StaticStore use are just to get the ProductTierType of a PlanType, but this can be derived from the PlanType itself without having to fetch the entire plan.
* Remove invocations of the StaticStore in non-Test code
* Deprecate StaticStore entry points
* Run dotnet format
* Matt's feedback
* Run dotnet format
* Rui's feedback
* Run dotnet format
* Replacements since approval
* Run dotnet format
2025-02-27 07:55:46 -05:00
renovate[bot]
0f10ca52b4
[deps] Auth: Lock file maintenance ( #5301 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-24 15:45:39 -05:00
renovate[bot]
d8cf658207
[deps] Auth: Update sass to v1.85.0 ( #4947 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 19:35:39 +00:00
Jonas Hendrickx
f6365fa385
[PM-17593] Remove Multi-Org Enterprise feature flag ( #5351 )
2025-02-21 14:35:36 +00:00
Jimmy Vo
ac443ed495
[pm-13985] Add a cancel endpoint to prevent authorization errors ( #5229 )
2025-02-18 09:53:49 -05:00
Alex Morask
5709ea36f4
[PM-15485] Add provider plan details to provider Admin pages ( #5326 )
...
* Add Provider Plan details to Provider Admin pages
* Run dotnet format
* Thomas' feedback
* Updated code ownership
* Robert's feedback
* Thomas' feedback
2025-02-14 12:03: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