feat(ws-server): validate compute.provider vs cloud-provider SSOT (switch-provider PR1) #2420
Reference in New Issue
Block a user
Delete Branch "feat/ws-compute-provider-validation"
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?
PR1 of the switch-existing-workspace-provider series (RFC #622 in controlplane). ws-server validateWorkspaceCompute now validates compute.provider against an allowlist mirroring the controlplane cloudprovider SSOT (aws|gcp|hetzner): a clean 400 before the CP round-trip instead of a CP 422. Pinned by TestValidateWorkspaceCompute_Provider incl. an SSOT-drift assertion. No behavior change to valid requests. Generated with Claude Code
APPROVED: narrow provider allowlist validation for workspace compute is correct and scoped. It accepts the documented default/SSOT providers, rejects unknown and case-mismatched values before backend round trips, and adds tests pinning the exact mirror set. No auth/gate/merge-control weakening or regression found. BP-required contexts are green on current head.
2nd-axis review on current head
286779ec45: APPROVED. Clean fail-closed validation hardening: compute.provider is now rejected unless empty/default or one of the SSOT-mirrored wired providers aws/gcp/hetzner. Tests cover accepted values, rejected aliases/unknowns, and exact allowlist drift. No gate/auth/merge-control changes, no regression found. BP-required contexts are present+success and PR is mergeable./qa-recheck
/security-recheck