Skip to content

An open-source, faster Devin alternative

TypeScript

restore Axiom + Key Vault env vars dropped from worker provisioning by WorkerSpec refactor

Brian Reardon778b2c78c0fc
diff --git a/cmd/server/main.go b/cmd/server/main.go
index 63a6c113..3ec4df0c 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -316,6 +316,9 @@ func main() {
S3ForcePathStyle: cfg.S3ForcePathStyle,
SegmentWriteKey: cfg.SegmentWriteKey,
SecretsRef: cfg.SecretsARN,
+ AxiomIngestToken: cfg.AxiomIngestToken,
+ AxiomDataset: cfg.AxiomDataset,
+ KeyVaultName: cfg.AzureKeyVaultName,
}
// Provider selection. Explicit cfg.ComputeProvider wins; otherwise we
diff --git a/internal/compute/pool.go b/internal/compute/pool.go
index 901388cf..173848ab 100644
--- a/internal/compute/pool.go
+++ b/internal/compute/pool.go
@@ -74,6 +74,17 @@ type WorkerSpec struct {
// Optional analytics
SegmentWriteKey string
+ // Sandbox session log shipping (in-VM agent → Axiom). If empty, workers
+ // skip ConfigureLogship for every sandbox and no session logs reach the
+ // dashboard/CLI.
+ AxiomIngestToken string
+ AxiomDataset string
+
+ // Azure Key Vault name. Workers need it at boot for
+ // populate-vector-env.service (platform logs/metrics) and KV-backed
+ // config loading. Azure-only; leave empty on other providers.
+ KeyVaultName string
+
// Provider-specific secrets reference (AWS Secrets Manager ARN, GCP Secret
// Manager name, etc.). The pool decides what to do with this — Azure pool
// ignores it (uses Key Vault directly), AWS pool exports it as
@@ -142,6 +153,10 @@ func BuildWorkerEnv(spec WorkerSpec) string {
{"OPENSANDBOX_S3_FORCE_PATH_STYLE", boolStr(spec.S3ForcePathStyle)},
{"OPENSANDBOX_SANDBOX_DOMAIN", spec.SandboxDomain},
{"SEGMENT_WRITE_KEY", spec.SegmentWriteKey},
+ {"AXIOM_INGEST_TOKEN", spec.AxiomIngestToken},
+ {"AXIOM_DATASET", spec.AxiomDataset},
+ {"OPENSANDBOX_AZURE_KEY_VAULT_NAME", spec.KeyVaultName},
+ {"SECRETS_VAULT_NAME", spec.KeyVaultName},
{"OPENSANDBOX_CF_EVENT_ENDPOINT", spec.CFEventEndpoint},
{"OPENSANDBOX_CF_EVENT_SECRET", spec.CFEventSecret},
{"OPENSANDBOX_CF_ADMIN_SECRET", spec.CFAdminSecret},