1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00
Commit Graph

3641 Commits

Author SHA1 Message Date
Shane Melton
328c2ca21c
[EC-812] Fix broken EF update user groups query (#2479) 2022-12-08 07:41:46 -08:00
Daniel James Smith
6ef1863ad8
[PS-1980] Create issue template for Bitwarden Unified (#2474)
* Clean up and name Server Bug report

* Create issue template for Bitwarden Unified

* Update .github/ISSUE_TEMPLATE/bw-unified.yml

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>

* Update Docker compose details to just be database image

* Change Label

* Add Link to Epic

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2022-12-07 16:26:43 -05:00
Michał Chęciński
d4bb3c30b5
Create Dockerfile for Billing (#2477)
* build script for billing

* Add entrypoint script

* Add dockerfile and docker ignore
2022-12-07 09:51:25 +01:00
Rui Tomé
fe59186c96
[EC-584] Add TryParse to ClientVersion due to QA builds having an appended git hash (#2395)
* [EC-584] Add TryParse to ClientVersion due to QA builds having an appended git hash

* [EC-584] Add string.Split to only get 'ClientVersion' number when the input value includes the git hash

* Revert "[EC-584] Add string.Split to only get 'ClientVersion' number when the input value includes the git hash"

This reverts commit 9ebad69c6a.

* [EC-584] Update client version check to 2022.12

* [EC-584] Inverted check on ClientVersion

* [EC-584] Bumped version check to version 2023.01

* [EC-584] Removed the 0 prefix from the client version check
2022-12-06 15:35:05 +00:00
Michał Chęciński
f173988979
Remove DCT bypass for scim (#2451) 2022-12-06 09:48:55 -05:00
Rui Tomé
ae280a313c
[EC-343] Gate custom permissions behind enterprise plan (#2352)
* [EC-343] Added column 'UseCustomPermissions' to Organization table

* [EC-343] Added 'UseCustomPermissions' to Api responses

* [EC-343] Added 'UseCustomPermissions' to Admin view

* [EC-343] Add constraint to Organization table to have default UseCustomPermissions value

* [EC-343] Recreate OrganizationView to include UseCustomPermissions column

* [EC-343] Add MySql EF migrations

* [EC-343] Add Postgres EF migrations

* Revert "[EC-343] Add Postgres EF migrations"

This reverts commit 8f1654cb7d.

* [EC-343] Add Postgres migrations and script

* [EC-343] dotnet format

* [EC-343] Set 'Custom Permissions' feature as unchecked for teams plan

* [EC-343] Add CustomPermissions to plan upgrades

* [EC-343] Update CURRENT_LICENSE_FILE_VERSION

* [EC-343] Enable 'Custom Permissions' on Enterprise 2019 plan

* [EC-343] Updated migration script to include Enterprise 2019 plan

* [EC-343] Update CURRENT_LICENSE_FILE_VERSION to 10

* [EC-343] Move logic checking if Organization can use custom permissions to OrganizationService

* [EC-343] Add unit tests to validate UseCustomPermissions check

* [EC-343] Revert UseCustomPermissionsFlag migration

* [EC-343] Fix typo in OrganizationUserOrganizationDetailsViewQuery

* [EC-343] Add Postgres migrations without affecting other datetime column

* [EC-343] Create ValidateOrganizationCustomPermissionsEnabledAsync. Add more unit tests around CustomPermissions check

* [EC-343] Add curly brackets to if condition

* [EC-343] Rename unit tests
2022-12-06 09:50:08 +00:00
Alexander Schreiner
e0f37e514e
[PS-1992] Updating broken link to Server Setup Guide (#2476) 2022-12-06 10:42:25 +01:00
Kyle Spearrin
3fd7bda65b
default to beta tag in example file (#2472) 2022-12-05 20:43:57 -05:00
Vince Grassia
a98a5d8dc6
Remove 'rc-2022.12' logic (#2475) 2022-12-05 20:24:44 -05:00
Justin Baur
c25ef0be5c
[PS-1930] Fix UpdateCollectionsForAdminAsync (#2473)
* Fix UpdateCollectionsForAdminAsync

* Formatting
2022-12-05 13:59:11 -05:00
Opeyemi
f3b4363440
update ::set-output to latest (#2470)
* update ::set-output to latest

* update workflow for linter error
2022-12-05 16:12:42 +00:00
Kyle Spearrin
a6a5a734c2
check enable flags for different nginx service (#2461) 2022-12-05 10:13:53 -05:00
Justin Baur
9ce37e1eb5
[PS-1938] Fix EF Password Reprompt (#2468)
* Return Reprompt Property

* Return from CipherDetails
2022-12-04 22:15:12 -05:00
Justin Baur
c39736c583
Fix AccountRevisionDate (#2467)
* Update AccountRevisionDate directly by userId
* Have special DateTime handling on postgres
2022-12-04 21:40:20 -05:00
Justin Baur
3a201e7520
[PS-1961] Fix Admin Email Search (#2466) 2022-12-02 22:21:13 -05:00
Justin Baur
8ea3ae0b07
[PS-1948] Fix Group Collections Update (#2465) 2022-12-02 22:19:14 -05:00
Justin Baur
609f3adb7b
[PS-1928] Fix Organization Delete (#2464) 2022-12-02 21:01:09 -05:00
Justin Baur
85e75c43b5
[PS-1928] Fix User Delete (#2463)
* Fix User Delete

* Formatting
2022-12-02 19:35:26 -05:00
Justin Baur
1652669667
[PS-1928] Cipher Collections Fix (#2462)
* Simplify UpdateCollectionsAsync

* Make final JOIN a LEFT JOIN
2022-12-02 17:04:01 -05:00
Justin Baur
efe91fd0d8
[PS-1928] Add BumpAccountRevisionDate methods (#2458)
* Move RevisionDate Bumps to Extension Class

* Add Tests against live databases

* Run Formatting

* Fix Typo

* Fix Test Solution Typo

* Await ReplaceAsync
2022-12-02 14:24:30 -05:00
Kyle Spearrin
41db511872
cast Min function values to int (#2459) 2022-12-02 13:55:51 -05:00
github-actions[bot]
a0ab60f984
Bumped version to 2022.11.1 (#2457)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-12-01 14:33:03 -08:00
Vince Grassia
a26e9a168e
Change rc-2022.12 tag to beta (#2456) 2022-12-01 16:23:43 -05:00
Vince Grassia
c8b5f0a905
Fix PostgreSQL compatible version and MSSQL data volume path (#2454) 2022-12-01 14:01:18 -05:00
Justin Baur
8718f22ab2
[PS-1909] Make LicenseKey check null safe (#2444)
* Make LicenseKey check null safe

* Catch Exception during Organization Validation

* Use null-safe check in UpdateLicense

* Formatting
2022-11-30 08:40:12 -05:00
André Bispo
297f0c8b38
[SG-856] Remove nullable from RequestApproved property (#2448) 2022-11-29 12:49:42 +00:00
Vince Grassia
447066e417
Enable DCT (#2446) 2022-11-28 22:02:33 -05:00
Gbubemi Smith
f74730dd2f
[SG-841] Refactor GetOrganizationApiKeyCommand (#2436)
* Renamed and split up class to only query for an organization key

* Added a command class to create an organization api key

* Updated service registration and controller to include new changes

* Updated test cases to reflect refactor

* fixed lint issues

* Fixed PR comment
2022-11-28 19:39:09 -05:00
github-actions[bot]
5bcacf785f
Bumped version to 2022.11.0 (#2445)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2022-11-28 11:19:27 -05:00
Kyle Spearrin
4c5b773387
proper alpine binaries for hbs tool (#2441) 2022-11-24 13:16:18 -05:00
Matt Gibson
0bcd8d0b41
Ps 1904 (#2439)
* Add self host notification launch settings

* Exclude current context from push for password updates

This is needed to allow the current context to process a key
rotation if one is being done.

Does not change any other call to `PushLogOut`.

* Revert inverted exclude logic

This exclude is referring to exempting the requesting client
from the notification push.
2022-11-24 17:25:16 +01:00
Joseph Flinn
691c5a9e98
Enable publishing self-host rc-2022.12 (#2440) 2022-11-23 19:04:19 -06:00
Joseph Flinn
2277625e74
Update self host release branches (#2438)
* Abstract the publishing branch logic (to make it easier to add/remove custom branches)

* Fix the conditional syntax

* Another try to fix the conditional syntax

* Updating the publish branch logic

* Wow...it's been a while since I've written Actions

* test the reverse of the publish branch check

* Trying again

* Another test

* Actions uses single quotes...

* retest the publish check if the branch actually is correct

* Switching to using the ENV instead of outputs

* test no publish branch

* Switch all of the publish conditionals and remove the testing code

* Remove more test code
2022-11-23 15:47:57 -07:00
Vince Grassia
52144c5bf9
Fix Build Self-Host workflow (#2437) 2022-11-23 10:48:09 -08:00
Kyle Spearrin
93afa93b85
change confd to hbs for unified docker templates (#2434)
* change confd to hbs tool

* use new repo owner
2022-11-23 12:48:34 -05:00
Vince Grassia
0795545fb8
Update Unified Self-Host Build Workflow (#2432) 2022-11-23 07:21:22 -08:00
Kyle Spearrin
41ee3d4c69
CSA-29: Time safe comparison for access code (#2431)
* time safe comparison for access code

* remove whitespace
2022-11-22 15:32:21 -05:00
Rui Tomé
d8834793b5
Revert change on EF CipherRepository (#2426) 2022-11-21 14:25:28 +00:00
Kyle Spearrin
68bb545353
PS-1806 fix boolean logic with UserCollectionDetailsQuery query (#2424)
* fix logic in user collection details query

* remove pragma

* remove pragma
2022-11-18 14:44:59 -05:00
Vince Grassia
194dfe7e14
Bitwarden Unified Self-Host project (#2410) 2022-11-18 14:39:01 -05:00
Kyle Spearrin
3481fd76c1
add null check logic from ea view (#2423) 2022-11-18 14:37:05 -05:00
Kyle Spearrin
47c8f043e1
PS-1806 - fix joins on some ef queries (#2421)
* fix joins on some ef queries

* fix formatting
2022-11-18 11:17:46 -05:00
Todd Martin
02e4b10ae8
Set Id property on existing devices so we don't try to create a new one instead of updating existing. (#2420) 2022-11-18 10:22:07 -05:00
Vince Grassia
3bece3c3ad
Add Build Self-Host workflow stub (#2417) 2022-11-16 13:47:25 -05:00
André Bispo
7eb7457b58
[SG-816] Fix sp call (#2416) 2022-11-16 17:15:20 +00:00
Todd Martin
24469e2267
Update push token on login to allow multiple users on mobile devices (#2404)
* Changed query for device to include userId

(cherry picked from commit 5e3f6db64b)

* Refactored push registration to allow notification on multiple clients

(cherry picked from commit 75d299ae269eeb8ac272c96458815a359ea6d085)

* Linting

(cherry picked from commit f1cf54ebef2019743834f667861f9b34c1661e11)

* Fixed compile error.

* Removed class that I created when refactoring.

* Removed references to PushNotification from DeviceService tests.

* Refactored to not pass back a result on Save

* Refactored to send requestDevice to push notifications.

* Fixed whitespace.

* Added missing Noop services.

(cherry picked from commit bdad6cfadaf2779c2e672027122c95ea64e3cf0b)

* Linting.

* Refactored to put the push token back in SaveAsync.

* Removed constructor parameter.

* Added back in ClearTokenAsync to reduce risk.

* Updated tab for linting.
2022-11-16 15:30:28 +00:00
Todd Martin
aa952e11df
Changed query for device to include userId (#2415)
(cherry picked from commit 5e3f6db64b)
(cherry picked from commit 19916a0dcf)
2022-11-16 10:29:09 -05:00
Rui Tomé
c377a50b9d
[EC-756] Add missing EF scripts to add new 'Events' table 'SystemUser' column (#2414)
* [EC-756] Add missing Postgres migration script

* [EC-756] Add missing MySQL migration script
2022-11-16 07:59:30 +00:00
André Bispo
abaa084d01
[SG-778] Add ResponseDate and make nullables (#2412) 2022-11-15 14:17:42 +00:00
Todd Martin
30efd80684
Updated environment for Prod Github Deployment to not specify service name (#2392)
* Updated environment for deployments to not specify service name.

* Fixed linting errors.

(cherry picked from commit b40b0f57cc)

* Undid changes to QA deployment.  This will be moved to the devops repo so no changes here are necessary.
2022-11-14 20:21:06 -05:00