feat(delmia-notifier): optional ScadaBridge:ApiKey in appsettings.json as a fallback to SCADABRIDGE_API_KEY (env still wins); README/env inventory/design row updated
The 2026-06-26 design kept the key env-only. The file is now an explicit fallback: SCADABRIDGE_API_KEY (non-blank) -> ScadaBridge:ApiKey (non-blank, trimmed) -> not configured. Env-only stays the recommended production posture; the failure message names both sources. Claude-Session: https://claude.ai/code/session_013L3XdmVii9i5sY4FChU8pB
This commit is contained in:
@@ -22,7 +22,7 @@ stdout contract, same exit-code semantics — so Delmia's invocation and output
|
||||
| Auth | `X-API-Key: <key>` header |
|
||||
| CLI/output | Exact parity with legacy `WWNotifier` (flags + `YES`/`NO` + exit code) |
|
||||
| Config | `appsettings.json` next to the exe (URLs, timeout, optional log path) |
|
||||
| Secret | API key from env var `SCADABRIDGE_API_KEY` — never in a file |
|
||||
| Secret | API key from env var `SCADABRIDGE_API_KEY` — never in a file **(relaxed 2026-09-02: optional `ScadaBridge:ApiKey` file fallback; env still wins)** |
|
||||
| Packaging | Self-contained **Native AOT**, `win-x64` (fast startup for per-invocation use) |
|
||||
| Failover | Comma-list of base URLs; advance **only on connect failure** |
|
||||
| Location | New project `src/ZB.MOM.WW.ScadaBridge.DelmiaNotifier`, in `ZB.MOM.WW.ScadaBridge.slnx` |
|
||||
|
||||
Reference in New Issue
Block a user