1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00
Commit Graph

4604 Commits

Author SHA1 Message Date
bd3b21b969 [AC-1682] Reverted scripts back to enabling Flexible Collections to all existing Orgs 2024-04-03 11:25:03 +01:00
f98646a722 Merge branch 'main' into ac/ac-1682/ef-migrations 2024-04-03 11:08:06 +01:00
88f34836f2 Event processor tuning (#3945) 2024-04-02 15:45:18 -04:00
a048d6d9e3 [AC-1795] Provide extra subscription info when past due (#3950)
* Provide past due data on subscription

* Add feature flag
2024-04-02 13:21:40 -04:00
48da6eba1c [PM-3891] Remove the dollar threshold changes and Implement time-based threshold (#3948)
* implement time threshold

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* add code to make failed payment is tried

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
Co-authored-by: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com>
2024-04-02 17:36:53 +01:00
f0b7074219 Propagate org status from selfhost model (#3930) 2024-04-02 09:29:41 -04:00
a39a498790 Prevent NRE for missing upcoming invoice when sub is pending cancelation (#3920) 2024-04-02 09:28:57 -04:00
b9049cd699 [deps] DbOps: Update Dapper to v2.1.35 (#3947)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 09:46:58 -04:00
2f9daf2149 Update response code (#3949) 2024-04-01 09:13:55 -04:00
66593297b9 [deps] Billing: Update Serilog.Sinks.SyslogMessages to v3.0.2 (#3946)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 08:46:25 -04:00
7dfd2821f1 Merge branch 'ac/ac-2323/sql-automatic-data-migrations' into ac/ac-1682/ef-migrations 2024-04-01 10:23:27 +01:00
10d132aa22 [deps] DbOps: Update Microsoft.Data.SqlClient to v5.2.0 (#3944)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-29 13:50:24 -04:00
d46527899e Remove DocumentDB settings placeholders (#3943) 2024-03-29 13:28:16 -04:00
97c4d839e0 [BEEEP][SM-893] Add the ability to run SM integration tests as a service account (#3187)
* Add the ability to run SM integration tests as a service account
2024-03-29 11:00:30 -05:00
e2cb406a95 [AC-1910] Allocate seats to a provider organization (#3936)
* Add endpoint to update a provider organization's seats for consolidated billing.

* Fixed failing tests
2024-03-29 11:18:10 -04:00
fada0a81bf [AC-1682] Fix Sqlite query 2024-03-29 14:53:40 +00:00
c3ca9ec3c8 [AC-1682] Fixed Postgres query 2024-03-29 14:25:41 +00:00
deee483ab7 [AC-1682] Fixed MySql script 2024-03-29 14:17:15 +00:00
a957530d5e [AC-1682] Updated queries to check for OrganizationId 2024-03-29 14:10:57 +00:00
28bba94d81 [AC-1682] Setting FlexibleCollections = 1 only for Orgs that had data migrated in previous steps 2024-03-29 12:13:04 +00:00
7b54d78d67 [AC-1682] Removed MySql transaction from script because EF migration already wraps it under its own transaction 2024-03-29 12:03:29 +00:00
c20912f95c [AC-1682] Drop temp tables if they exist when starting the scripts 2024-03-29 12:00:24 +00:00
c53e5eeab3 [PM-6762] Move to Azure.Data.Tables (#3888)
* Move to Azure.Data.Tables

* Reorder usings

* Add new package to Renovate

* Add manual serialization and deserialization due to enums

* Properly retrieve just the next page
2024-03-28 16:36:24 -04:00
26f5bf8afd [AC-1682] Fixed Sqlite query 2024-03-28 14:50:02 +00:00
ffd988eeda [AC-1904] Implement endpoint to retrieve Provider subscription (#3921)
* Refactor Core.Billing prior to adding new logic

* Add ProviderBillingQueries.GetSubscriptionData

* Add ProviderBillingController.GetSubscriptionAsync
2024-03-28 08:46:12 -04:00
46dba15194 [deps] Tools: Update aws-sdk-net monorepo to v3.7.300.63 (#3933)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 10:04:31 +01:00
728d49ab5d [AC-1724] Remove BulkCollectionAccess feature flag (#3928) 2024-03-28 08:08:35 +10:00
a390fcafaf Adjust scan permissions (#3931) 2024-03-27 12:35:24 -04:00
2790687dc2 [PM-6938] Allow certain database operations to be skipped (#3914)
* Centralize database migration logic

* Clean up unused usings

* Prizatize

* Remove verbose flag from Docker invocation

* Allow certain database operations to be skipped

* Readonly
2024-03-27 11:20:54 -04:00
5355b2b969 [deps] Tools: Update aws-sdk-net monorepo to v3.7.300.61 (#3925)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-26 09:50:47 +01:00
4c1d24b10a Use static property for JsonSerializerOptions (#3923) 2024-03-26 08:34:55 +10:00
f131004c55 [AC-2323] Fixed typo 2024-03-25 21:39:52 +00:00
73d455b93d [AC-2323] Fix script comment 2024-03-25 21:39:00 +00:00
71f574f9c4 Merge branch 'ac/ac-2323/sql-automatic-data-migrations' into ac/ac-1682/ef-migrations 2024-03-25 21:28:32 +00:00
6651bb1324 [AC-2323] Overriding FlexibleCollectionsSignup to true for local usage 2024-03-25 21:24:12 +00:00
5237b522e5 [deps] Billing: Update Stripe.net to v43.20.0 (#3867)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com>
2024-03-25 12:47:15 -04:00
1de0f32f6e [AC-2323] Added script to migrate all sql organizations to use flexible collections 2024-03-25 16:16:56 +00:00
00eea0621c [AC-1682] dotnet format 2024-03-25 15:28:46 +00:00
262887f9c3 [AC-1682] Added Sqlite migration and script 2024-03-25 15:22:17 +00:00
1a066d886c [AC 2261] Emails - direct Secrets Manager members to Secrets Manager product (#3896)
* remove the unwanted test

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* initial commit

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* changes to the sm redirect

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* revert the sm changes for join org

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2024-03-25 15:33:30 +01:00
c5d5de0aed [AC-2334] Fix unable to load members when permissions is "null" (#3922)
* Also add xmldoc comment to CoreHelpers.LoadClassFromJsonData to warn about this
2024-03-25 14:26:12 +00:00
fd71ed8584 [DEVOPS-1218] Add dryrun mode to MsSqlMigratorUtility (#3795)
* Add dryrun mode to MsSqlMigratorUtility

* Fix

* Update util/MsSqlMigratorUtility/Program.cs

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>

* Update util/MsSqlMigratorUtility/Program.cs

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>

* Update util/MsSqlMigratorUtility/Program.cs

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>

* Fixes

* Fix using

* Format

* Update util/MsSqlMigratorUtility/Program.cs

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>

* Fixes

* Fix after merge

* Fix

* Fix

* Remove unnecessary param name

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-03-25 10:22:02 -04:00
03fe077ec8 Bumped version to 2024.3.1 (#3926) 2024-03-25 14:16:15 +00:00
9bde1604da [AC-1682] Added Postgres migration and script 2024-03-25 13:59:28 +00:00
6a0f6e1dac [PM-2383] Bulk collection assignment (#3919)
* [PM-2383] Add bulk add/remove collection cipher repository methods

* [PM-2383] Add additional authorization helpers for CiphersControlle

* [PM-2383] Add /bulk-collections endpoint to CiphersController.cs

* [PM-2383] Add EF implementation for new CollectionCipherRepository methods

* [PM-2383] Ensure V1 logic only applies when the flag is enabled for new bulk functionality
2024-03-22 13:16:34 -07:00
5dd1a9410a [AC-1864] Event type for initiation path (#3869)
* initial commit

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* handle the upgrade path reference

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* code improvement

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* resolve pr comment

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* change the comment

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* move the private method down

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* code review changes

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2024-03-22 21:01:22 +01:00
d367f6de6b [AC-1682] Added MySql migration and script 2024-03-22 15:58:07 +00:00
d6f7d94b22 [AC-1682] Removed Sqlite migrations and scripts 2024-03-22 15:46:31 +00:00
bb00cb4e59 [AC-1682] Removed Postgres scripts and migrations 2024-03-22 15:45:59 +00:00
5383cd16fb [AC-1682] Removed MySql scripts and migrations 2024-03-22 15:41:06 +00:00