* Update server build workflow to push images to ACR
* UPDATE: Remove docker_repos matrix variable
* FIX: make docker push command one-liner
* UODATE: revert attachment image source
* UPDATE: add suggestion and update tags in docker build
* UPDATE: docker build tags
* UPDATE: master branch tag to latest
* ADD: push server image to dockerhub
* ADD: sugesstions
* ADD: ACR var name change and usages
* Minor updates
* Fix syntax error
* UPDATE: use ACR var for image name step
---------
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* pin version tags in database cleanup and issues response wf
* update all workflow for actions version pin
* edit build strategy and a few version pin typo
* 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
* 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
* [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
* 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>
* 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>
* 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
* 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
* 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
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.
* 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
* 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
* Fix K8S-Proxy image build and tag
* Update build script to remove unused PUSH and TAG features
* Update workflows
- Remove build.sh from root of repo as it's no longer used
- Update workflows to use matrix feature for parallelization
* Add Docker image build step and other projects
* Remove csproj filenames from steps
* Fix typo
* Fix directory for k8s-proxy image
* Move Docker stub and uploads out of matrix
* Change to block-style sequence for service_name matrix
* Add missing quote character
* Fix working directories of Dotnet steps
* Update step name
* Add checkout repo step to Upload job
* Add 'dotnet tool restore' step
* Fix Swagger directory
* Fix Swagger build step
* Fix Swagger build step (again)
* removing the unneeded docker repo keys
* adding some testing code
* fixing notary install location
* installed notary in home directory without relying on the PATH var
* adding notary config for testing
* commenting out branch conditionals so that the pipeline will run a test on a non-master/rc branch
* trying to track down the docker trust files
* changing to the home directory to install notary
* testing with out all of the notary testing stuff
* uncommenting the code after testing
* updating the release workflow with the delegate-2 key
* initial success caching test
* updating status testing
* fixing the fail check
* fixing bash if syntax
* changing the way of testing since you can't change workflow inputs between re-runs
* trying out different bash syntax
* removing the export to env
* adding in last run status check
* switching up the last_run_status file handling since it doesn't look like it is working correctly
* adding push trigger
* fixing typo
* adding date to the cache key and adding a bit more logging
* fixing restore key
* trying a different way of logging both successes and failures
* fixing typo
* reorganizing the random success/fail
* trying different bash
* fixing binary operator
* adding in success flag checks
* increasing the odds of success
* trying to fix weird problem
* changing dquotes to squotes
* testing failure and always() flow
* adding in a release pipeline
* adding in the manual trigger for the release pipeline
* fixing the bash for loop for tagging and switching to the rc image for release
* adding docker trust to the pull task
* fixing bash array typo
* removing build task
* adding the dotnet tool restore back in to hopefully restore swagger
* adding an Api build to build the swagger docs
* working on build workflow
* testing cache between jobs
* Adding in steps
* fixing the last line
* updating the build workflow
* adding manual trigger for build workflow
* moving the matrix values to the env section of the task
* changing the envs
* using env template replacement
* removing the unique id since I don't think I need it
* testing the cache
* commenting out the docker push
* adding the env vars back to the cache task
* adding envs to test
* fixing the path issue
* resetting the build workflow back to serial build/docker
* Adding in the qa release workflow
* removing unneccessary dependency
* parameterizing the project file names
* forcing gulp install
* installing gulp globally
* reorganizing to see if gulp works
* removing the awkward paths
* fixing typo
* commenting out all non-api matrix for easier testing
* trying to zip the build for deploy
* adding in the base path for the test
* replacing the web app name
* adding a specific slotname
* adding the env into the package path for the deployment
* trying to fix the zip
* setting up all of the other deploys
* switching the secrets over to be environment secrets
* adding in production automation with the deploys commented out
* removing the master branch from the QA deploy
* adding in the dependancy on the setup
* changing the tag
* trying a different ref
* renaming the deployment slot to staging
* trying a different slot name
* resetting the qa deploy to the original
* moving the secrets
* updating the qa deploy with the db reset/update stubs
* updating the deploy task dependencies
* adding missing update-db command placeholder
* trying a string for the inputs
* moving the input check into the steps instead of the job level so that the job completes
* testing azure kv
* fixing typo
* Change id to retrieve-secrets
* Fix typo
* testing the rest of the QA app service deployments
* updating the name of the QA AZ creds secret and migrating the disabled prod deploy jobs to use the prod AZ secrets
* adding in the additional key vault secrets and fixing some other mistakes
* fixing one of the other preview versions
* removing newline for testing commit
* fixing typo
* fixing a secret name typo
* moving the secrets to the env to test their outputs
* adding missing k
* Update build workflow with environment variables for Docker Trust
* removing the unneeded env vars
* Update build and release workflow using Azure secrets as env variables
* Clean up output of NuGet version
* Fix capitalization
* Fix variable names for Docker Trust Setup
* fixing the dashes in the env ids
* switching the dev tag for qa when pushing
* commenting out the test for the pipeline testing
* removing all of the testing code and blockers
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* updating the Build Action to sign docker images
* moving the DCT env var placement
* adding in some temp_test values to build/push the dev images
* testing dev docker signing
* debugging missing file
* adding manual creation of ~/.docker/trust/private since we are not building with DCT enabled
* updating the secret name for the delegation key passphrase
* removing debugging code