deploy(wonder-app-vd03): add ScadaBridge:Communication:GrpcPsk before next deploy — site node is fail-closed without it #30

Closed
opened 2026-07-23 11:52:30 -04:00 by dohertj2 · 1 comment
Owner

Severity: High for the next deploy (site role won't boot) · Area: Deployment / Security · Owner: user-held (overlay is gitignored, outside this repo's tracked tree)

What

As of the gRPC migration Phase 0 (2026-07-22), StartupValidator is fail-closed on the site control-plane preshared key: a site-role node refuses to boot without ScadaBridge:Communication:GrpcPsk. This is deliberate — an unset key must never degrade to unauthenticated serving; without it the node would look healthy while serving nothing.

The gitignored deploy/wonder-app-vd03/ overlay (appsettings.Site.json) does not yet carry this key.

Impact

The next deploy of wonder-app-vd03 to a site role will fail startup until the key is added. (Central-only deploys are unaffected.)

Action

Before the next site deploy, add:

  • site side: ScadaBridge:Communication:GrpcPsk = ${secret:SB-GRPC-PSK-<siteId>} (production) or a literal dev key
  • central side: a matching SB-GRPC-PSK-<siteId> in the secrets store (or ScadaBridge:Communication:SitePsks:<siteId> override)

Keys are one-per-site, never fleet-wide.

**Severity:** High for the next deploy (site role won't boot) · **Area:** Deployment / Security · **Owner:** user-held (overlay is gitignored, outside this repo's tracked tree) ## What As of the gRPC migration Phase 0 (2026-07-22), `StartupValidator` is **fail-closed** on the site control-plane preshared key: a **site-role node refuses to boot** without `ScadaBridge:Communication:GrpcPsk`. This is deliberate — an unset key must never degrade to unauthenticated serving; without it the node would look healthy while serving nothing. The gitignored `deploy/wonder-app-vd03/` overlay (`appsettings.Site.json`) does **not** yet carry this key. ## Impact The next deploy of `wonder-app-vd03` to a **site** role will fail startup until the key is added. (Central-only deploys are unaffected.) ## Action Before the next site deploy, add: - site side: `ScadaBridge:Communication:GrpcPsk` = `${secret:SB-GRPC-PSK-<siteId>}` (production) or a literal dev key - central side: a matching `SB-GRPC-PSK-<siteId>` in the secrets store (or `ScadaBridge:Communication:SitePsks:<siteId>` override) Keys are one-per-site, never fleet-wide.
Author
Owner

Triage 2026-11-09 (evidence from origin/main, repo-only):

  • The fail-closed check is in the build vd03 now runs: StartupValidator.cs (3808b49f, line ~179) Require("ScadaBridge:Communication:GrpcPsk") for Site nodes; the property was already in fe89363b.
  • vd03 was deployed on 2026-09-28 (fe89363b, record docs/deployment/deployment-records/2026-09-28-wonder-app-vd03-fe89363b.md: Site started -> ready 09:59:39) and again on 2026-10-22 (3808b49f, record 2026-10-22-wonder-app-vd03-3808b49f.md: 'No appsettings change', appsettings.Site.json restored by SHA-256, Site ready 15:18:24, /health/ready 200, post-deploy snapshots identical, artifact deploy --site-id 2 succeeded).
  • A site node cannot reach ready on that build without a non-empty GrpcPsk, so the key is configured in the vd03 overlay. The records do not state how it was set; that is the only gap, and the boot proves the outcome.
    Closing as done.
Triage 2026-11-09 (evidence from origin/main, repo-only): - The fail-closed check is in the build vd03 now runs: StartupValidator.cs (3808b49f, line ~179) Require("ScadaBridge:Communication:GrpcPsk") for Site nodes; the property was already in fe89363b. - vd03 was deployed on 2026-09-28 (fe89363b, record docs/deployment/deployment-records/2026-09-28-wonder-app-vd03-fe89363b.md: Site started -> ready 09:59:39) and again on 2026-10-22 (3808b49f, record 2026-10-22-wonder-app-vd03-3808b49f.md: 'No appsettings change', appsettings.Site.json restored by SHA-256, Site ready 15:18:24, /health/ready 200, post-deploy snapshots identical, artifact deploy --site-id 2 succeeded). - A site node cannot reach ready on that build without a non-empty GrpcPsk, so the key is configured in the vd03 overlay. The records do not state how it was set; that is the only gap, and the boot proves the outcome. Closing as done.
Sign in to join this conversation.