chore(seed): bake live test connections into init.sql + helpdesk migration
Fresh installs now come up with working dev test connections for Microsoft SSO and Business Central without manual configuration: - init.sql appends the live breadcrumb + icoreon tenants (idempotent by uuid), Felix as a 6th user with all five roles, the live departments, plus tenant_auth_microsoft (SSO enabled for breadcrumb), tenant_auth_ldap stubs, and the global Microsoft shared-app credentials. The MusterMandant demo seed is preserved as tenant 1. - A new helpdesk migration 011 seeds the per-tenant BC connection rows in helpdesk_tenant_settings and the helpdesk.bc_* fallback settings — module-owned data stays in module migrations. - .env.example sets APP_CRYPTO_KEY so the AES-256-GCM blobs in the seed (Microsoft client secret, BC basic auth passwords) actually decrypt out-of-the-box. Verified by decrypting all four blobs end-to-end through Crypto::decryptString. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@ APP_STORAGE_PATH=./storage
|
||||
APP_LOCALE=de
|
||||
APP_LOCALES=de,en
|
||||
APP_I18N_DOMAIN=default
|
||||
APP_CRYPTO_KEY=
|
||||
APP_CRYPTO_KEY=9792a9ce0def59c034a651f2f6f26f3dcda2f78c1e3513e67be4da06afc24680
|
||||
SESSION_NAME=CoreCore
|
||||
TENANT_SCOPE_STRICT=true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user