Move the API-key pepper out of the deployed Server\appsettings.json on wonder-app-vd03 #171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On the DEV box the API-key HMAC pepper lives in
Server\appsettings.jsoninside the app directory, so an app-directory swap or overwrite can change or lose it. Losing or rotating the pepper invalidates every API key as completely as losing the auth store (a surviving store with a changed pepper is still a total outage). The QA boxes already keep the pepper in the NSSM environment (AppEnvironmentExtra).Ask: move the pepper on vd03 to the service environment (as on QA) or the Secrets store, verifying the value is unchanged by hash prefix only (never print it), then verify an authenticated round-trip. Verify still open first — this was recorded as a deliberately-not-changed residual after the 2026-08-09 store-path incident.
Related, same box:
ASPNETCORE_ENVIRONMENTisStaginglive while the box-sideinstall-service.batsetsProduction, so a reinstall silently changes it (see the GLAuth TLS issue for why Production is currently not usable).Source: scadaproj auto-memory
wonder-upgrade-program.md(residual: "API-key pepper still in Server\appsettings.json"); repoappsettings.jsononly names the config key (PepperSecretName), not the value.