fix(seed): grant Design + Deployment to multi-role in primary seed-sites.sh
A fresh ScadaBridgeConfig has only the Admin LdapGroupMappings row (InitialSchema migration ships one row, SecurityConfiguration.HasData declares four). docker-env2/seed-sites.sh already inserts the missing three idempotently; docker/seed-sites.sh did not, so multi-role got Admin only on a primary cutover. Mirror the env2 insert block.
This commit is contained in:
@@ -37,8 +37,7 @@ echo "Seeding LDAP group mappings (Design + Deployment)..."
|
||||
# SecurityConfiguration.HasData declares 4 mappings but the InitialSchema
|
||||
# migration only inserts the Admin row, so a fresh ScadaBridgeConfig2 starts
|
||||
# with multi-role getting Admin only -- no Design and no Deployment access.
|
||||
# Insert the missing three idempotently. (Same divergence exists on the
|
||||
# primary, but primary's database has the rows from earlier history.)
|
||||
# Insert the missing three idempotently. (Mirror of docker/seed-sites.sh.)
|
||||
docker exec -i scadabridge-mssql /opt/mssql-tools18/bin/sqlcmd \
|
||||
-S localhost -U sa -P 'ScadaBridge_Dev1#' -C \
|
||||
-d ScadaBridgeConfig2 -Q "
|
||||
|
||||
Reference in New Issue
Block a user