diff --git a/workspace-server/internal/handlers/workspace_compute.go b/workspace-server/internal/handlers/workspace_compute.go index 72dd3abed..c9dd0a3a9 100644 --- a/workspace-server/internal/handlers/workspace_compute.go +++ b/workspace-server/internal/handlers/workspace_compute.go @@ -453,6 +453,83 @@ func ComputeMetadata(c *gin.Context) { c.JSON(200, computeMetadataResponse{Providers: providers}) } +// computeInstanceAllowlistProvider is the per-provider shape returned by +// GET /compute/instance-allowlist (core#2489 phase-3 — the auth-gated +// counterpart of the public /compute/metadata). The shape is a SUPERSET of +// the public /compute/metadata payload: same id/label/default_instance/ +// instances fields, plus a `display_default` per provider for the +// canvas's CreateWorkspaceDialog display-mode create flow. The canvas +// can REPLACE its hardcoded CLOUD_PROVIDER_OPTIONS + +// DEFAULT_HEADLESS_INSTANCE_TYPE + DEFAULT_DISPLAY_INSTANCE_TYPE + the +//