An open-source, faster Devin alternative
TypeScript
add var to map, set fallback
Brian Reardond206a6476f7b
diff --git a/internal/config/config.go b/internal/config/config.goindex fbf5bc09..29fe15ae 100644--- a/internal/config/config.go+++ b/internal/config/config.go@@ -443,7 +443,13 @@ func Load() (*Config, error) {AxiomQueryToken: os.Getenv("AXIOM_QUERY_TOKEN"),AxiomDataset: envOrDefault("AXIOM_DATASET", "oc-sandbox-logs"),- VMDOEdgeURL: os.Getenv("OPENSANDBOX_VMDO_EDGE_URL"),+ // OPENSANDBOX_VMDO_EDGE_URL is an optional override (mapped from+ // worker-vmdo-edge-url, left unset in our vaults). Unset → fall back to+ // OPENSANDBOX_CF_EDGE_BASE_URL (shared-cf-edge-base-url; env-specific:+ // app.opencomputer.dev prod / app2.opensandbox.ai dev) — the VM-DO dialer+ // targets the same edge as the CP's edgeclient, so this auto-enables the+ // plane wherever the edge is already configured, no separate secret to fill.+ VMDOEdgeURL: envOrDefault("OPENSANDBOX_VMDO_EDGE_URL", os.Getenv("OPENSANDBOX_CF_EDGE_BASE_URL")),SecretsARN: os.Getenv("OPENSANDBOX_SECRETS_ARN"),diff --git a/internal/config/keyvault.go b/internal/config/keyvault.goindex b160c06a..df9278e6 100644--- a/internal/config/keyvault.go+++ b/internal/config/keyvault.go@@ -104,6 +104,13 @@ var kvMapping = map[string]string{"worker-s3-force-path-style": "OPENSANDBOX_S3_FORCE_PATH_STYLE","worker-cf-event-endpoint": "OPENSANDBOX_CF_EVENT_ENDPOINT","worker-halt-list-url": "OPENSANDBOX_HALT_LIST_URL",+ // VM-DO exec data plane: optional per-env override for the api-edge base URL+ // the worker host dials for the per-sandbox VmSession DO. LEFT UNSET in our+ // vaults on purpose — config.Load() then falls back to OPENSANDBOX_CF_EDGE_BASE_URL+ // (shared-cf-edge-base-url), which is the same edge. Only set this if VM-DO+ // must dial a different edge than the CP's edgeclient uses. Mapped here so the+ // knob is discoverable + provisionable rather than a ghost env var.+ "worker-vmdo-edge-url": "OPENSANDBOX_VMDO_EDGE_URL","worker-segment-write-key": "SEGMENT_WRITE_KEY",// CF-cutover event pipe (worker)