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

3692 Commits

Author SHA1 Message Date
b367ff4dea [EC-427] Added missing GO action to migration script 2023-01-12 15:58:28 +00:00
63f329a3d2 Merge branch 'EC-427-create-provider-types-msp-reseller-server-database' of https://github.com/bitwarden/server into EC-427-create-provider-types-msp-reseller-server-database 2023-01-12 15:30:50 +00:00
36d1fa07db [EC-427] Add missing Provider_Update sproc default value 2023-01-12 15:30:40 +00:00
e5595a9d05 Merge branch 'master' into EC-427-create-provider-types-msp-reseller-server-database 2023-01-12 13:01:45 +00:00
ebc9536484 [EC-427] Added sqlite migration 2023-01-12 13:01:22 +00:00
260f816544 [EC-427] Fixed migration script 2023-01-12 12:31:52 +00:00
65a8fad549 [EC-427] Updated Provider sprocs SQL script files 2023-01-12 12:21:26 +00:00
6a0137e9fc [EC-427] Adjusting metadata in migration script 2023-01-12 12:16:35 +00:00
41fb27d929 [EC-427] Added default values for 'BillingPhone' and 'Type' fields on sprocs [dbo].[Provider_Create] and [dbo].[Provider_Update] 2023-01-12 12:11:26 +00:00
d106d48d5c [EC-427] Changed migration script to use 'Create OR Alter' for views and sprocs 2023-01-12 12:10:22 +00:00
fd605dc690 [EC-427] Updated Sql project Provider table script 2023-01-11 14:51:00 +00:00
40fca094a2 [EC-427] Changed migration script to include a default value constraint instead of updating the null type 2023-01-11 14:43:56 +00:00
503630497e [PS-2185] Update defaults for SQL Server to trust the server certificate (#2563)
* Update defaults for SQL Server to trust the server certificate

* Use an explicit
2023-01-10 17:13:33 -05:00
df2edcfb8c Migrate to Microsoft.Data.SqlClient (#2548) 2023-01-10 15:58:41 -05:00
4c6354cd5b Bump version to 2023.1.0 (#2562)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2023-01-10 13:11:56 -07:00
145071d499 Remove EF migration scripts (#2550)
* Removed Scripts folders

* Removed .csproj references.

* Added back HelperScripts

* Added back additional helper scripts.

* Fixed extra ItemGroup
2023-01-10 13:46:19 -05:00
ea9e30c35f Upload and process test results as an artifact and report (#2555) 2023-01-10 10:58:19 -05:00
97b5a7e55d add sqlite migrations for avatar color (#2543)
* add sqlite migrations for avatar color

* lint fix
2023-01-10 07:50:34 -05:00
e7958609b6 [PS 2020] Fixing value cannot be null, parameter source (#2554)
* Fixing value cannot be null, parameter source

* Running the dotnet format -v diag
2023-01-09 14:51:34 +01:00
b1dfbe7519 [SM-412] Remove postgres timezone legacy behavior (#2547) 2023-01-09 11:53:47 +01:00
452891b39e Upgrade to the latest System.Data.SqlClient (#2546) 2023-01-06 14:36:12 -05:00
e800219d73 change unified to debian images (#2514)
* change to debian images

* add back sqlite connectionstring

* add back sqlite connection string

* Update docker-unified/entrypoint.sh

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>

* Update docker-unified/entrypoint.sh

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>

* update settings

* uid requires #

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2023-01-05 09:27:28 -05:00
3e07d0bd32 Fix Inactive two-step login check (#2523)
It looks like 2fa.directory has changed it's API endpoint.
According to https://2fa.directory/api/ it now uses `api.2fa.directory` instead of `2fa.directory/api`.

This PR fixes the URL's where needed.
A fix for the client side is also created.
2023-01-03 19:57:53 +01:00
aa1f443530 [SG-58] Avatar color selector (#2330)
* chore: backend work

* changed typing to match efc

* Update User_Update.sql

* fix: script cleanup

* fix: adjust max length

* fix: adjust max length

* fix: added missing script changes

* fix: use short form for creating objects

* add: mysql migrations

* chore: add mysql script

* chore: posgres migrations

* chore: postgres migrations

* fix: lint

* Update 20221115034053_AvatarColor.cs

* fix: removed gravatar inline (#2447)

Co-authored-by: Todd Martin <tmartin@bitwarden.com>
Co-authored-by: Todd Martin <106564991+trmartin4@users.noreply.github.com>
2023-01-01 11:28:59 -05:00
90ef8d863a Remove deprecated workflow (#2525) 2022-12-30 13:52:48 -06:00
c2fe3e4949 [EC-277] Remove SHA-1 encryption from SSO Outbound and Minimum Signing Algorithm lists (#2509) 2022-12-29 12:38:31 +00:00
bc85cbe381 add support for BW_DB_PORT (#2520) 2022-12-27 12:15:09 -05:00
a1c62222a7 [EC-427] Removed default value from Provider.Type column 2022-12-27 13:57:20 +00:00
278783223b [EC-427] Updated Provider sql script to include default column value 2022-12-27 11:40:08 +00:00
88e854f1ac [EC-427] Add mysql migration script 2022-12-27 11:22:09 +00:00
b5bb8e228e [EC-427] Add mysql migration script 2022-12-27 10:40:34 +00:00
de1af22c0b [EC-427] Provider table Type and BillingPhone Postgres migrations 2022-12-27 10:27:52 +00:00
3814b601b9 [EC-427] Provider table Type and BillingPhone MySql migrations 2022-12-26 17:04:17 +00:00
81027a6bc1 [EC-427] Add columns 'Type' and 'BillingPhone' to Provider table 2022-12-26 17:03:24 +00:00
c39fb8f7af update ef core libraries (#2515)
* update ef core libraries

* lock file updates
2022-12-25 20:49:14 -05:00
481ce38934 Fix failing ACR purge workflow (#2511)
* Fix failing ACR purge workflow

* Coment out prod for testing

* Enable prod after testing
2022-12-21 17:47:23 +01:00
a8aeadd138 add support for unified sqlite config (#2513) 2022-12-21 11:23:17 -05:00
4adc4b0181 [EC-758] Add environment variable to enforce SSO Policy for all users (#2428)
* [EC-758] Add environment variable GlobalSettings.Sso.EnforceSsoPolicyForAllUsers to enforce SSO Policy for all users

* [EC-758] Add integration tests

* [EC-758] Add Entities namespace to resolve ambiguous reference

* [EC-758] dotnet format

* [EC-758] Updated integration tests to check for logins with all user types

* [EC-758] Create new TestServer for each test

* [EC-758] Combine unit tests and refactor to use BitAutoData
2022-12-20 13:08:29 +00:00
d60746d9b1 Add Billing Into Server CI Workflow (#2478) 2022-12-20 12:09:17 +01:00
152450d53a Add SQLite migration project to solution (#2504) 2022-12-16 17:13:47 -05:00
a791f93051 Defect/SG-825 - users in org w/ no personal vault still see personal vault (disabled org policies now still apply) (#2429)
* SG-825 - Policy_ReadByUserId stored proc now pulls back policies of disabled orgs

* SG-825 - SyncController - Always retrieve policies -- even if orgs are disabled.

* SG-825 - EF - PolicyReadByUserId - autoformat to remove whitespace and pass eslint build error
2022-12-16 15:22:39 -05:00
9ce6ee443b Fixed null issue when an organization key does not exist (#2501) 2022-12-15 13:11:27 -05:00
7cbc4a8970 Add Sqlite as EF DB provider (#2487)
* Add Sqlite as EF DB provider

Note: In-memory sqlite does not work across projects, since the migrator
only runs on the Admin project

Co-authored-by: Justin Baur <justindbaur@users.noreply.github.com>

* Include example sqlite connection string

* Add migrator assembly to sqlite connection

* Update initial migration to current schema state

* dotnet format 🤖

* Update package locks

* Respect name set in BW_SSL_KEY for cert generation (#2490)

(cherry picked from commit 2469e10110)

* [PS-2016] Add ability to change UID/GID for Bitwarden unified (#2495)

(cherry picked from commit c6fbe8cc44)

* Add SqliteMigrations project to unified Dockerfile

Co-authored-by: Justin Baur <justindbaur@users.noreply.github.com>
Co-authored-by: accolon <mail@accolon.net>
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2022-12-14 08:28:51 -06:00
16ad5db418 [SG-859] Key and MasterPasswordHash stored on AuthRequest when you deny login request (#2469)
* [SG-856] Remove nullable from RequestApproved property

* [SG-856] Assign key and hash only if approved
2022-12-13 21:50:53 +00:00
a504364e91 Bumped version to 2022.12.0 (#2497)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-13 14:35:22 -06:00
456cc6773e Fix bug #2317: add deletion date validation for file Sends (#2342)
Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
2022-12-13 20:30:01 +01:00
c6fbe8cc44 [PS-2016] Add ability to change UID/GID for Bitwarden unified (#2495) 2022-12-13 10:31:19 -05:00
2469e10110 Respect name set in BW_SSL_KEY for cert generation (#2490) 2022-12-13 08:56:03 -05:00
e340cba8fc [SG-823] Undid changes to capture device push token on login (#2427)
* Revert "Set Id property on existing devices so we don't try to create a new one instead of updating existing. (#2420)"

This reverts commit 02e4b10ae8.

* Revert "Update push token on login to allow multiple users on mobile devices (#2404)"

This reverts commit 24469e2267.

* Added back test changes.
2022-12-12 15:51:41 -05:00
e042360c00 [EC-654] Create commands for Group Create and Group Update (#2442)
* [EC-654] Add CreateGroupCommand and UpdateGroupCommand

Added new CQRS commands CreateGroupCommand and UpdateGroupCommand
Updated GroupService to use new commands
Edited existing GroupServiceTests and added new tests for the new commands

* [EC-654] dotnet format

* [EC-654] Replace GroupService.SaveAsync with CreateGroup and UpdateGroup commands

* [EC-654] Add assertions to check calls on IReferenceEventService

* [EC-654] Use AssertHelper.AssertRecent for DateTime properties

* [EC-654] Extracted database reads from CreateGroupCommand and UpdateGroupCommand. Added unit tests.

* [EC-654] Changed CreateGroupCommand and UpdateGroupCommand Validate method to private
2022-12-12 09:59:48 +00:00