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

4366 Commits

Author SHA1 Message Date
1e2a15db8f [AC-1682] Bumping each modified groups RevisionDate 2024-01-23 14:20:53 +00:00
0144c25799 [AC-1682] Simplified inner queries 2024-01-23 14:12:35 +00:00
7dbb9e6c8d Merge branch 'ac/ac-1682/data-migrations-for-deprecated-permissions' of https://github.com/bitwarden/server into ac/ac-1682/data-migrations-for-deprecated-permissions 2024-01-22 14:52:06 +00:00
ea244df223 [AC-1682] Renamed aliases 2024-01-22 14:52:00 +00:00
6579ede142 Update src/Sql/dbo/Stored Procedures/Organization_EnableCollectionEnhancements.sql
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2024-01-22 13:05:00 +00:00
6a519b9180 [AC-1682] Combining all updated OrganizationUserIds to bump all revision dates at the same time 2024-01-18 16:32:14 +00:00
160fc3edd0 [AC-1682] Modified data migration script to have just one big transaction 2024-01-18 16:07:15 +00:00
95977b1263 [AC-1682] Added missing where clause 2024-01-17 19:21:15 +00:00
e651d1f709 [AC-1682] Refactor stored procedure to enable collection enhancements 2024-01-17 16:40:17 +00:00
d1a8720a3e [AC-1682] Removed bulk data migration script 2024-01-17 13:42:26 +00:00
7a8cbd6dd8 Merge branch 'main' into ac/ac-1682/data-migrations-for-deprecated-permissions 2024-01-17 13:31:21 +00:00
96f9fbb951 [AC-2027] Update Flexible Collections logic to use organization property (#3644)
* Update optionality to use org.FlexibleCollections

Also break old feature flag key to ensure it's never enabled

* Add logic to set defaults for collection management setting

* Update optionality logic to use org property

* Add comments

* Add helper method for getting individual orgAbility

* Fix validate user update permissions interface

* Fix tests

* dotnet format

* Fix more tests

* Simplify self-hosted update logic

* Fix mapping

* Use new getOrganizationAbility method

* Refactor invite and save orgUser methods

Pass in whole organization object instead of using OrganizationAbility

* fix CipherService tests

* dotnet format

* Remove manager check to simplify this set of changes

* Misc cleanup before review

* Fix undefined variable

* Refactor bulk-access endpoint to avoid early repo call

* Restore manager check

* Add tests for UpdateOrganizationLicenseCommand

* Add nullable regions

* Delete unused dependency

* dotnet format

* Fix test
2024-01-17 12:33:35 +00:00
ef37cdc71a [deps] Billing: Update Braintree to v5.23.0 (#3678)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 15:47:26 -05:00
f09bc43b04 [deps] Billing: Update BenchmarkDotNet to v0.13.12 (#3677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 15:46:22 -05:00
dca8d00f54 Bumped version to 2024.1.2 (#3674) v2024.1.2 2024-01-16 17:02:24 +00:00
40d5e6ac73 Bumped version to 2024.1.1 (#3673) 2024-01-16 14:39:33 +00:00
b97a1a9ed2 [PM-5519] [PM-5526] [PM-5624] [PM-5600] More Grant SQL fixes (#3668)
* SQLite scripts to apply autoincrementing Id key

* Drop erroneous Id column if created
2024-01-16 09:08:55 -05:00
c12c09897b Remove Renovate .NET constraint (#3670) 2024-01-16 09:08:09 -05:00
52f3fa0f95 Make billing email field uneditable for organizations' (#3591)
Co-authored-by: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com>
2024-01-16 08:38:20 -05:00
2df5fe1340 [deps] SM: Update EntityFrameworkCore to v7.0.15 (#3666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 16:30:23 -07:00
da907c879b [deps] SM: Update Dapper to v2.1.28 (#3665)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 16:18:05 -05:00
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
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
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