* Update migrate.ps1 to use MsSqlMigratorUtility for dev databases
* Remove old handwritten scripts
* Migrate existing migration records
* Update Github Workflow to call MsSqlMigratorUtility directly
* add devcontainers for `server`
* run db migrations automatically in dev environment
* remove curl
* remove trailing comma; causes parsing with `jq`
* use existing .env
* add initializeCommand
* use better search string
* restructure common files
* chmod +x scripts
* remove problematic env config scripts
* add mention of var that is needed for devcontainer
* remove ref to deleted script
* Update .devcontainer/community_dev/devcontainer.json
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
* Update .devcontainer/internal_dev/devcontainer.json
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
* use dev image for `6.0.416` SDK
* revert to manual DB migrations
* reuse SQL connection string var
---------
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
* Add Linux script to create dev certificates
A script based on the macOS script that can be used on Linux, either
Debian or Red-hat derived distros.
* Fix invalid trailing comma in secrets json example
Fixes the error message, "services.mssql.environment.ACCEPT_EULA must be a string, number or null" when running `docker compose --profile mssql --profile mail up -d` during initial dev setup on MacOS.
* Add Tool For Adding EF Migrations
* Update dev/ef_migrate.ps1
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
* Add Sqlite as EF DB provider
Note: In-memory sqlite does not work across projects, since the migrator
only runs on the Admin project
Co-authored-by: Justin Baur <justindbaur@users.noreply.github.com>
* Include example sqlite connection string
* Add migrator assembly to sqlite connection
* Update initial migration to current schema state
* dotnet format 🤖
* Update package locks
* Respect name set in BW_SSL_KEY for cert generation (#2490)
(cherry picked from commit 2469e10110)
* [PS-2016] Add ability to change UID/GID for Bitwarden unified (#2495)
(cherry picked from commit c6fbe8cc44)
* Add SqliteMigrations project to unified Dockerfile
Co-authored-by: Justin Baur <justindbaur@users.noreply.github.com>
Co-authored-by: accolon <mail@accolon.net>
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* scim project stub
* some scim models and v2 controllers
* implement some v2 scim endpoints
* fix spacing
* api key auth
* EC-261 - SCIM Org API Key and connection type config
* EC-261 - Fix lint errors/formatting
* updates for okta implementation testing
* fix var ref
* updates from testing with Okta
* implement scim context via provider parsing
* support single and list of ids for add/remove groups
* log ops not handled
* touch up scim context
* group list filtering
* EC-261 - Additional SCIM provider types
* EC-265 - UseScim flag and license update
* EC-265 - SCIM provider type of default (0)
* EC-265 - Add Scim URL and update connection validation
* EC-265 - Model validation and cleanup for SCIM keys
* implement scim org connection
* EC-265 - Ensure ServiceUrl is not persisted to DB
* EC-265 - Exclude provider type from DB if not configured
* EC-261 - EF Migrations for SCIM
* add docker builds for scim
* EC-261 - Fix failing permissions tests
* EC-261 - Fix unit tests and pgsql migrations
* Formatting fixes from linter
* EC-265 - Remove service URL from scim config
* EC-265 - Fix unit tests, removed wayward validation
* EC-265 - Require self-hosted for billing sync org conn
* EC-265 - Fix formatting issues - whitespace
* EC-261 - PR feedback and cleanup
* scim constants rename
* no scim settings right now
* update project name
* delete package lock
* update appsettings configs for scim
* use default scim provider for context
Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com>
* Store migrations in a migrations db
Added the -p flag to run_migrations for pipeline to run from
environment variables
Created meta-migrations script to pre-populate migrations_vault_dev
tables with run migrations for those already using the last_migrations
file
* Update dev/helpers/mssql/migrate_migrations.sh
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* Update dev/helpers/mssql/run_migrations.sh
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* Remove last_migration file creation
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
* Add self-host option to migration runner
* Add Self-host launch options
* Add self-hosted settings override
Let's a single secrets/env config file control both
cloud and self-hosted settings by allowing
overrides to cloud settings with self-hosted
* Allow dev-signed licenses on dev self-hosted
* Allow setting bitwarden cloud api url
Useful for testing api integration between installations and cloud
* Remove testing echoes
* Remove run config property groups
* Use `getopts` for options
* Pass in full environment