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

247 Commits

Author SHA1 Message Date
mimartin12
2c584da7b6
Update version-bump.yml (#2879) 2023-04-25 10:41:16 -06:00
Vincent Salucci
9a1a369472
[AC-1201] refactor: move all SCIM related files into the AdminConsole scope (#2841)
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2023-04-19 09:31:00 +10:00
Daniel James Smith
4e7b9d2edd
[PM-328] Move files for team-tools (#2857)
* Extract Import-Api endpoints into separate controller

Moved ciphers/import and ciphers/import-organization into new ImportController
Paths have been kept intact for now (no changes on clients needed)
Moved request-models used for import into tools-subfolder

* Update CODEOWNERS for team-tools-dev

* Move HibpController (reports) to tools

* Moving files related to Send

* Moving files related to ReferenceEvent

* Removed unneeded newline
2023-04-18 14:05:17 +02:00
Opeyemi
62c8b4c77d
[DEVOPS-1259] reupdate CI-only KV SP (#2858)
* reupdate CI-only KV SP

* add some edits
2023-04-17 18:03:32 +01:00
Opeyemi
972a500745
[DEVOPS-1259]Update pipeline to CI only KV (#2854)
* Update pipeline to CI only KV
2023-04-17 14:06:57 +01:00
Jake Fink
88dd745070
[PM-1188] Server owner auth migration (#2825)
* [PM-1188] add sso project to auth

* [PM-1188] move sso api models to auth

* [PM-1188] fix sso api model namespace & imports

* [PM-1188] move core files to auth

* [PM-1188] fix core sso namespace & models

* [PM-1188] move sso repository files to auth

* [PM-1188] fix sso repo files namespace & imports

* [PM-1188] move sso sql files to auth folder

* [PM-1188] move sso test files to auth folders

* [PM-1188] fix sso tests namespace & imports

* [PM-1188] move auth api files to auth folder

* [PM-1188] fix auth api files namespace & imports

* [PM-1188] move auth core files to auth folder

* [PM-1188] fix auth core files namespace & imports

* [PM-1188] move auth email templates to auth folder

* [PM-1188] move auth email folder back into shared directory

* [PM-1188] fix auth email names

* [PM-1188] move auth core models to auth folder

* [PM-1188] fix auth model namespace & imports

* [PM-1188] add entire Identity project to auth codeowners

* [PM-1188] fix auth orm files namespace & imports

* [PM-1188] move auth orm files to auth folder

* [PM-1188] move auth sql files to auth folder

* [PM-1188] move auth tests to auth folder

* [PM-1188] fix auth test files namespace & imports

* [PM-1188] move emergency access api files to auth folder

* [PM-1188] fix emergencyaccess api files namespace & imports

* [PM-1188] move emergency access core files to auth folder

* [PM-1188] fix emergency access core files namespace & imports

* [PM-1188] move emergency access orm files to auth folder

* [PM-1188] fix emergency access orm files namespace & imports

* [PM-1188] move emergency access sql files to auth folder

* [PM-1188] move emergencyaccess test files to auth folder

* [PM-1188] fix emergency access test files namespace & imports

* [PM-1188] move captcha files to auth folder

* [PM-1188] fix captcha files namespace & imports

* [PM-1188] move auth admin files into auth folder

* [PM-1188] fix admin auth files namespace & imports
- configure mvc to look in auth folders for views

* [PM-1188] remove extra imports and formatting

* [PM-1188] fix ef auth model imports

* [PM-1188] fix DatabaseContextModelSnapshot paths

* [PM-1188] fix grant import in ef

* [PM-1188] update sqlproj

* [PM-1188] move missed sqlproj files

* [PM-1188] move auth ef models out of auth folder

* [PM-1188] fix auth ef models namespace

* [PM-1188] remove auth ef models unused imports

* [PM-1188] fix imports for auth ef models

* [PM-1188] fix more ef model imports

* [PM-1188] fix file encodings
2023-04-14 13:25:56 -04:00
Álison Fernandes
7da272dae8
Update Secrets Manager team in CODEOWNERS (#2829) 2023-03-30 14:06:35 +01:00
Michał Chęciński
e667908a06
Fix self contained mssqlmigratorutility (#2804)
* Fix self-contained mssqlmigratorutility

* Fix build

* Fix

* Fix
2023-03-15 16:57:36 +01:00
mimartin12
f33c4e120d
Fix build.yml - Update tag generator to not use beta (#2800) 2023-03-14 11:30:17 -06:00
Michał Chęciński
5e3f4c9bbe
Revert "Revert "[DEVOPS-1215] Build migrator CLI project (#2747)" (#2769)" (#2774)
This reverts commit f8cbd4ef7d.
2023-03-07 14:10:34 +01:00
Michał Chęciński
f8cbd4ef7d
Revert "[DEVOPS-1215] Build migrator CLI project (#2747)" (#2769)
This reverts commit 9cbf254fef.
2023-03-06 18:02:19 +01:00
Michał Chęciński
9cbf254fef
[DEVOPS-1215] Build migrator CLI project (#2747)
* Add migrator cli

* Ran format

* Acc build workflow

* Change paths in push and pr triggers

* Add build migrator cli to build workflow

* Remove build migrator cli workflow

* Add different levels of logs for verbose

* Rename migratorCLI to MsSqlMigratorUtility

* Add MsSqlMigratorUtility to solution file

* Remove the clean command

* Fix name and path in build workflow

* Add retry logic to DbMigrator instead of invocation

* Add migrator with retry mechanism as a new method

* Log the migration start log to migrate database method

* Fix name in build

* Fix cli leftovers

* Fix exception var name

* String interpolation

* Remove redundant check for number

* Remove CommandDotNet

* dotnet format

* Remove CommandDotNet from packages lock

* Remove all cli

* Trying to remove usings to see if this fixes linter

* Add usings back again - uild is failing

* Remove implicit usings

* Trying to fix linter issues

* Trying to fix linter
2023-03-06 15:39:30 +01:00
Robyn MacCallum
3289a8c35e
[SG-998] Move files to Vault folders (#2724)
* Move Api files

* Move Core files

* Move Infrastructure files

* Move Sql Files

* Move Api Sync files to Vault

* Move test vault files

* Update Sql.sqlproj paths

* Update Codeowners

* Fix vault file paths in sqlproj

* Update CipherDetails.sql path in sqlproj

* Update Core models and entities namespaces

* Update namespaces Core Services and Repositories

* Missed service namespaces

* Update Api namespaces

* Update Infrastructure namespaces

* Move infrastructure queries that were missed

* Tests namespace updates

* Admin and Events namespace updates

* Remove unused usings

* Remove extra CiphersController usings

* Rename folder

* Fix CipherDetails namespace

* Sqlproj fixes

* Move stored procs into folders by table

* using order fix
2023-03-02 13:23:38 -05:00
Michał Chęciński
38336dd5c4
Add Migrator CLI workflow stub (#2741) 2023-02-24 08:08:47 -08:00
Vince Grassia
4fb2649faf
Fix typo (#2731) 2023-02-22 14:48:45 -05:00
Joseph Flinn
7594ca1122
Fix typo in the DockerHub push step (#2713) 2023-02-16 15:32:48 -08:00
Joseph Flinn
133a3f70b9
Don't upload images to DockerHub registries that don't exist (#2712)
* Don't upload images to DockerHub registries that don't exist

* Fix linting issue

* Fix conditional
2023-02-16 15:14:39 -08:00
Joseph Flinn
0fde17fc0e
Add in QA temporary ACR (#2711)
* Adding QA registry back into self-host build pipeline

* switching order of the ACR signin

* Update build pipeline to follow same patterns as build-self-host and push to both Prod and QA registries

* Add Bitwarden QA registry to the PR clean up workflow

* Fix project name and path to dockerfile

* Add a publish branch check to the tag list generator

* Fix bash env var typo
2023-02-16 14:16:32 -08:00
Michał Chęciński
9261fcc9ee
Add pull request trigger to build self-host workflow (#2701) 2023-02-15 17:04:03 +01:00
Michał Chęciński
70a7108bba
Fix Azure login in build self host workflow (#2700) 2023-02-15 17:03:51 +01:00
Michał Chęciński
b44ff27d3a
[DEVOPS-1211] Push docker only to bitwardenprod ACR (#2695)
* Push docker only to prod ACR

* Remove matrix in container registry purge
2023-02-15 11:45:46 +01:00
Michał Chęciński
8138db396b
Fix secrets retrieval in build-self-host workflow (#2696) 2023-02-15 11:45:27 +01:00
Michał Chęciński
5aa8f3db81
[DEVOPS-1161] fix the rate limiting issue in building bitwarden unified (#2694)
* Add GH_PAT secret to build

* Fix secret

* Fix

* Fix

* Maybe fix

* add cat for tags.json

* Maybe fix

* Matbe fix

* Trying to fix

* Change gh_pat path

* Fix

* Remove obsolete tags obtaining
2023-02-14 09:41:59 -07:00
Oscar Hinton
c24b086275
[SM-500] Upload sql diff for database validation (#2690) 2023-02-13 15:07:42 +01:00
Opeyemi
d0355fcd12
Add update for PROD ACR upload (#2643)
* Add update for PROD ACR upload

* Add update image tags

* add suggestions

* delete comment
2023-01-30 16:12:09 -05:00
Oscar Hinton
9ea520e038
Move CI testing to Ubuntu (#2638)
Change the CI for testing job from Windows to Ubuntu
2023-01-30 11:07:20 +01:00
Oscar Hinton
59f5285c88
[SM-460] Isolate SecretsManager files (#2616)
Move SecretsManager files to directories called SecretsManager and add CodeOwners
2023-01-24 19:57:28 +01:00
Matt Bishop
0e32cb944a
Upgrade Swagger (#2611) 2023-01-24 12:10:00 -05:00
Oscar Hinton
a7c2ff9dbf
Remove workflow_run (#2606) 2023-01-20 16:31:41 +01:00
Oscar Hinton
1f0fc43278
[SM-394] Secrets Manager (#2164)
Long lived feature branch for Secrets Manager

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
Co-authored-by: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com>
Co-authored-by: CarleyDiaz-Bitwarden <103955722+CarleyDiaz-Bitwarden@users.noreply.github.com>
Co-authored-by: Thomas Avery <tavery@bitwarden.com>
Co-authored-by: Colton Hurst <colton@coltonhurst.com>
2023-01-13 15:02:53 +01:00
Matt Bishop
ea9e30c35f
Upload and process test results as an artifact and report (#2555) 2023-01-10 10:58:19 -05:00
mimartin12
90ef8d863a
Remove deprecated workflow (#2525) 2022-12-30 13:52:48 -06:00
Michał Chęciński
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
Michał Chęciński
d60746d9b1
Add Billing Into Server CI Workflow (#2478) 2022-12-20 12:09:17 +01: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
f173988979
Remove DCT bypass for scim (#2451) 2022-12-06 09:48:55 -05:00
Vince Grassia
a98a5d8dc6
Remove 'rc-2022.12' logic (#2475) 2022-12-05 20:24:44 -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
Vince Grassia
a26e9a168e
Change rc-2022.12 tag to beta (#2456) 2022-12-01 16:23:43 -05:00
Vince Grassia
447066e417
Enable DCT (#2446) 2022-11-28 22:02:33 -05: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
Vince Grassia
0795545fb8
Update Unified Self-Host Build Workflow (#2432) 2022-11-23 07:21:22 -08:00
Vince Grassia
194dfe7e14
Bitwarden Unified Self-Host project (#2410) 2022-11-18 14:39:01 -05:00
Vince Grassia
3bece3c3ad
Add Build Self-Host workflow stub (#2417) 2022-11-16 13:47:25 -05: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
Todd Martin
dd75642aa3
Changed Github deployments not to run on Dry Run. (#2406) 2022-11-14 13:43:08 -05:00
Rui Tomé
9ecf69d9ca
[EC-736] Update build to run SCIM tests and fix failing test (#2402)
* [EC-736] Revert change on OrganizationUserUserViewQuery

Revert a change that was causing the query to not return results when the OrganizationUser did not have a corresponding row on the Users table

* [EC-736] Update build to run bitwarden_license test projects
2022-11-10 14:19:28 +00:00
Opeyemi
a300643505
add run-name for releases to include their workflow trigger (#2390)
* add run-name for releases to include their workflow trigger

* add edit for linter errors
2022-11-08 20:26:47 +00:00
Michał Chęciński
c5fb49758a
Move renovate.json to .github folder (#2367) 2022-10-27 13:22:05 +02:00
Matt Gibson
8a22c0479e
Inform that we track issues outside of Github (#2331)
* Inform that we track issues outside of Github

* Use checkboxes for info acknowledgement
2022-10-17 09:39:11 -05:00
sneakernuts
52fd999b29
added ability to utilize signed commits (#2333)
* added ability to utilize signed commits

* added steps for az kv
2022-10-13 20:05:11 +00:00
Vince Grassia
c6b2f19cd6
Switch to using get-keyvault-secrets action from our gh-actions repo (#2328) 2022-10-04 17:23:43 -04:00
Joseph Flinn
b59cc71424
Revert "Update deprecated Azure Key Vault in workflows (#2214)" (#2326)
This reverts commit 13e33cd789.
2022-10-04 18:23:08 +00:00
Michał Chęciński
13e33cd789
Update deprecated Azure Key Vault in workflows (#2214) 2022-09-29 13:29:58 -07:00
Michał Chęciński
65e9520d09
Update artifact download action (#2312) 2022-09-28 14:50:43 +02:00
Michał Chęciński
26fc67eec6
Devops 905 publish event processor (#2239)
* Change to EventsProcessor

* COmment out for testing

* Comment out for testing

* Comment out branch check

* Comment version check

* Add info about origin registry

* FIx condition

* Uncomment after testing

* Release events
2022-09-15 17:21:00 +02:00
Oscar Hinton
d6ce41c837
[SM-205] Trigger Database job on PRs (#2255) 2022-09-08 21:26:26 +02:00
Oscar Hinton
98351f5693
[SM-205] Add CI job for validating the database (#2249) 2022-09-08 21:14:34 +02:00
Micaiah Martin
edcac759eb
Update enforce-labels.yml (#2248) 2022-09-07 09:22:04 -05:00
Thomas Rittson
2d9d6ad812
[EC-505] Update PR template (#2221) 2022-08-31 08:46:59 +10:00
Michał Chęciński
2b2f9fafd2
Publish EventsProcessor and Icons Images to Prod ACR (#2210)
* Add steps to publish image to prod acr

* Add comments for testing

* Fix

* FIx

* Remove comments after testing

* Try to fix condition

* Try to fix

* uncomment testing
2022-08-25 10:02:24 +02:00
Micaiah Martin
61f4a27d2b
[DEVOPS-862] Update logic to workflow (#2194) 2022-08-24 08:42:59 -06:00
Oscar Hinton
308ae7641b
[SM-152] Add CI to verify OSS is still building (#2208) 2022-08-24 10:45:33 +02:00
Micaiah Martin
c33732d583
[DEVOPS-862] Updates the paths trigger (#2180) 2022-08-11 15:54:37 +00:00
Micaiah Martin
b86a04cef9
[DEVOPS-862] Add protections around SQL migration modification changes (#2177) 2022-08-10 12:19:52 -06:00
Todd Martin
524ceb622c
Changes to clean up deployment creation in workflow jobs. (#2160)
Co-authored-by: Todd Martin <>
2022-08-03 11:39:35 -04:00
Oscar Hinton
1cad0268c0
[SM-142] Rename CommCore to Commercial.Core (#2158)
* Rename CommCore to Commercial.Core
2022-08-02 20:41:18 +02:00
Todd Martin
dd75e8886a
[ENG-71] Updated release job to create and update Github deployment for Jira integration (#2141)
* [ENG-71] updated release job to have Github deployment

* [ENG-71] Updated to use commit instead of v2.

* [ENG-71] Updated to track each server deployment.

Co-authored-by: Todd Martin <>
2022-07-25 17:19:56 -04:00
Micaiah Martin
f736008cb3
Update workflows for SCIM support (#2133) 2022-07-21 14:36:40 +00:00
Micaiah Martin
39d77cf09c
Update workflows for SCIM support (#2131) 2022-07-20 10:47:19 -06:00
Vince Grassia
45bbbc4beb
Update 'Dry Run' path in Release workflow (#2124) 2022-07-19 15:00:57 -04:00
Micaiah Martin
903273885b
Add SCIM image build and publish (#2125) 2022-07-19 07:35:26 -06:00
Michał Chęciński
4a7c39b08f
Add version change check in the version bump workflow (#2118) 2022-07-15 11:08:42 +02:00
Michał Chęciński
4b43951b59
Remove tagging Docker images latest on release (#2098) 2022-07-13 15:44:57 +02:00
Vince Grassia
62bf4c2385
Update Version Bump action hash (#2115) 2022-07-12 12:54:36 -04:00
Micaiah Martin
5e1e634632
Require lint job before building artifacts (#2109) 2022-07-11 15:30:52 -06:00
Joseph Flinn
81cb41850a
Update the Release Version Check (#2089) 2022-06-28 13:54:49 -07:00
Justin Baur
882d1e0b26
Fix VSCode Launch file (#2077)
* Fix launch.json

* Also change pull request template
2022-06-26 10:03:33 -04:00
Justin Baur
daeaa42851
[PS-40] Upgrade to .NET 6 (#2056)
* Bump to .NET 6

* Update Docker images

* Update docs

* Update workflow for linter

* Add all common versions to props file

* Update tools manifest

* Update csproj files

* Update packages.lock.json files

* Switch to setup-dotnet

* Remove msbuild

* Fix deps breaking changes

* Manually install msbuild

* Use msbuild for build

* Fix verbosity switch

* Remove unused exceptions

* Address linter feedback

* Make Obsolete warnings suggestions for now.

* Force Evaluate

* Format on tests

* Run formatting again.

* Use windows 2022

* force evaluate

* Fix restore

* Fix linter

* Skip test

* Update Directory.Build.props

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Address PR feedback

* Add IntegationTest for Rate limiter

* Fix test

* Reenable test

* Reorder test

* Skip test again

* Add tracking link

* Update .github/workflows/build.yml

Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
2022-06-24 10:39:34 -04:00
Oscar Hinton
8e110b5c41
Remove (mark with an X) from PR template (#2059) 2022-06-14 17:45:57 +02:00
Thomas Rittson
4bedf140cc
Remove labeler action (#2054) 2022-06-14 10:23:50 +10:00
Thomas Rittson
498aabfd2c
Fix file path (#2048) 2022-06-10 08:10:49 -05:00
Thomas Rittson
83b530a5bd
[PIQ-127] Add Github Actions to help manage issues and PRs (#1981)
* Update glob matching pattern for labeler

Ref: https://github.com/actions/labeler/issues/28#issuecomment-552362351
2022-06-10 13:33:48 +10:00
Matt Gibson
16c6b23a27
PR template info as code (#2032)
Template items here aren't really tasks as interpreted by github, this
allows us to have the same MD experience without hinting to Github that
there are 2/8 tasks done, which was annoying.
2022-06-03 10:39:22 -05:00
Micaiah Martin
99de655190
Patch release workflow (#2027) 2022-05-31 19:08:56 -06:00
Joseph Flinn
fb5452bd10
Fixing the Release Version Check action path (#2026) 2022-05-31 17:49:02 -07:00
Joseph Flinn
a0c049dbce
Updating the version check to the new Github action (#2024)
* Updating the grep version check to be more strict on the new version convention

* updating the way we check the version with the new github release

* Fixed the release-type

* switching master branch name for commit
2022-05-31 16:11:21 -07:00
Vince Grassia
a266772ec3
Update QA Deploy Workflow (#2003) 2022-05-18 08:43:36 -04:00
Thomas Rittson
e5a9d3dec2
Remove testing requirements from PR template (#1989) 2022-05-10 17:02:30 -04:00
Joseph Flinn
01747eaa43
Bump the pin of the download-artifacts action to bypass the broken GitHub api (#1952) 2022-04-14 15:50:49 -07:00
Vince Grassia
ff23bb87c8
Add 'dev' tag to container-registry-purge workflow (#1933) 2022-03-30 15:08:28 -04:00
Micaiah Martin
685b63c41f
Updated actions & applied linting (#1912) 2022-03-16 09:18:35 -06:00
Vince Grassia
6dc0382c5f
Add caching to Build workflow (#1911) 2022-03-15 14:56:50 -04:00
Vince Grassia
5bd4b69e27
Fix logic to start and stop staging slots on App Services (#1910) 2022-03-15 09:41:01 -04:00
Micaiah Martin
72baf6deab
[BEEEP] - Moved linting steps (#1907) 2022-03-14 07:31:03 -06:00
Vince Grassia
b011e405f0
Add stop-staging-slots workflow (#1904) 2022-03-10 13:55:07 -05:00
Vince Grassia
7620433d7e
Add logic for starting staging slot (#1901) 2022-03-09 10:47:09 -05:00
Oscar Hinton
a92d4f9bde
Cleanup node scripts (#1858) 2022-03-03 23:53:09 +01:00