1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00
Commit Graph

4557 Commits

Author SHA1 Message Date
667f3cdd00 Merge branch 'main' into ac/ac-1682/data-migrations-for-deprecated-permissions 2024-01-12 18:35:03 +00:00
95139def0f [AC-1758] Implement RemoveOrganizationFromProviderCommand (#3515)
* Add RemovePaymentMethod to StripePaymentService

* Add SendProviderUpdatePaymentMethod to HandlebarsMailService

* Add RemoveOrganizationFromProviderCommand

* Use RemoveOrganizationFromProviderCommand in ProviderOrganizationController

* Remove RemoveOrganizationAsync from ProviderService

* Add RemoveOrganizationFromProviderCommandTests

* PR review feedback and refactoring

* Remove RemovePaymentMethod from StripePaymentService

* Review feedback

* Add Organization RisksSubscriptionFailure endpoint

* fix build error

* Review feedback

* [AC-1359] Bitwarden Portal Unlink Provider Buttons (#3588)

* Added ability to unlink organization from provider from provider edit page

* Refreshing provider edit page after removing an org

* Added button to organization to remove the org from the provider

* Updated based on product feedback

* Removed organization name from alert message

* Temporary logging

* Remove coupon from Stripe org after disconnected from MSP

* Updated test

* Change payment terms on org disconnect from MSP

* Set Stripe account email to new billing email

* Remove logging

---------

Co-authored-by: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com>
Co-authored-by: Conner Turnbull <cturnbull@bitwarden.com>
2024-01-12 10:38:47 -05:00
d5b41c1b51 [AC-1682] Updated postgres migrations 2024-01-12 15:33:35 +00:00
505508a416 [PM-5553] Move Org-Export to tools (#3639)
* Move Org-Export to tools

* Make linter happy

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-01-12 15:13:29 +00:00
752e2c01ea [AC-1682] Updated mysql migrations 2024-01-12 15:01:01 +00:00
19fb7e583e [AC-1682] Bumped up the dates on the migration scripts 2024-01-12 12:54:34 +00:00
5c08d181a4 Merge branch 'main' into ac/ac-1682/ef-migrations 2024-01-12 12:02:14 +00:00
297cc8c8e1 SwaggerUI - persist authorization in dev mode (#3655) 2024-01-12 08:14:12 +10:00
db4d7aa609 [PM-5519] [PM-5526] [PM-5624] [PM-5600] Tweak EF settings for MySQL grant auto-increment (#3662)
* Tweak EF settings for grant auto-increment

* Go back to zero generated default as that doesn't matter

* Explicit value generation callout

* Go with custom SQL for direct automatic increment

* Proper column creation

* Lint
2024-01-11 16:06:29 -05:00
23f9d2261d [PM-5548] Eliminate in-app purchase logic (#3640)
* Eliminate in-app purchase logic

* Totally remove obsolete and unused properties / types

* Remove unused enum values

* Restore token update
2024-01-11 15:26:32 -05:00
96b5278d7c [AC-1682] Removed batching from AllOrgsEnableCollectionEnhancements script 2024-01-11 18:31:47 +00:00
c4ad7d72e8 [AC-1682] Placed temp tables outside transactions 2024-01-11 18:01:11 +00:00
3bf1b53536 [AC-1682] Deleted old data migration scripts 2024-01-11 17:43:39 +00:00
f78e28f037 [AC-1682] Modified data migration script to contain multiple transactions 2024-01-11 16:42:30 +00:00
b9c6e00c2d [PM-5659] Add null check on policy query when building invite link (#3659)
* Added null check on policy query.

* PM-5659 - OrganizationServiceTests.cs - Add test for scenario in which an org has never turned on the RequireSSO policy and it will be null

* dotnet format

---------

Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com>
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2024-01-11 09:58:15 -05:00
ba06076577 [AC-1682] Added data migration script to set FlexibleCollections = 1 for all orgs 2024-01-11 14:41:16 +00:00
68c586f3c7 [AC-1682] Added back batching system to AccessAllCollectionUsers data migration script 2024-01-11 14:40:29 +00:00
8a5ea76d8d [AC-1682] Bumped up the date on data migration scripts 2024-01-11 14:04:51 +00:00
8cc889554d [AC-1682] Updated AccessAllCollectionGroups migration script to use User_BumpAccountRevisionDateByCollectionId 2024-01-11 13:58:45 +00:00
f4450c082c [AC-1682] Update data migration script to only enable collection enhancements for organizations that have not yet migrated 2024-01-11 13:05:46 +00:00
71978fe954 Merge branch 'main' into ac/ac-1682/data-migrations-for-deprecated-permissions 2024-01-11 12:15:40 +00:00
ee43767c84 [AC-1682] Modified AccessAllCollectionUsers script to bump revision date by each OrgUser 2024-01-11 12:15:36 +00:00
a214c60268 Revert "[AC-1682] Deleted old data migration scripts"
This reverts commit 54cc6fab8f.
2024-01-11 11:55:16 +00:00
b829812a3f [AC-2025] Add Organization.FlexibleCollections to database and sprocs (#3642)
* Add Organization.FlexibleCollections property and column

* Add new property to OrganizationAbility

* Add SQL and EF migrations
2024-01-11 13:25:57 +10:00
6fbb790988 use proper Grant entity model for Dapper mapping (#3657) 2024-01-10 14:18:08 -05:00
3392ede534 [BEEEP][SM-1062] Add missing table indexes to EF config (#3628)
* Add missing EF indexes

* Add EF migrations

* move configs

* regenerate migrations
2024-01-10 12:03:16 -06:00
956efbdb39 [PM-2260] Remove TDE feature flag (#3614)
* Remove TDE feature flag.

* Removed references to feature service from decryption options builder.

* Removed redundant references.

* Removed test that is no longer valid, as it was testing the feature flag.

* Removed remainder of TDE feature check.
2024-01-10 12:33:19 -05:00
06d0d933ee Add Entity Framework paths as owned by DbOps (#3654) 2024-01-10 10:52:54 -05:00
54cc6fab8f [AC-1682] Deleted old data migration scripts 2024-01-10 15:29:48 +00:00
0d8609a094 [AC-1682] Added script to migrate all organization data for flexible collections 2024-01-10 15:29:06 +00:00
dfc403243b [AC-1682] Created Organization_EnableCollectionEnhancements to migrate organization data for flexible collections 2024-01-10 15:05:22 +00:00
a6db79f613 [PM-5645] Cosmos DB Grant Storage (#3634)
* table storage grants

* simple shard on storage accounts

* use is not

* cosmos grant repo

* remove single storage connection string

* some fixes to dapper grant repo

* pattern matching

* add fallback to base PersistedGrantStore

* service collection extension cleanup

* cleanup

* remove unused Id

* empty string rowkey

* fix sharding method logic

* ttl for cosmos

* make ttl an int

* fixes to cosmos implementation

* fix partition key values

* catch notfound exceptions

* indenting

* update grantitem with custom serialization

* use new transform helpers

* grantloader perf test tool

* ref

* remove grant loader project

* remove table storage implementation

* remove table storage stuff

* all redis fallback to build to null

* revert sln file change

* EOF new line

* remove trailing comma

* lint fixes

* add grant to names

* move cosmos serilaizer to utils

* add some .net 8 keyed service comments

* EnableContentResponseOnWrite

* Fix type in EF grant repository
2024-01-10 12:59:16 +00:00
8bf17eb198 [AC-1682] Updated data migration scripts to bump the account revision date 2024-01-10 12:34:36 +00:00
fcd2dd380d [AC-1682] Update FC data migration scripts to clear AccessAll flags and set all Managers to Users 2024-01-10 11:34:31 +00:00
03cbc7983b [PM-2730] Add missing hide-passwords permission to api models (#3125)
* Add missing hide-passwords permission to api models

* Update src/Api/Auth/Models/Public/AssociationWithPermissionsBaseModel.cs

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* Rename ToSelectionReadOnly to ToCollectionAccessSelection

* Remove Required attribute which would break backwards compatability

* Update src/Api/Auth/Models/Public/Request/AssociationWithPermissionsRequestModel.cs

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2024-01-09 22:32:14 +01:00
a480bd16e4 [BEEEP] [SM-1060] Add missing tools table indexes to EF config (#3626)
* Add missing indexes

* Add EF migrations
2024-01-09 09:46:45 -06:00
e7ce15fe1d Merge branch 'main' into ac/ac-1682/data-migrations-for-deprecated-permissions 2024-01-09 14:28:19 +00:00
8daa754ecb [deps] Tools: Update aws-sdk-net monorepo to v3.7.300.31 (#3649)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-08 13:36:01 +01:00
c553ec6aa0 [AC-1389] [AC-1919] Only require CanManage permission when admins cannot access all items (#3530)
* move this error behind the Flexible Collections v1 flag instead of MVP
* only enforce this requirement if organization.allowAdminAccessToAllCollectionItems is false

---------

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2024-01-05 11:56:59 +10:00
061253e428 [deps] Tools: Update aws-sdk-net monorepo to v3.7.300.28 (#3536)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-03 13:44:33 +01:00
08d380900b Bumped version to 2024.1.0 (#3632) 2024-01-02 14:39:48 +00:00
ea162d5318 Map Grant_Save object explicitly (#3624) 2023-12-29 12:38:22 -05:00
bfa9269b42 [PM-5294][deps]: Update Duende.IdentityServer to v6.3.7 (#3499)
* [deps]: Update Duende.IdentityServer to v6.3.6

* Fix test

* Grant table changes

* Reassert view

* EF migrations

* Restore non-null key and simpler index

* Master SQL sync

* Lint

* Fix ID setting since the property isn't exposed

* Bump to .7

* Point to new Duende package

* Drop unused indexes first

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2023-12-28 15:04:45 -05:00
de30749628 Update Error Logs to Properly Log Exception (#3603) 2023-12-28 13:50:33 -05:00
be842c762c Revert "Updated minimum version. (#3613)" (#3621)
This reverts commit 2ab35e389c.
2023-12-28 10:45:43 -05:00
e20f533b10 [AC-1985] Fix collection permissions when editing items (#3599)
* Fix broken cipher permissions in UserCipherDetails_V2

* Re-create all sprocs that reference UserCipherDetails_V2
2023-12-28 13:08:03 +10:00
71def39015 [AC-1809] Update OrganizationAbility with Collection Management Settings (#3571)
* feat: Update OrganizationAbility with LimitCollectionCreationDeletion, refs AC-1809

* feat: Update OrganizationAbility constructor usage to pass feature flag state, refs AC-1809

* feat: Update EF retrieval of org abilities to include new property from database, refs AC-1809

* feat: Update sproc to include LimitCollectionCreationDeletion property and create migration, refs AC-1809

* feat: Inject ApplicationCache into handler accessing LimitCollectionCreationDeletion, refs AC-1809

* feat: remove collection management settings from CurrentContextOrganization and update tests, refs AC-1809

* feat: add AllowAdminAccessToAllCollectionItems to OrganizationAbility pipeline, refs AC-1809

---------

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2023-12-28 10:07:06 +10:00
2ab35e389c Updated minimum version. (#3613) 2023-12-27 12:26:42 -05:00
fbc25f3317 amend: i changed all var keywords to let, i removed asp-for duplicates and i introduced i0,i1,12 variables to store the current value of the loop counter variable i at different points within the loop (#3100)
Co-authored-by: Chukwuma Akunyili <56761791+ChukwumaA@users.noreply.github.com>
Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2023-12-27 10:39:33 -05:00
1f8e2385db Wire up code coverage (#3618) 2023-12-27 10:36:20 -05:00