1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
Commit Graph

3849 Commits

Author SHA1 Message Date
André Bispo
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
github-actions[bot]
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
Alena N
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
Vince Grassia
c6fbe8cc44
[PS-2016] Add ability to change UID/GID for Bitwarden unified (#2495) 2022-12-13 10:31:19 -05:00
accolon
2469e10110
Respect name set in BW_SSL_KEY for cert generation (#2490) 2022-12-13 08:56:03 -05:00
Todd Martin
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
Rui Tomé
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
Vince Grassia
9ca93381ce
Allow changing default NGINX port in unified (#2484) 2022-12-08 17:10:49 -05:00
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