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

172 Commits

Author SHA1 Message Date
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
Vince Grassia
5f613ebc44
Add QA latest image tagging to Release workflow (#1898) 2022-03-03 14:00:49 -05:00
Vince Grassia
3cefd5fd5d
Add Docker Stub Checksum (#1888) 2022-02-28 09:38:59 -05:00
Micaiah Martin
1d5c9a4f9a
Add dry-run option for release workflow (#1880) 2022-02-24 07:55:43 -06:00
Micaiah Martin
52ddf55029
patch for swagger build step (#1882) 2022-02-23 10:29:17 -08:00
Micaiah Martin
ec33e39442
[BEEEP] Ignored workflows from triggering builds (#1881) 2022-02-23 10:29:19 -06:00
Micaiah Martin
ecfdb8ca03
Move to using a shared workflow (#1874) 2022-02-18 13:29:23 -06:00
Micaiah Martin
8a61fa2af5
Created workflow (#1871) 2022-02-17 08:03:56 -06:00
Matt Gibson
4ee1dbe929
Enforce hold label (#1867)
* Enforce hold label

* Linting

Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
2022-02-16 08:42:15 -06:00
Oscar Hinton
8d6c49f656
Add lock files for NuGet (#1855) 2022-02-10 15:40:31 +01:00
Oscar Hinton
f246f51249
Remove node from main test task (#1856) 2022-02-10 10:14:45 +01:00
Joseph Flinn
a4ae38fc95
Rename hotfix branch to hotfix-rc (#1854) 2022-02-09 08:17:17 -08:00
Vince Grassia
5b401b3895
Fix Container Registry Purge workflow (#1835) 2022-02-01 14:41:34 -05:00
Vince Grassia
1b233370eb
Disable schedule (#1827) 2022-01-28 14:01:07 -05:00
Vince Grassia
a1f34b5de4
Add Container Registry Purge workflow (#1826) 2022-01-27 16:28:12 -05:00
Joseph Flinn
85797bde07
Patch/docker build (#1825)
* Patch to fix the broken dockerhub push

* undoing a keyboard slip
2022-01-24 12:42:14 -08:00
Joseph Flinn
41f3e27ace
Feature/feature branch docker images (#1824)
* enabling ACR images for feature branches

* fixing typo in docker tag name

* Adding a workflow that cleans up the docker images from a branch when it gets merged in.

* Updating job name

* Fixing trigger syntax issue

* adding a manual trigger

* Removing the copy + paste mistake

* Adding non-tty confirmation for the deletion of the image

* Un-paralellizing workflow

* fixing the yq options

* trying a different way to get the var data

* trying with quotes

* trying it for real

* adding in a message and testing deleting a tag that doesn't exist

* handling the case where the tag doesn't exist

* fixing a typo

* logging some vaules to try to get some answers

* trying a different way of passing the var into jq

* final cleanup and test

* fixing linting issues

* normalizing the ACR and Dockerhub pushes

* removing the manual trigger after done testing

* Update .github/workflows/build.yml

removing missed an added whitespace

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

* fixing the EventsProcessor docker repo issue

* switching repos for EventsProcessor

Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
2022-01-24 11:12:37 -08:00
Joseph Flinn
897a76ff48
adding in a manual trigger for the stubbed workflow (#1822) 2022-01-21 06:10:07 -08:00
Joseph Flinn
d3938068c7
Workflow: Cleanup after PR (#1821)
* Stubbing out new workflow to test logic in feature branch

* fixing trigger syntax
2022-01-21 05:42:23 -08:00
Vince Grassia
ac729c619c
Update Version Bump action to latest (#1809) 2022-01-18 10:30:16 -05:00
Micaiah Martin
f51bdfe2e3
Added redeployment logic to setup job (#1778) 2021-12-20 13:19:18 -07:00
Vince Grassia
44b993ed38
Remove hash from image tag (#1772) 2021-12-16 11:47:01 -05:00
Oscar Hinton
23b0a1f9df
Run dotnet format (#1764) 2021-12-16 15:35:09 +01:00
Oscar Hinton
61dc65aa59
Add dotnet-format tool (#1756) 2021-12-16 08:48:30 +01:00
Vince Grassia
4ccbf091fb
Remove check for EventsProcessor (#1749) 2021-12-08 00:19:15 -05:00
Vince Grassia
dae0029dbb
Switch from AWS ECR to Azure ACR in our workflows (#1747) 2021-12-07 23:28:13 -05:00
Micaiah Martin
cc490a76de
Ci/version bump action (#1737)
* Added version bump workflow

* Updated action to use newly merged PR version

* Formatted YAML

* Refactored workflow to reduce runtime and move away from third party actions
2021-11-30 08:52:18 -07:00
Vince Grassia
c660f8bf00
Fix Docker Notary (#1717) 2021-11-15 13:53:53 -05:00
Vince Grassia
27351762de
Upload Docker images to AWS ECR Nonprod Repositories (#1713) 2021-11-15 13:23:51 -05:00
Vince Grassia
c07794e907
Change Release workflow to allow releases from 'rc' and 'hotfix' branches (#1690) 2021-11-08 13:39:32 -05:00
Thomas Rittson
7473a96b27
Update PR template to remind about EF migrations (#1679)
* Update PR template to remind about EF migrations

* Update wording
2021-11-02 08:22:17 +10:00
Joseph Flinn
19ca3ee374
Enabling deploys to the QA environment from branches with slashes in the name (#1673) 2021-10-27 12:44:54 -07:00
Joseph Flinn
52d1bade06
Hotfix/release workflow (#1671)
* fixing release workflow app service deploys

* adding the release branch as a conditional to the docker-stub build

* Add in missing 'if' statement for 'release' branch in Docker Stub step

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-10-27 08:45:33 -07:00
Thomas Rittson
818b3b5d9d
Add PR template (#1668) 2021-10-27 19:01:00 +10:00
Joseph Flinn
8683cbfe33
fixing parameter mismatch (#1670) 2021-10-26 19:18:54 -07:00
Joseph Flinn
fa1989bfed
fixing the error in the release workflow (#1669) 2021-10-26 18:56:06 -07:00
Joseph Flinn
e2c8fa7002
Replacing the DCT setup. There was a sneaky line that was different which is making our build of the EventsProcessor image break (#1667) 2021-10-26 15:02:19 -07:00
Joseph Flinn
9a629a410c
Allow Docker access to new release branching strategy (#1666)
* allowing the new release branch to push its docker images

* Switching to our action to set up DCT
2021-10-26 14:22:47 -07:00
Joseph Flinn
f3d6a43025
Change protected release branch to release (#1656)
* Adding a contraint around the new release branch strategy

* Adding a constraint on what CI code can be used to release the release branch

* updating the self host docker image building and releasing

* removing master branch release ci code execution

* updating some verbiage
2021-10-22 08:41:38 -07:00
Joseph Flinn
423ff99bda
Disabling the temporary prod-deploy workflow (#1655) 2021-10-21 10:31:26 -07:00
Joseph Flinn
dfc6559df7
renabling the prod-deploy workflow (#1650) 2021-10-19 16:52:06 -07:00
Joseph Flinn
b4d2faa0cc
enabling releasing from non-rc branch (#1648) 2021-10-19 15:13:42 -07:00
Vince Grassia
86755e130c
Add Slack notifications constraint (#1639) 2021-10-15 13:07:22 -04:00
Vince Grassia
e3a1482e3e
Add Slack alerts for Build workflow failures (#1633) 2021-10-13 15:50:40 -04:00
Joseph Flinn
45ab7e2e85
fixing the file path to download (#1622) 2021-10-07 15:44:43 -07:00
Joseph Flinn
0cc59f3cfa
Fixing the docker image build (#1618)
* Fixing the docker image build

* fixing the download path

* adding conditional on the docker image build artifact setup
2021-10-06 10:21:35 -07:00
Oscar Hinton
79447b6671
Remove Business Portal (#1614) 2021-10-06 10:39:13 +02:00
Vince Grassia
fccfce1048
Fix bug in Build workflow (#1616)
* Fix uploading correct Zip artifact in build

* Change path to uploaded artifacts

* Remove Zip archive step from QA Deploy workflow
2021-10-05 16:40:01 -04:00
Matt Gibson
bd297fb7a2
SqlServer split manage collection permission (#1594)
* SqlServer split manage collection permission

* Clarify names

* Test claims generation

* Test permission serialization

* Simplify claims building

* Use new collections permissions

* Throw on use of deprecated permissions

* Lower case all claims

* Remove todos

* Clean nonexistent project from test solution

* JsonIgnore for both system and newtonsoft json

* Make migrations more robust to multiple runs

* remove duplicate usings

* Remove obsolete permissions

* Test solutions separately to detect failures

* Handle dos line endings

* Fix collections create/update permissions

* Change restore cipher to edit permissions

* Improve formatting

* Simplify map

* Refactor test
2021-10-05 11:12:05 -05:00
Vince Grassia
55fa4a5f63
Update QA Deploy workflow with fix for zip archive (#1612) 2021-09-30 12:12:42 -04:00
Vince Grassia
82e9179ee1
QA Deploy workflow fix (#1611) 2021-09-30 11:24:50 -04:00
Joseph Flinn
182117e1b4
fixing error in actions input. Removing unneeded var (#1605) 2021-09-27 15:30:20 -07:00
Oscar Hinton
fbf3e0dcdc
Run full test suite (#1597)
* Run all tests
2021-09-27 19:34:55 +02:00
Joseph Flinn
1559e2bbe4
Hotfix BTR model (#1600)
* unzipping the build artifact before building docker image

* adding some debugging

* trying without the unzip. Seems to unzip itself

* fixing the two remaining issues

* disabling the docker image build step
2021-09-27 07:23:06 -07:00
Joseph Flinn
dac3b3e893
New BTR pipeline model (#1599)
Splitting out the build artifacts and the docker containers. Making the QA deploy more streamlined with the new build pipeline. Disabling the prod workflow, but keeping it until we fully migrate our deploy processes over to the new flow.
2021-09-24 15:04:14 -07:00
Joseph Flinn
51f32006e7
Revert "removing unneeded code from the QA deploy workflow (#1506)". (#1574)
Turns out we need this so that the services will pick up the new code

This reverts commit c22dc71c49.
2021-09-13 07:08:32 -07:00
Oscar Hinton
d977d27d7d
Issue template (#1569) 2021-09-09 11:53:48 +02:00
Vince Grassia
1d3c7cc936
Update workflows with linter suggestions (#1562)
* Update workflows with linter suggestions

* Update workflows with linter suggestions
2021-09-02 16:03:28 -04:00
Joseph Flinn
3b589df3b7
defaulting to deploy to the produciton slot in QA instead of the staging slot (#1558) 2021-08-31 11:39:47 -07:00
Joseph Flinn
ff752fe562
Retro Action Item: Moving rc branch check (#1543)
* removing branch check on the deploy and forcing the rc branch

* adding the branch check back in for the manual release portion

* removing the old branch check

* removing the unneeded branch check
2021-08-31 08:10:51 -07:00
Vince Grassia
a0a5ddef77
Add Linter Workflow Template (#1532) 2021-08-23 15:37:00 -04:00
Joseph Flinn
bbc2483968
removing job dependencies (#1523) 2021-08-18 18:51:38 -07:00
Joseph Flinn
c22dc71c49
removing unneeded code from the QA deploy workflow (#1506) 2021-08-11 07:27:29 -07:00
Joseph Flinn
2e1df91232
Update qa env (#1504)
* deploying directly to the production slot of the App Service

* Update Azure Service Bus package

* adding a app service shutdown to qa

* reverting QA env deploy change

* Update qa-deploy workflow with debugging statement

* Disable start/stop in QA deploy workflow

* Fix UserKdf and UserApiKey migrations to only update null values (#1494)

* Add proper New Relic NuGet package for .NET 5

* Test NewRelic changes

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-08-10 11:15:16 -07:00
Matt Gibson
842a1c2e37
Tweak provider views (#1499)
* Add Organizations to provider views

Remove enabled/disabled toggle from provider. It's currently not used.

* Remove provider Delete

There are implications to deleting providers on the organizations they manage.
We want to think through this flow before allowing delete from the
admin portal.

* Use toastr to display production exception messages.

Update build actions to upgrade npm to v7.

Use a custom error handler in production which displays a toast of the
exception message and redirect to the offending page

* Clarify provider create error message
2021-08-10 11:28:00 -05:00
Joseph Flinn
2419bc2928
Protecting Versioned Docker Images in the CI Pipeline (#1462)
* moving the docker versioning into the deploy since it is an actual deploy push

* removing the unneeded branch constraints

* adding in different branch constraint to deploy
2021-07-19 12:16:06 -07:00
Joseph Flinn
8e7f45460a
fixing the missing release asset (#1461) 2021-07-19 10:20:26 -07:00
Joseph Flinn
7cfa54ba14
Adding logic to skip uploading a zip file if it does not exist (#1431) 2021-07-02 13:34:20 -07:00
Joseph Flinn
051aab805b
Fix the docker stub upload task (#1430) 2021-07-02 10:22:51 -07:00
Joseph Flinn
59c2dcf218
fixing the incorrect pinned version (#1421) 2021-06-29 19:13:42 -07:00
Vince Grassia
666e99225c
Add database migrations to QA Deploy workflow (#1402)
* Update workflow for db migrations

* Remove typo

* Updating qa-deploy workflow for database migrations

* Test DB migrations on test database

* Remove test code

* Test inputs as boolean

* Update if statements to properly test for truth value

* Fix typo

* Add if to deploy so that it will execute always after database steps
2021-06-22 12:51:28 -04:00
Joseph Flinn
5d7530a6a5
Hotfix az login build workflow (#1394)
* adding in AZ QA login step

* clarifying the task names

* fixing syntax error
2021-06-14 12:33:36 -07:00
Joseph Flinn
0be710f78a
Hotfix az login build workflow (#1393)
* adding in AZ QA login step

* clarifying the task names
2021-06-14 12:22:57 -07:00
Joseph Flinn
2fe31533a0
removing the unneeded env (#1392) 2021-06-14 11:38:17 -07:00
Joseph Flinn
c3642adbdf
QA eventsprocessor (#1389)
* adding the EventProcessor docker container

* fixing the matrix name in the setup step

* changing the name of the EventsProcessor application

* adding the missing docker repo login as well as changing how we are setting the docker trust environment variables
2021-06-14 11:11:05 -07:00
Joseph Flinn
eb3e318d33
QA auto slot swapping (#1383)
* updating the qa deploy to dynamically pull the publish profile instead of proxying it through a key vault

* fixing the download-artifact hash

* fixing typo

* trying out the custom keyvault getter

* fixing the new deploy matrix

* fixing the custom action path

* setting custom action commit hash

* paramaterized the deploy job

* adding the staging slot to the publish profiles

* trying a custom way to pull the publishing profile

* removing the publish profile altogether since it might not even be needed

* removing unnecessary publish profile stuff

* removing the subscription id from the qa deploy workflow

* adding auto swap for QA identity

* adding the rest of the webapp slot swapping automation

* fixing the job dependencies

* fixing the matrix name variable and adding some debugging code

* removing admin and identity out of the matrix swap

* switching the alive check

* fixing the identity endpoint

* fixing the while loops

* adding in sleeps to see if it is a matrix issue

* running the matrix sequentially to see if that rids us of the slot swapping conflits

* removing the sleep command in the matrix

* removing the sequential controller

* disabling the build and deploy for swapping tests

* changing the live test a bit

* fixing the identity status url

* adding in a fail safe if not hit the alive endpoint

* fixing the azure secret names

* removing the debugging code

* Update QA Deploy Workflow (#1387)

* Testing workflow

* Add whitespace to workflow

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-06-10 13:14:15 -07:00