fix: supply Azure SAS stage workers the configured key prefix

Merged
KH
4d ago
+242-17

Azure SAS socket stage workers omit the required PIPELINE_KEY_PREFIX, so Bob Costas, Referee and the metadata indexer fail at startup. Render it once from worker.locker.azure.keyPrefix, require the enabled writer root to match, and reject invalid or duplicate/indirect overrides.

Reader disposition: preserve the canonical reader's existing literal 96bulls admission. The enabled-reader integration renders at the shared default root with either SAS or Shared Key writer authentication. Custom-root stage configurations remain supported only without the canonical reader; they fail explicitly when that reader is enabled, including a reader misleadingly left on 96bulls beside a custom-root writer. The stage-only custom-root fixture does not qualify a complete application.

Normal merge of main c9968d6c; candidate versions: worker 0.7.21, sessions-pipeline 0.8.73, agent-relay 0.7.101, with rebuilt locks and aligned registry metadata. Separate from #574 (0.8.72/0.7.100), #618 (0.7.99), and the bootstrap-ordering candidate (0.8.74/0.7.102). Default images, SQL pins and strict reader admission remain unchanged. A qualified Node Locker custom-stage image is still required.

Validation at 6ffda6dd1896b8ad4e6555a08bf337bcc72f9412: 11 Azure render tests, 2 canonical-reader admission tests, 20 advisor/analysis tests, Bash 5 changed-chart static checks for worker/pipeline/umbrella (131 render/refusal cases), dependency checks, requirements registry (217 entries/29 profiles), git diff --check, Veto PASS. Exact-head CI: https://github.com/AgentWorkforce/infra/actions/runs/46384711953 completed SUCCESS at the exact successor head.

OwnerTwo independently reviewed this exact source and CI: bounded source PASS. OwnerTwo did not rerun local tests; the local validation counts above are author evidence.

Held for the remaining owner merge/release gates. Qualified image and live Azure/full application proof remain separate. This update performs no merge to main, chart publication, cloud apply or deployment.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes Azure SAS socket stage workers failing during startup by supplying the required PIPELINE_KEY_PREFIX environment variable from the configured writer root.

  • Renders PIPELINE_KEY_PREFIX exactly once on Bob Costas, Referee, and the metadata indexer from worker.locker.azure.keyPrefix (default 96bulls), which must equal the enabled writer's ingestEdge.keyRoot, including when the writer uses Shared Key alongside SAS workers.
  • Refuses invalid roots, duplicate PIPELINE_KEY_PREFIX entries, and indirect overrides at render time.
  • Custom roots qualify only the stage subset; an enabled canonical read API still requires the shared 96bulls root, otherwise render fails.
  • Clarifies SAS socket mode also requires an empty worker.secretKeys.lockerAzureAccountKey and disabled session analysis, coordination-advisor, and session-brief components.
  • Scopes Azure account key guidance to Shared Key mode and bumps worker, pipeline, and umbrella chart versions with dependency locks and requirements metadata.
  • A qualified services image with Node Locker custom-stage handlers is still required; default image and SQL pins are unchanged.