fix(secrets-cli): shipped appsettings.json no longer sets a relative SqlitePath (scadaproj#49)

The CLI's own appsettings.json set "SqlitePath": "secrets.db", which the store-path validator
rejects as relative, so the headless CLI failed at startup when run from its own directory unless
Secrets__SqlitePath overrode it. The key is removed: the per-user default
(<LocalApplicationData>/ZB.MOM.WW/secrets.db) applies, and an app's appsettings.json in the working
directory or the environment still override it. Regression test validates the shipped file.

Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
Joseph Doherty
2026-11-09 15:13:42 -05:00
parent 64efb49996
commit 262e11feaf
2 changed files with 47 additions and 1 deletions
@@ -1,6 +1,5 @@
{
"Secrets": {
"SqlitePath": "secrets.db",
"MasterKey": {
"Source": "Environment",
"EnvVarName": "ZB_SECRETS_MASTER_KEY"