An open-source, faster Devin alternative
TypeScript
Merge main into secret-store-refresh
Brian Reardon187cb36abed2
diff --cc internal/api/sandbox.goindex 111a8693,5890c087..4355c9c6--- a/internal/api/sandbox.go+++ b/internal/api/sandbox.go@@@ -958,6 -961,13 +961,14 @@@ func (s *Server) migrateSandbox(c echo.WorkspaceS3Key: preCopyResp.WorkspaceKey,OverlayMode: true,SourceGoldenVersion: preCopyResp.GoldenVersion,+ // Carry the secrets-proxy session from source → target. Without+ // this the destination has no substitution map and outbound HTTPS+ // from the migrated VM would leak `osb_sealed_xxx` env vars+ // verbatim to upstream services. Empty when no secret store.+ SealedTokens: preCopyResp.SealedTokens,+ EgressAllowlist: preCopyResp.EgressAllowlist,+ TokenHosts: preCopyResp.TokenHosts,++ SealedNames: preCopyResp.SealedNames,})if err != nil {return c.JSON(http.StatusInternalServerError, map[string]string{"error": "prepare target: " + err.Error()})@@@ -1387,6 -1445,10 +1446,11 @@@ func (s *Server) migrateForScale(ctx coOverlayMode: true,SourceGoldenVersion: preCopyResp.GoldenVersion,TargetMemoryMb: int32(memoryMB),+ // Carry secrets-proxy session from source to target (see PreCopyDrives).+ SealedTokens: preCopyResp.SealedTokens,+ EgressAllowlist: preCopyResp.EgressAllowlist,+ TokenHosts: preCopyResp.TokenHosts,++ SealedNames: preCopyResp.SealedNames,})if err != nil {log.Printf("scale-migrate %s: prepare target failed: %v", sandboxID, err)diff --cc internal/qemu/manager.goindex bb96b784,3cbf3a34..740ca64d--- a/internal/qemu/manager.go+++ b/internal/qemu/manager.go@@@ -2651,10 -2709,11 +2730,11 @@@ func (m *Manager) RestoreFromCheckpointlog.Printf("qemu: RestoreFromCheckpoint %s: clock sync failed: %v", sandboxID, err)}- // Re-register secrets proxy session from checkpoint metadata.- if m.secretsProxy != nil && len(cpMeta.SealedTokens) > 0 {+ // Re-register secrets proxy session from checkpoint metadata. An allowlist+ // alone is enough — without a session the proxy 407s every request.+ if m.secretsProxy != nil && (len(cpMeta.SealedTokens) > 0 || len(cpMeta.EgressAllowlist) > 0) {- m.secretsProxy.ReregisterSession(sandboxID, netCfg.GuestIP, cpMeta.SealedTokens, cpMeta.EgressAllowlist, cpMeta.TokenHosts)- log.Printf("qemu: RestoreFromCheckpoint %s: re-registered secrets proxy session (%d tokens, %d allowlist)", sandboxID, len(cpMeta.SealedTokens), len(cpMeta.EgressAllowlist))+ m.secretsProxy.ReregisterSession(sandboxID, netCfg.GuestIP, cpMeta.SealedTokens, cpMeta.EgressAllowlist, cpMeta.TokenHosts, cpMeta.SealedNames)- log.Printf("qemu: RestoreFromCheckpoint %s: re-registered secrets proxy session (%d tokens)", sandboxID, len(cpMeta.SealedTokens))++ log.Printf("qemu: RestoreFromCheckpoint %s: re-registered secrets proxy session (%d tokens, %d allowlist, %d names)", sandboxID, len(cpMeta.SealedTokens), len(cpMeta.EgressAllowlist), len(cpMeta.SealedNames))}// Step 8: Update VM instancediff --cc internal/qemu/migration.goindex 508e1081,6d172ad5..349cb859--- a/internal/qemu/migration.go+++ b/internal/qemu/migration.go@@@ -597,6 -625,17 +625,18 @@@ func (m *Manager) PreCopyDrives(ctx conactualMem = readProcRSSMB(pid)}+ // Capture secrets-proxy state BEFORE we start uploading drives. The+ // proxy session is keyed by guest IP; we look it up here so the+ // orchestrator can hand it to the target via PrepareMigrationIncoming.+ // Empty maps when no secrets are registered — orchestrator just passes+ // nil/empty through and target's ReregisterSession is a no-op.+ if m.secretsProxy != nil && guestIP != "" {+ secrets.SealedTokens = m.secretsProxy.GetSessionTokens(guestIP)+ secrets.EgressAllowlist = m.secretsProxy.GetSessionAllowlist(guestIP)+ secrets.TokenHosts = m.secretsProxy.GetSessionTokenHosts(guestIP)++ secrets.SealedNames = m.secretsProxy.GetSessionNames(guestIP)+ }+mc := &MigrationCoordinator{manager: m,checkpointStore: checkpointStore,@@@ -691,7 -738,26 +739,26 @@@ func (m *Manager) PrepareIncomingMigratreturn "", 0, r.err}- return m.PrepareIncomingMigration(ctx, sandboxID, rootfsPath, workspacePath, cpus, memMB, guestPort, template)+ incomingAddr, hostPort, err = m.PrepareIncomingMigration(ctx, sandboxID, rootfsPath, workspacePath, cpus, memMB, guestPort, template)+ if err != nil {+ return "", 0, err+ }++ // Re-register the secrets-proxy session on this worker, keyed by the+ // guest IP we just allocated in PrepareIncomingMigration. Done before+ // returning so the source can issue the LiveMigrate RPC immediately+ // without a races window where the migrated VM is running but the+ // proxy has no substitution map.+ // An allowlist alone is enough — without a session the proxy 407s every request.+ if m.secretsProxy != nil && (len(secrets.SealedTokens) > 0 || len(secrets.EgressAllowlist) > 0) {+ if vm, getErr := m.getVM(sandboxID); getErr == nil && vm.network != nil && vm.network.GuestIP != "" {- m.secretsProxy.ReregisterSession(sandboxID, vm.network.GuestIP, secrets.SealedTokens, secrets.EgressAllowlist, secrets.TokenHosts)++ m.secretsProxy.ReregisterSession(sandboxID, vm.network.GuestIP, secrets.SealedTokens, secrets.EgressAllowlist, secrets.TokenHosts, secrets.SealedNames)+ log.Printf("qemu: migration %s: re-registered secrets proxy session (%d tokens, %d allowlist, guestIP=%s)",+ sandboxID, len(secrets.SealedTokens), len(secrets.EgressAllowlist), vm.network.GuestIP)+ }+ }++ return incomingAddr, hostPort, nil}// downloadS3ToFile downloads an S3 object to a local file.diff --cc internal/qemu/snapshot.goindex 407d67e0,81ee343e..247da1f4--- a/internal/qemu/snapshot.go+++ b/internal/qemu/snapshot.go@@@ -491,11 -486,17 +491,17 @@@ func (m *Manager) doWake(ctx context.Colog.Printf("qemu: wake %s: clock sync failed: %v", sandboxID, err)}- // Re-register secrets proxy session from persisted tokens.- if m.secretsProxy != nil && len(meta.SealedTokens) > 0 {+ // Re-register secrets proxy session from persisted tokens. An allowlist+ // alone is enough — without a session the proxy 407s every request.+ if m.secretsProxy != nil && (len(meta.SealedTokens) > 0 || len(meta.EgressAllowlist) > 0) {- m.secretsProxy.ReregisterSession(sandboxID, netCfg.GuestIP, meta.SealedTokens, meta.EgressAllowlist, meta.TokenHosts)- log.Printf("qemu: wake %s: re-registered secrets proxy session (%d tokens, %d allowlist)", sandboxID, len(meta.SealedTokens), len(meta.EgressAllowlist))+ m.secretsProxy.ReregisterSession(sandboxID, netCfg.GuestIP, meta.SealedTokens, meta.EgressAllowlist, meta.TokenHosts, meta.SealedNames)- log.Printf("qemu: wake %s: re-registered secrets proxy session (%d tokens)", sandboxID, len(meta.SealedTokens))++ log.Printf("qemu: wake %s: re-registered secrets proxy session (%d tokens, %d allowlist, %d names)", sandboxID, len(meta.SealedTokens), len(meta.EgressAllowlist), len(meta.SealedNames))}+ // Refresh the proxy CA in the guest's trust store. Wake may land on a+ // different worker than the one that hibernated the sandbox, in which+ // case the cert in the guest's trust store no longer matches what this+ // worker's proxy presents. Idempotent on same-worker wake.+ m.reinstallProxyCA(context.Background(), sandboxID, agentClient)log.Printf("qemu: wake %s: golden restore complete (port=%d, tap=%s)",sandboxID, hostPort, netCfg.TAPName)diff --cc internal/sandbox/interface.goindex e977bc81,cc8738f4..f40cba2c--- a/internal/sandbox/interface.go+++ b/internal/sandbox/interface.go@@@ -15,6 -15,22 +15,27 @@@ type HibernateResult structSizeBytes int64 `json:"sizeBytes"`}+ // MigrationSecrets is the per-sandbox secrets-proxy state that must move+ // with the VM during a live migration. The proxy keeps these in-process+ // per-worker (see internal/secretsproxy), so without an explicit handoff+ // the destination has no substitution map and the guest's env vars+ // (`osb_sealed_xxx`) leak verbatim to upstream services. Hibernate+ // persists the same data into snapshot-meta.json; live migration carries+ // it through the PreCopyDrives → PrepareMigrationIncoming RPC chain.+ //+ // Lives in package sandbox (not qemu) so the worker grpc layer can name+ // it without importing qemu (which would create a cycle).+ type MigrationSecrets struct {+ SealedTokens map[string]string+ EgressAllowlist []string+ TokenHosts map[string][]string++ // SealedNames is the env-var-name → sealed-token index. Carried across++ // migration so refresh-by-name (UpdateSecretValue) keeps working on the++ // destination. Without it, post-migration secret-store updates would++ // silently miss because the destination's session has no name index.++ SealedNames map[string]string+ }+// SandboxStats holds live resource usage for a sandbox.// Runtime-agnostic interface for sandbox resource stats.type SandboxStats struct {diff --cc internal/secretsproxy/proxy.goindex e422fbed,7ad385f7..555cd0aa--- a/internal/secretsproxy/proxy.go+++ b/internal/secretsproxy/proxy.go@@@ -282,14 -239,11 +284,19 @@@ func (p *SecretsProxy) CreateSealedEnvs}}- // Only register a proxy session if there's actually something to substitute.- if len(tokenMap) > 0 {+ // Register a proxy session whenever the sandbox has anything for the proxy+ // to act on: tokens to substitute OR an egress allowlist to enforce. Without+ // a session the proxy rejects every CONNECT with 407 no_session, so an+ // allowlist-only store would otherwise leave the sandbox with zero egress.+ if len(tokenMap) > 0 || len(allowlist) > 0 {+ // Build the env-var-name → sealed-token index. Required for- // UpdateSecretValue (refresh-by-name without re-sealing).++ // UpdateSecretValue (refresh-by-name without re-sealing). Always++ // included on the session so allowlist-only stores can later add++ // secrets via UpdateSecretValue without dropping the session.+ names := make(map[string]string, len(sealed))+ for envVar, token := range sealed {+ names[envVar] = token+ }p.RegisterSession(guestIP, &Session{SandboxID: sandboxID,Secrets: tokenMap,diff --cc internal/worker/grpc_server.goindex 5d44a6e2,c5c64901..e0265a18--- a/internal/worker/grpc_server.go+++ b/internal/worker/grpc_server.go@@@ -1011,7 -1017,20 +1028,21 @@@ func (s *GRPCServer) PreCopyDrives(ctxBaseMemoryMb: int32(baseMem),BaseCpuCount: int32(baseCPU),ActualMemoryMb: int32(actualMem),- }, nil+ }+ // Marshal the secrets-proxy session into the proto. Skipped silently+ // when the sandbox has no secret store registered (empty maps).+ if len(secrets.SealedTokens) > 0 {+ resp.SealedTokens = secrets.SealedTokens+ resp.EgressAllowlist = secrets.EgressAllowlist++ resp.SealedNames = secrets.SealedNames+ if len(secrets.TokenHosts) > 0 {+ resp.TokenHosts = make(map[string]*pb.HostList, len(secrets.TokenHosts))+ for tok, hosts := range secrets.TokenHosts {+ resp.TokenHosts[tok] = &pb.HostList{Hosts: hosts}+ }+ }+ }+ return resp, nil}func (s *GRPCServer) PrepareMigrationIncoming(ctx context.Context, req *pb.PrepareMigrationIncomingRequest) (*pb.PrepareMigrationIncomingResponse, error) {@@@ -1039,6 -1058,23 +1070,24 @@@}}+ // Unmarshal the secrets-proxy session from the request, if any. The+ // orchestrator will have copied this from PreCopyDrives. Empty when+ // the sandbox has no secret store.+ var secrets sandbox.MigrationSecrets+ if len(req.SealedTokens) > 0 {+ secrets.SealedTokens = req.SealedTokens+ secrets.EgressAllowlist = req.EgressAllowlist++ secrets.SealedNames = req.SealedNames+ if len(req.TokenHosts) > 0 {+ secrets.TokenHosts = make(map[string][]string, len(req.TokenHosts))+ for tok, hl := range req.TokenHosts {+ if hl != nil {+ secrets.TokenHosts[tok] = hl.Hosts+ }+ }+ }+ }+var (addr stringhostPort intdiff --cc proto/worker/worker.pb.goindex f81d42d2,af72443a..2d199391--- a/proto/worker/worker.pb.go+++ b/proto/worker/worker.pb.go@@@ -2957,8 -2957,19 +2957,24 @@@ type PreCopyDrivesResponse struct// Used for actual-memory-based scheduling instead of committed/configured// memory (which over-reserves on idle sandboxes).ActualMemoryMb int32 `protobuf:"varint,6,opt,name=actual_memory_mb,json=actualMemoryMb,proto3" json:"actual_memory_mb,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // Secrets-proxy session state for the migrating sandbox. Live migration+ // moves the QEMU process (which carries the in-VM env vars containing+ // sealed token IDs) but the proxy's plaintext-substitution map is+ // per-worker in-process state. Without these the destination worker has+ // no way to substitute the literal `osb_sealed_xxx` strings on outbound+ // HTTPS, so the guest's first secret-using call after migration fails+ // auth. Mirrors the SealedTokens/EgressAllowlist/TokenHosts fields the+ // hibernate path persists into snapshot-meta.json.+ SealedTokens map[string]string `protobuf:"bytes,7,rep,name=sealed_tokens,json=sealedTokens,proto3" json:"sealed_tokens,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // sealed_id -> plaintext secret value+ EgressAllowlist []string `protobuf:"bytes,8,rep,name=egress_allowlist,json=egressAllowlist,proto3" json:"egress_allowlist,omitempty"` // host allowlist for the secrets proxy+ TokenHosts map[string]*HostList `protobuf:"bytes,9,rep,name=token_hosts,json=tokenHosts,proto3" json:"token_hosts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // sealed_id -> per-token allowed hosts- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache++ // env-var-name -> sealed_id index. Required so refresh-by-name++ // (UpdateSandboxSecret) keeps working on the destination worker after++ // migration. Without it, post-migration secret-store updates would silently++ // miss because the destination's session has no name → token mapping.++ SealedNames map[string]string `protobuf:"bytes,10,rep,name=sealed_names,json=sealedNames,proto3" json:"sealed_names,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`++ unknownFields protoimpl.UnknownFields++ sizeCache protoimpl.SizeCache}func (x *PreCopyDrivesResponse) Reset() {@@@ -3033,6 -3044,72 +3049,79 @@@ func (x *PreCopyDrivesResponse) GetActureturn 0}+ func (x *PreCopyDrivesResponse) GetSealedTokens() map[string]string {+ if x != nil {+ return x.SealedTokens+ }+ return nil+ }++ func (x *PreCopyDrivesResponse) GetEgressAllowlist() []string {+ if x != nil {+ return x.EgressAllowlist+ }+ return nil+ }++ func (x *PreCopyDrivesResponse) GetTokenHosts() map[string]*HostList {+ if x != nil {+ return x.TokenHosts+ }+ return nil+ }+++func (x *PreCopyDrivesResponse) GetSealedNames() map[string]string {++ if x != nil {++ return x.SealedNames++ }++ return nil++}+++ // HostList is a wrapper because proto3 maps cannot have a repeated value type.+ type HostList struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+ }++ func (x *HostList) Reset() {+ *x = HostList{}+ mi := &file_proto_worker_worker_proto_msgTypes[52]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }++ func (x *HostList) String() string {+ return protoimpl.X.MessageStringOf(x)+ }++ func (*HostList) ProtoMessage() {}++ func (x *HostList) ProtoReflect() protoreflect.Message {+ mi := &file_proto_worker_worker_proto_msgTypes[52]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+ }++ // Deprecated: Use HostList.ProtoReflect.Descriptor instead.+ func (*HostList) Descriptor() ([]byte, []int) {+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{52}+ }++ func (x *HostList) GetHosts() []string {+ if x != nil {+ return x.Hosts+ }+ return nil+ }+type PrepareMigrationIncomingRequest struct {state protoimpl.MessageState `protogen:"open.v1"`SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`@@@ -3047,8 -3124,15 +3136,16 @@@OverlayMode bool `protobuf:"varint,10,opt,name=overlay_mode,json=overlayMode,proto3" json:"overlay_mode,omitempty"` // if true, rootfs is thin overlay — rebase to local golden on targetTargetMemoryMb int32 `protobuf:"varint,11,opt,name=target_memory_mb,json=targetMemoryMb,proto3" json:"target_memory_mb,omitempty"` // final memory after scale — worker checks capacity and reserves atomicallySourceGoldenVersion string `protobuf:"bytes,12,opt,name=source_golden_version,json=sourceGoldenVersion,proto3" json:"source_golden_version,omitempty"` // source's golden version — target rebases overlay if different from its own- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // Secrets-proxy session state captured from the source by PreCopyDrives.+ // Target re-registers these on its in-process secrets proxy BEFORE the+ // VM resumes (Cont) so the first outbound HTTPS request after migration+ // has its `osb_sealed_xxx` env vars correctly substituted.+ SealedTokens map[string]string `protobuf:"bytes,13,rep,name=sealed_tokens,json=sealedTokens,proto3" json:"sealed_tokens,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ EgressAllowlist []string `protobuf:"bytes,14,rep,name=egress_allowlist,json=egressAllowlist,proto3" json:"egress_allowlist,omitempty"`+ TokenHosts map[string]*HostList `protobuf:"bytes,15,rep,name=token_hosts,json=tokenHosts,proto3" json:"token_hosts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`++ SealedNames map[string]string `protobuf:"bytes,16,rep,name=sealed_names,json=sealedNames,proto3" json:"sealed_names,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *PrepareMigrationIncomingRequest) Reset() {@@@ -3165,6 -3249,27 +3262,34 @@@ func (x *PrepareMigrationIncomingRequesreturn ""}+ func (x *PrepareMigrationIncomingRequest) GetSealedTokens() map[string]string {+ if x != nil {+ return x.SealedTokens+ }+ return nil+ }++ func (x *PrepareMigrationIncomingRequest) GetEgressAllowlist() []string {+ if x != nil {+ return x.EgressAllowlist+ }+ return nil+ }++ func (x *PrepareMigrationIncomingRequest) GetTokenHosts() map[string]*HostList {+ if x != nil {+ return x.TokenHosts+ }+ return nil+ }+++func (x *PrepareMigrationIncomingRequest) GetSealedNames() map[string]string {++ if x != nil {++ return x.SealedNames++ }++ return nil++}++type PrepareMigrationIncomingResponse struct {state protoimpl.MessageState `protogen:"open.v1"`IncomingAddr string `protobuf:"bytes,1,opt,name=incoming_addr,json=incomingAddr,proto3" json:"incoming_addr,omitempty"` // TCP address for source to migrate to (e.g. "10.100.1.7:49152")@@@ -3217,113 -3322,6 +3342,113 @@@ func (x *PrepareMigrationIncomingResponreturn 0}+type UpdateSandboxSecretRequest struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`+ SecretName string `protobuf:"bytes,2,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"` // env var name (the key in the secret store)+ Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // new plaintext value+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *UpdateSandboxSecretRequest) Reset() {+ *x = UpdateSandboxSecretRequest{}- mi := &file_proto_worker_worker_proto_msgTypes[54]++ mi := &file_proto_worker_worker_proto_msgTypes[55]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *UpdateSandboxSecretRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*UpdateSandboxSecretRequest) ProtoMessage() {}++func (x *UpdateSandboxSecretRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[54]++ mi := &file_proto_worker_worker_proto_msgTypes[55]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use UpdateSandboxSecretRequest.ProtoReflect.Descriptor instead.+func (*UpdateSandboxSecretRequest) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{54}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{55}+}++func (x *UpdateSandboxSecretRequest) GetSandboxId() string {+ if x != nil {+ return x.SandboxId+ }+ return ""+}++func (x *UpdateSandboxSecretRequest) GetSecretName() string {+ if x != nil {+ return x.SecretName+ }+ return ""+}++func (x *UpdateSandboxSecretRequest) GetValue() string {+ if x != nil {+ return x.Value+ }+ return ""+}++type UpdateSandboxSecretResponse struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ // updated is false if the worker has no proxy session for this sandbox+ // or the secret_name isn't registered on the session. Caller logs ++ // surfaces; not necessarily a hard error (sandbox may be mid-migration).+ Updated bool `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *UpdateSandboxSecretResponse) Reset() {+ *x = UpdateSandboxSecretResponse{}- mi := &file_proto_worker_worker_proto_msgTypes[55]++ mi := &file_proto_worker_worker_proto_msgTypes[56]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *UpdateSandboxSecretResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*UpdateSandboxSecretResponse) ProtoMessage() {}++func (x *UpdateSandboxSecretResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[55]++ mi := &file_proto_worker_worker_proto_msgTypes[56]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use UpdateSandboxSecretResponse.ProtoReflect.Descriptor instead.+func (*UpdateSandboxSecretResponse) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{55}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{56}+}++func (x *UpdateSandboxSecretResponse) GetUpdated() bool {+ if x != nil {+ return x.Updated+ }+ return false+}+type LiveMigrateRequest struct {state protoimpl.MessageState `protogen:"open.v1"`SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`@@@ -3334,7 -3332,7 +3459,7 @@@func (x *LiveMigrateRequest) Reset() {*x = LiveMigrateRequest{}- mi := &file_proto_worker_worker_proto_msgTypes[56]- mi := &file_proto_worker_worker_proto_msgTypes[55]++ mi := &file_proto_worker_worker_proto_msgTypes[57]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -3346,7 -3344,7 +3471,7 @@@ func (x *LiveMigrateRequest) String() sfunc (*LiveMigrateRequest) ProtoMessage() {}func (x *LiveMigrateRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[56]- mi := &file_proto_worker_worker_proto_msgTypes[55]++ mi := &file_proto_worker_worker_proto_msgTypes[57]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -3359,7 -3357,7 +3484,7 @@@// Deprecated: Use LiveMigrateRequest.ProtoReflect.Descriptor instead.func (*LiveMigrateRequest) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{56}- return file_proto_worker_worker_proto_rawDescGZIP(), []int{55}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{57}}func (x *LiveMigrateRequest) GetSandboxId() string {@@@ -3384,7 -3382,7 +3509,7 @@@ type LiveMigrateResponse structfunc (x *LiveMigrateResponse) Reset() {*x = LiveMigrateResponse{}- mi := &file_proto_worker_worker_proto_msgTypes[57]- mi := &file_proto_worker_worker_proto_msgTypes[56]++ mi := &file_proto_worker_worker_proto_msgTypes[58]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -3396,7 -3394,7 +3521,7 @@@ func (x *LiveMigrateResponse) String()func (*LiveMigrateResponse) ProtoMessage() {}func (x *LiveMigrateResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[57]- mi := &file_proto_worker_worker_proto_msgTypes[56]++ mi := &file_proto_worker_worker_proto_msgTypes[58]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -3409,7 -3407,7 +3534,7 @@@// Deprecated: Use LiveMigrateResponse.ProtoReflect.Descriptor instead.func (*LiveMigrateResponse) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{57}- return file_proto_worker_worker_proto_rawDescGZIP(), []int{56}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{58}}type CompleteMigrationIncomingRequest struct {@@@ -3421,7 -3419,7 +3546,7 @@@func (x *CompleteMigrationIncomingRequest) Reset() {*x = CompleteMigrationIncomingRequest{}- mi := &file_proto_worker_worker_proto_msgTypes[58]- mi := &file_proto_worker_worker_proto_msgTypes[57]++ mi := &file_proto_worker_worker_proto_msgTypes[59]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -3433,7 -3431,7 +3558,7 @@@ func (x *CompleteMigrationIncomingRequefunc (*CompleteMigrationIncomingRequest) ProtoMessage() {}func (x *CompleteMigrationIncomingRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[58]- mi := &file_proto_worker_worker_proto_msgTypes[57]++ mi := &file_proto_worker_worker_proto_msgTypes[59]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -3446,7 -3444,7 +3571,7 @@@// Deprecated: Use CompleteMigrationIncomingRequest.ProtoReflect.Descriptor instead.func (*CompleteMigrationIncomingRequest) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{58}- return file_proto_worker_worker_proto_rawDescGZIP(), []int{57}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{59}}func (x *CompleteMigrationIncomingRequest) GetSandboxId() string {@@@ -3464,7 -3462,7 +3589,7 @@@ type CompleteMigrationIncomingResponsefunc (x *CompleteMigrationIncomingResponse) Reset() {*x = CompleteMigrationIncomingResponse{}- mi := &file_proto_worker_worker_proto_msgTypes[59]- mi := &file_proto_worker_worker_proto_msgTypes[58]++ mi := &file_proto_worker_worker_proto_msgTypes[60]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -3476,7 -3474,7 +3601,7 @@@ func (x *CompleteMigrationIncomingRespofunc (*CompleteMigrationIncomingResponse) ProtoMessage() {}func (x *CompleteMigrationIncomingResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[59]- mi := &file_proto_worker_worker_proto_msgTypes[58]++ mi := &file_proto_worker_worker_proto_msgTypes[60]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -3489,7 -3487,7 +3614,7 @@@// Deprecated: Use CompleteMigrationIncomingResponse.ProtoReflect.Descriptor instead.func (*CompleteMigrationIncomingResponse) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{59}- return file_proto_worker_worker_proto_rawDescGZIP(), []int{58}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{60}}// Golden snapshot management@@@ -3501,7 -3499,7 +3626,7 @@@ type RebuildGoldenSnapshotRequest strucfunc (x *RebuildGoldenSnapshotRequest) Reset() {*x = RebuildGoldenSnapshotRequest{}- mi := &file_proto_worker_worker_proto_msgTypes[60]- mi := &file_proto_worker_worker_proto_msgTypes[59]++ mi := &file_proto_worker_worker_proto_msgTypes[61]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -3513,7 -3511,7 +3638,7 @@@ func (x *RebuildGoldenSnapshotRequest)func (*RebuildGoldenSnapshotRequest) ProtoMessage() {}func (x *RebuildGoldenSnapshotRequest) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[60]- mi := &file_proto_worker_worker_proto_msgTypes[59]++ mi := &file_proto_worker_worker_proto_msgTypes[61]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -3526,7 -3524,7 +3651,7 @@@// Deprecated: Use RebuildGoldenSnapshotRequest.ProtoReflect.Descriptor instead.func (*RebuildGoldenSnapshotRequest) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{60}- return file_proto_worker_worker_proto_rawDescGZIP(), []int{59}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{61}}type RebuildGoldenSnapshotResponse struct {@@@ -3539,7 -3537,7 +3664,7 @@@func (x *RebuildGoldenSnapshotResponse) Reset() {*x = RebuildGoldenSnapshotResponse{}- mi := &file_proto_worker_worker_proto_msgTypes[61]- mi := &file_proto_worker_worker_proto_msgTypes[60]++ mi := &file_proto_worker_worker_proto_msgTypes[62]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -3551,7 -3549,7 +3676,7 @@@ func (x *RebuildGoldenSnapshotResponsefunc (*RebuildGoldenSnapshotResponse) ProtoMessage() {}func (x *RebuildGoldenSnapshotResponse) ProtoReflect() protoreflect.Message {- mi := &file_proto_worker_worker_proto_msgTypes[61]- mi := &file_proto_worker_worker_proto_msgTypes[60]++ mi := &file_proto_worker_worker_proto_msgTypes[62]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -3564,7 -3562,7 +3689,7 @@@// Deprecated: Use RebuildGoldenSnapshotResponse.ProtoReflect.Descriptor instead.func (*RebuildGoldenSnapshotResponse) Descriptor() ([]byte, []int) {- return file_proto_worker_worker_proto_rawDescGZIP(), []int{61}- return file_proto_worker_worker_proto_rawDescGZIP(), []int{60}++ return file_proto_worker_worker_proto_rawDescGZIP(), []int{62}}func (x *RebuildGoldenSnapshotResponse) GetOldVersion() string {@@@ -3824,7 -3822,7 +3949,7 @@@ const file_proto_worker_worker_proto_ra"\x18SetSandboxLimitsResponse\";\n" +"\x14PreCopyDrivesRequest\x12\x1d\n" +"\n" +- "sandbox_id\x18\x01 \x01(\tR\tsandboxIdJ\x04\b\x02\x10\x03\"\xf8\x01\n" +- "sandbox_id\x18\x01 \x01(\tR\tsandboxIdJ\x04\b\x02\x10\x03\"\xdb\x04\n" +++ "sandbox_id\x18\x01 \x01(\tR\tsandboxIdJ\x04\b\x02\x10\x03\"\xee\x05\n" +"\x15PreCopyDrivesResponse\x12\x1d\n" +"\n" +"rootfs_key\x18\x01 \x01(\tR\trootfsKey\x12#\n" +@@@ -3832,7 -3830,19 +3957,24 @@@"\x0egolden_version\x18\x03 \x01(\tR\rgoldenVersion\x12$\n" +"\x0ebase_memory_mb\x18\x04 \x01(\x05R\fbaseMemoryMb\x12$\n" +"\x0ebase_cpu_count\x18\x05 \x01(\x05R\fbaseCpuCount\x12(\n" +- "\x10actual_memory_mb\x18\x06 \x01(\x05R\x0eactualMemoryMb\"\xcc\x03\n" ++ "\x10actual_memory_mb\x18\x06 \x01(\x05R\x0eactualMemoryMb\x12T\n" ++ "\rsealed_tokens\x18\a \x03(\v2/.worker.PreCopyDrivesResponse.SealedTokensEntryR\fsealedTokens\x12)\n" ++ "\x10egress_allowlist\x18\b \x03(\tR\x0fegressAllowlist\x12N\n" ++ "\vtoken_hosts\x18\t \x03(\v2-.worker.PreCopyDrivesResponse.TokenHostsEntryR\n" +- "tokenHosts\x1a?\n" +++ "tokenHosts\x12Q\n" +++ "\fsealed_names\x18\n" +++ " \x03(\v2..worker.PreCopyDrivesResponse.SealedNamesEntryR\vsealedNames\x1a?\n" ++ "\x11SealedTokensEntry\x12\x10\n" ++ "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" ++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aO\n" ++ "\x0fTokenHostsEntry\x12\x10\n" ++ "\x03key\x18\x01 \x01(\tR\x03key\x12&\n" +- "\x05value\x18\x02 \x01(\v2\x10.worker.HostListR\x05value:\x028\x01\" \n" +++ "\x05value\x18\x02 \x01(\v2\x10.worker.HostListR\x05value:\x028\x01\x1a>\n" +++ "\x10SealedNamesEntry\x12\x10\n" +++ "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\" \n" ++ "\bHostList\x12\x14\n" +- "\x05hosts\x18\x01 \x03(\tR\x05hosts\"\xc3\x06\n" +++ "\x05hosts\x18\x01 \x03(\tR\x05hosts\"\xe0\a\n" +"\x1fPrepareMigrationIncomingRequest\x12\x1d\n" +"\n" +"sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x1f\n" +@@@ -3849,18 -3859,20 +3991,32 @@@"\foverlay_mode\x18\n" +" \x01(\bR\voverlayMode\x12(\n" +"\x10target_memory_mb\x18\v \x01(\x05R\x0etargetMemoryMb\x122\n" +- "\x15source_golden_version\x18\f \x01(\tR\x13sourceGoldenVersion\"d\n" ++ "\x15source_golden_version\x18\f \x01(\tR\x13sourceGoldenVersion\x12^\n" ++ "\rsealed_tokens\x18\r \x03(\v29.worker.PrepareMigrationIncomingRequest.SealedTokensEntryR\fsealedTokens\x12)\n" ++ "\x10egress_allowlist\x18\x0e \x03(\tR\x0fegressAllowlist\x12X\n" ++ "\vtoken_hosts\x18\x0f \x03(\v27.worker.PrepareMigrationIncomingRequest.TokenHostsEntryR\n" +- "tokenHosts\x1a?\n" +++ "tokenHosts\x12[\n" +++ "\fsealed_names\x18\x10 \x03(\v28.worker.PrepareMigrationIncomingRequest.SealedNamesEntryR\vsealedNames\x1a?\n" ++ "\x11SealedTokensEntry\x12\x10\n" ++ "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" ++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aO\n" ++ "\x0fTokenHostsEntry\x12\x10\n" ++ "\x03key\x18\x01 \x01(\tR\x03key\x12&\n" +- "\x05value\x18\x02 \x01(\v2\x10.worker.HostListR\x05value:\x028\x01\"d\n" +++ "\x05value\x18\x02 \x01(\v2\x10.worker.HostListR\x05value:\x028\x01\x1a>\n" +++ "\x10SealedNamesEntry\x12\x10\n" +++ "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"d\n" +" PrepareMigrationIncomingResponse\x12#\n" +"\rincoming_addr\x18\x01 \x01(\tR\fincomingAddr\x12\x1b\n" +- "\thost_port\x18\x02 \x01(\x05R\bhostPort\"X\n" ++ "\thost_port\x18\x02 \x01(\x05R\bhostPort\"r\n" ++ "\x1aUpdateSandboxSecretRequest\x12\x1d\n" ++ "\n" ++ "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x1f\n" ++ "\vsecret_name\x18\x02 \x01(\tR\n" ++ "secretName\x12\x14\n" ++ "\x05value\x18\x03 \x01(\tR\x05value\"7\n" ++ "\x1bUpdateSandboxSecretResponse\x12\x18\n" ++ "\aupdated\x18\x01 \x01(\bR\aupdated\"X\n" +"\x12LiveMigrateRequest\x12\x1d\n" +"\n" +"sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12#\n" +@@@ -3922,7 -3933,7 +4078,7 @@@ func file_proto_worker_worker_proto_raw}var file_proto_worker_worker_proto_enumTypes = make([]protoimpl.EnumInfo, 1)- var file_proto_worker_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 67)-var file_proto_worker_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 70)++var file_proto_worker_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 74)var file_proto_worker_worker_proto_goTypes = []any{(ExecOutputChunk_Stream)(0), // 0: worker.ExecOutputChunk.Stream(*CreateSandboxRequest)(nil), // 1: worker.CreateSandboxRequest@@@ -3977,98 -3988,105 +4133,113 @@@(*SetSandboxLimitsResponse)(nil), // 50: worker.SetSandboxLimitsResponse(*PreCopyDrivesRequest)(nil), // 51: worker.PreCopyDrivesRequest(*PreCopyDrivesResponse)(nil), // 52: worker.PreCopyDrivesResponse- (*PrepareMigrationIncomingRequest)(nil), // 53: worker.PrepareMigrationIncomingRequest- (*PrepareMigrationIncomingResponse)(nil), // 54: worker.PrepareMigrationIncomingResponse- (*UpdateSandboxSecretRequest)(nil), // 55: worker.UpdateSandboxSecretRequest- (*UpdateSandboxSecretResponse)(nil), // 56: worker.UpdateSandboxSecretResponse- (*LiveMigrateRequest)(nil), // 57: worker.LiveMigrateRequest- (*LiveMigrateResponse)(nil), // 58: worker.LiveMigrateResponse- (*CompleteMigrationIncomingRequest)(nil), // 59: worker.CompleteMigrationIncomingRequest- (*CompleteMigrationIncomingResponse)(nil), // 60: worker.CompleteMigrationIncomingResponse- (*RebuildGoldenSnapshotRequest)(nil), // 61: worker.RebuildGoldenSnapshotRequest- (*RebuildGoldenSnapshotResponse)(nil), // 62: worker.RebuildGoldenSnapshotResponse- nil, // 63: worker.CreateSandboxRequest.EnvsEntry- nil, // 64: worker.CreateSandboxRequest.SecretAllowedHostsEntry- nil, // 65: worker.CreateSandboxRequest.SecretEnvsEntry- nil, // 66: worker.ExecCommandRequest.EnvsEntry- nil, // 67: worker.ExecSessionCreateRequest.EnvsEntry+ (*HostList)(nil), // 53: worker.HostList+ (*PrepareMigrationIncomingRequest)(nil), // 54: worker.PrepareMigrationIncomingRequest+ (*PrepareMigrationIncomingResponse)(nil), // 55: worker.PrepareMigrationIncomingResponse- (*LiveMigrateRequest)(nil), // 56: worker.LiveMigrateRequest- (*LiveMigrateResponse)(nil), // 57: worker.LiveMigrateResponse- (*CompleteMigrationIncomingRequest)(nil), // 58: worker.CompleteMigrationIncomingRequest- (*CompleteMigrationIncomingResponse)(nil), // 59: worker.CompleteMigrationIncomingResponse- (*RebuildGoldenSnapshotRequest)(nil), // 60: worker.RebuildGoldenSnapshotRequest- (*RebuildGoldenSnapshotResponse)(nil), // 61: worker.RebuildGoldenSnapshotResponse- nil, // 62: worker.CreateSandboxRequest.EnvsEntry- nil, // 63: worker.CreateSandboxRequest.SecretAllowedHostsEntry- nil, // 64: worker.CreateSandboxRequest.SecretEnvsEntry- nil, // 65: worker.ExecCommandRequest.EnvsEntry- nil, // 66: worker.ExecSessionCreateRequest.EnvsEntry- nil, // 67: worker.PreCopyDrivesResponse.SealedTokensEntry- nil, // 68: worker.PreCopyDrivesResponse.TokenHostsEntry- nil, // 69: worker.PrepareMigrationIncomingRequest.SealedTokensEntry- nil, // 70: worker.PrepareMigrationIncomingRequest.TokenHostsEntry++ (*UpdateSandboxSecretRequest)(nil), // 56: worker.UpdateSandboxSecretRequest++ (*UpdateSandboxSecretResponse)(nil), // 57: worker.UpdateSandboxSecretResponse++ (*LiveMigrateRequest)(nil), // 58: worker.LiveMigrateRequest++ (*LiveMigrateResponse)(nil), // 59: worker.LiveMigrateResponse++ (*CompleteMigrationIncomingRequest)(nil), // 60: worker.CompleteMigrationIncomingRequest++ (*CompleteMigrationIncomingResponse)(nil), // 61: worker.CompleteMigrationIncomingResponse++ (*RebuildGoldenSnapshotRequest)(nil), // 62: worker.RebuildGoldenSnapshotRequest++ (*RebuildGoldenSnapshotResponse)(nil), // 63: worker.RebuildGoldenSnapshotResponse++ nil, // 64: worker.CreateSandboxRequest.EnvsEntry++ nil, // 65: worker.CreateSandboxRequest.SecretAllowedHostsEntry++ nil, // 66: worker.CreateSandboxRequest.SecretEnvsEntry++ nil, // 67: worker.ExecCommandRequest.EnvsEntry++ nil, // 68: worker.ExecSessionCreateRequest.EnvsEntry++ nil, // 69: worker.PreCopyDrivesResponse.SealedTokensEntry++ nil, // 70: worker.PreCopyDrivesResponse.TokenHostsEntry++ nil, // 71: worker.PreCopyDrivesResponse.SealedNamesEntry++ nil, // 72: worker.PrepareMigrationIncomingRequest.SealedTokensEntry++ nil, // 73: worker.PrepareMigrationIncomingRequest.TokenHostsEntry++ nil, // 74: worker.PrepareMigrationIncomingRequest.SealedNamesEntry}var file_proto_worker_worker_proto_depIdxs = []int32{- 63, // 0: worker.CreateSandboxRequest.envs:type_name -> worker.CreateSandboxRequest.EnvsEntry- 64, // 1: worker.CreateSandboxRequest.secret_allowed_hosts:type_name -> worker.CreateSandboxRequest.SecretAllowedHostsEntry- 65, // 2: worker.CreateSandboxRequest.secret_envs:type_name -> worker.CreateSandboxRequest.SecretEnvsEntry- 62, // 0: worker.CreateSandboxRequest.envs:type_name -> worker.CreateSandboxRequest.EnvsEntry- 63, // 1: worker.CreateSandboxRequest.secret_allowed_hosts:type_name -> worker.CreateSandboxRequest.SecretAllowedHostsEntry- 64, // 2: worker.CreateSandboxRequest.secret_envs:type_name -> worker.CreateSandboxRequest.SecretEnvsEntry++ 64, // 0: worker.CreateSandboxRequest.envs:type_name -> worker.CreateSandboxRequest.EnvsEntry++ 65, // 1: worker.CreateSandboxRequest.secret_allowed_hosts:type_name -> worker.CreateSandboxRequest.SecretAllowedHostsEntry++ 66, // 2: worker.CreateSandboxRequest.secret_envs:type_name -> worker.CreateSandboxRequest.SecretEnvsEntry10, // 3: worker.ListSandboxesResponse.sandboxes:type_name -> worker.GetSandboxResponse- 66, // 4: worker.ExecCommandRequest.envs:type_name -> worker.ExecCommandRequest.EnvsEntry- 65, // 4: worker.ExecCommandRequest.envs:type_name -> worker.ExecCommandRequest.EnvsEntry++ 67, // 4: worker.ExecCommandRequest.envs:type_name -> worker.ExecCommandRequest.EnvsEntry0, // 5: worker.ExecOutputChunk.stream:type_name -> worker.ExecOutputChunk.Stream21, // 6: worker.ListDirResponse.entries:type_name -> worker.DirEntry26, // 7: worker.PTYInput.resize:type_name -> worker.PTYResize- 67, // 8: worker.ExecSessionCreateRequest.envs:type_name -> worker.ExecSessionCreateRequest.EnvsEntry- 66, // 8: worker.ExecSessionCreateRequest.envs:type_name -> worker.ExecSessionCreateRequest.EnvsEntry++ 68, // 8: worker.ExecSessionCreateRequest.envs:type_name -> worker.ExecSessionCreateRequest.EnvsEntry40, // 9: worker.ExecSessionListResponse.sessions:type_name -> worker.ExecSessionInfoEntry- 1, // 10: worker.SandboxWorker.CreateSandbox:input_type -> worker.CreateSandboxRequest- 3, // 11: worker.SandboxWorker.DestroySandbox:input_type -> worker.DestroySandboxRequest- 9, // 12: worker.SandboxWorker.GetSandbox:input_type -> worker.GetSandboxRequest- 11, // 13: worker.SandboxWorker.ListSandboxes:input_type -> worker.ListSandboxesRequest- 13, // 14: worker.SandboxWorker.ExecCommand:input_type -> worker.ExecCommandRequest- 13, // 15: worker.SandboxWorker.ExecCommandStream:input_type -> worker.ExecCommandRequest- 16, // 16: worker.SandboxWorker.ReadFile:input_type -> worker.ReadFileRequest- 18, // 17: worker.SandboxWorker.WriteFile:input_type -> worker.WriteFileRequest- 20, // 18: worker.SandboxWorker.ListDir:input_type -> worker.ListDirRequest- 23, // 19: worker.SandboxWorker.CreatePTY:input_type -> worker.CreatePTYRequest- 25, // 20: worker.SandboxWorker.PTYStream:input_type -> worker.PTYInput- 36, // 21: worker.SandboxWorker.ExecSessionCreate:input_type -> worker.ExecSessionCreateRequest- 38, // 22: worker.SandboxWorker.ExecSessionList:input_type -> worker.ExecSessionListRequest- 41, // 23: worker.SandboxWorker.ExecSessionKill:input_type -> worker.ExecSessionKillRequest- 28, // 24: worker.SandboxWorker.HibernateSandbox:input_type -> worker.HibernateSandboxRequest- 30, // 25: worker.SandboxWorker.WakeSandbox:input_type -> worker.WakeSandboxRequest- 5, // 26: worker.SandboxWorker.RebootSandbox:input_type -> worker.RebootSandboxRequest- 7, // 27: worker.SandboxWorker.PowerCycleSandbox:input_type -> worker.PowerCycleSandboxRequest- 32, // 28: worker.SandboxWorker.SaveAsTemplate:input_type -> worker.SaveAsTemplateRequest- 45, // 29: worker.SandboxWorker.CreateCheckpoint:input_type -> worker.CreateCheckpointRequest- 47, // 30: worker.SandboxWorker.RestoreCheckpoint:input_type -> worker.RestoreCheckpointRequest- 34, // 31: worker.SandboxWorker.BuildTemplate:input_type -> worker.BuildTemplateRequest- 43, // 32: worker.SandboxWorker.GetSandboxStats:input_type -> worker.GetSandboxStatsRequest- 49, // 33: worker.SandboxWorker.SetSandboxLimits:input_type -> worker.SetSandboxLimitsRequest- 55, // 34: worker.SandboxWorker.UpdateSandboxSecret:input_type -> worker.UpdateSandboxSecretRequest- 51, // 35: worker.SandboxWorker.PreCopyDrives:input_type -> worker.PreCopyDrivesRequest- 53, // 36: worker.SandboxWorker.PrepareMigrationIncoming:input_type -> worker.PrepareMigrationIncomingRequest- 57, // 37: worker.SandboxWorker.LiveMigrate:input_type -> worker.LiveMigrateRequest- 59, // 38: worker.SandboxWorker.CompleteMigrationIncoming:input_type -> worker.CompleteMigrationIncomingRequest- 61, // 39: worker.SandboxWorker.RebuildGoldenSnapshot:input_type -> worker.RebuildGoldenSnapshotRequest- 2, // 40: worker.SandboxWorker.CreateSandbox:output_type -> worker.CreateSandboxResponse- 4, // 41: worker.SandboxWorker.DestroySandbox:output_type -> worker.DestroySandboxResponse- 10, // 42: worker.SandboxWorker.GetSandbox:output_type -> worker.GetSandboxResponse- 12, // 43: worker.SandboxWorker.ListSandboxes:output_type -> worker.ListSandboxesResponse- 14, // 44: worker.SandboxWorker.ExecCommand:output_type -> worker.ExecCommandResponse- 15, // 45: worker.SandboxWorker.ExecCommandStream:output_type -> worker.ExecOutputChunk- 17, // 46: worker.SandboxWorker.ReadFile:output_type -> worker.ReadFileResponse- 19, // 47: worker.SandboxWorker.WriteFile:output_type -> worker.WriteFileResponse- 22, // 48: worker.SandboxWorker.ListDir:output_type -> worker.ListDirResponse- 24, // 49: worker.SandboxWorker.CreatePTY:output_type -> worker.CreatePTYResponse- 27, // 50: worker.SandboxWorker.PTYStream:output_type -> worker.PTYOutput- 37, // 51: worker.SandboxWorker.ExecSessionCreate:output_type -> worker.ExecSessionCreateResponse- 39, // 52: worker.SandboxWorker.ExecSessionList:output_type -> worker.ExecSessionListResponse- 42, // 53: worker.SandboxWorker.ExecSessionKill:output_type -> worker.ExecSessionKillResponse- 29, // 54: worker.SandboxWorker.HibernateSandbox:output_type -> worker.HibernateSandboxResponse- 31, // 55: worker.SandboxWorker.WakeSandbox:output_type -> worker.WakeSandboxResponse- 6, // 56: worker.SandboxWorker.RebootSandbox:output_type -> worker.RebootSandboxResponse- 8, // 57: worker.SandboxWorker.PowerCycleSandbox:output_type -> worker.PowerCycleSandboxResponse- 33, // 58: worker.SandboxWorker.SaveAsTemplate:output_type -> worker.SaveAsTemplateResponse- 46, // 59: worker.SandboxWorker.CreateCheckpoint:output_type -> worker.CreateCheckpointResponse- 48, // 60: worker.SandboxWorker.RestoreCheckpoint:output_type -> worker.RestoreCheckpointResponse- 35, // 61: worker.SandboxWorker.BuildTemplate:output_type -> worker.BuildTemplateResponse- 44, // 62: worker.SandboxWorker.GetSandboxStats:output_type -> worker.GetSandboxStatsResponse- 50, // 63: worker.SandboxWorker.SetSandboxLimits:output_type -> worker.SetSandboxLimitsResponse- 56, // 64: worker.SandboxWorker.UpdateSandboxSecret:output_type -> worker.UpdateSandboxSecretResponse- 52, // 65: worker.SandboxWorker.PreCopyDrives:output_type -> worker.PreCopyDrivesResponse- 54, // 66: worker.SandboxWorker.PrepareMigrationIncoming:output_type -> worker.PrepareMigrationIncomingResponse- 58, // 67: worker.SandboxWorker.LiveMigrate:output_type -> worker.LiveMigrateResponse- 60, // 68: worker.SandboxWorker.CompleteMigrationIncoming:output_type -> worker.CompleteMigrationIncomingResponse- 62, // 69: worker.SandboxWorker.RebuildGoldenSnapshot:output_type -> worker.RebuildGoldenSnapshotResponse- 40, // [40:70] is the sub-list for method output_type- 10, // [10:40] is the sub-list for method input_type- 10, // [10:10] is the sub-list for extension type_name- 10, // [10:10] is the sub-list for extension extendee- 0, // [0:10] is the sub-list for field type_name- 67, // 10: worker.PreCopyDrivesResponse.sealed_tokens:type_name -> worker.PreCopyDrivesResponse.SealedTokensEntry- 68, // 11: worker.PreCopyDrivesResponse.token_hosts:type_name -> worker.PreCopyDrivesResponse.TokenHostsEntry- 69, // 12: worker.PrepareMigrationIncomingRequest.sealed_tokens:type_name -> worker.PrepareMigrationIncomingRequest.SealedTokensEntry- 70, // 13: worker.PrepareMigrationIncomingRequest.token_hosts:type_name -> worker.PrepareMigrationIncomingRequest.TokenHostsEntry- 53, // 14: worker.PreCopyDrivesResponse.TokenHostsEntry.value:type_name -> worker.HostList- 53, // 15: worker.PrepareMigrationIncomingRequest.TokenHostsEntry.value:type_name -> worker.HostList- 1, // 16: worker.SandboxWorker.CreateSandbox:input_type -> worker.CreateSandboxRequest- 3, // 17: worker.SandboxWorker.DestroySandbox:input_type -> worker.DestroySandboxRequest- 9, // 18: worker.SandboxWorker.GetSandbox:input_type -> worker.GetSandboxRequest- 11, // 19: worker.SandboxWorker.ListSandboxes:input_type -> worker.ListSandboxesRequest- 13, // 20: worker.SandboxWorker.ExecCommand:input_type -> worker.ExecCommandRequest- 13, // 21: worker.SandboxWorker.ExecCommandStream:input_type -> worker.ExecCommandRequest- 16, // 22: worker.SandboxWorker.ReadFile:input_type -> worker.ReadFileRequest- 18, // 23: worker.SandboxWorker.WriteFile:input_type -> worker.WriteFileRequest- 20, // 24: worker.SandboxWorker.ListDir:input_type -> worker.ListDirRequest- 23, // 25: worker.SandboxWorker.CreatePTY:input_type -> worker.CreatePTYRequest- 25, // 26: worker.SandboxWorker.PTYStream:input_type -> worker.PTYInput- 36, // 27: worker.SandboxWorker.ExecSessionCreate:input_type -> worker.ExecSessionCreateRequest- 38, // 28: worker.SandboxWorker.ExecSessionList:input_type -> worker.ExecSessionListRequest- 41, // 29: worker.SandboxWorker.ExecSessionKill:input_type -> worker.ExecSessionKillRequest- 28, // 30: worker.SandboxWorker.HibernateSandbox:input_type -> worker.HibernateSandboxRequest- 30, // 31: worker.SandboxWorker.WakeSandbox:input_type -> worker.WakeSandboxRequest- 5, // 32: worker.SandboxWorker.RebootSandbox:input_type -> worker.RebootSandboxRequest- 7, // 33: worker.SandboxWorker.PowerCycleSandbox:input_type -> worker.PowerCycleSandboxRequest- 32, // 34: worker.SandboxWorker.SaveAsTemplate:input_type -> worker.SaveAsTemplateRequest- 45, // 35: worker.SandboxWorker.CreateCheckpoint:input_type -> worker.CreateCheckpointRequest- 47, // 36: worker.SandboxWorker.RestoreCheckpoint:input_type -> worker.RestoreCheckpointRequest- 34, // 37: worker.SandboxWorker.BuildTemplate:input_type -> worker.BuildTemplateRequest- 43, // 38: worker.SandboxWorker.GetSandboxStats:input_type -> worker.GetSandboxStatsRequest- 49, // 39: worker.SandboxWorker.SetSandboxLimits:input_type -> worker.SetSandboxLimitsRequest- 51, // 40: worker.SandboxWorker.PreCopyDrives:input_type -> worker.PreCopyDrivesRequest- 54, // 41: worker.SandboxWorker.PrepareMigrationIncoming:input_type -> worker.PrepareMigrationIncomingRequest- 56, // 42: worker.SandboxWorker.LiveMigrate:input_type -> worker.LiveMigrateRequest- 58, // 43: worker.SandboxWorker.CompleteMigrationIncoming:input_type -> worker.CompleteMigrationIncomingRequest- 60, // 44: worker.SandboxWorker.RebuildGoldenSnapshot:input_type -> worker.RebuildGoldenSnapshotRequest- 2, // 45: worker.SandboxWorker.CreateSandbox:output_type -> worker.CreateSandboxResponse- 4, // 46: worker.SandboxWorker.DestroySandbox:output_type -> worker.DestroySandboxResponse- 10, // 47: worker.SandboxWorker.GetSandbox:output_type -> worker.GetSandboxResponse- 12, // 48: worker.SandboxWorker.ListSandboxes:output_type -> worker.ListSandboxesResponse- 14, // 49: worker.SandboxWorker.ExecCommand:output_type -> worker.ExecCommandResponse- 15, // 50: worker.SandboxWorker.ExecCommandStream:output_type -> worker.ExecOutputChunk- 17, // 51: worker.SandboxWorker.ReadFile:output_type -> worker.ReadFileResponse- 19, // 52: worker.SandboxWorker.WriteFile:output_type -> worker.WriteFileResponse- 22, // 53: worker.SandboxWorker.ListDir:output_type -> worker.ListDirResponse- 24, // 54: worker.SandboxWorker.CreatePTY:output_type -> worker.CreatePTYResponse- 27, // 55: worker.SandboxWorker.PTYStream:output_type -> worker.PTYOutput- 37, // 56: worker.SandboxWorker.ExecSessionCreate:output_type -> worker.ExecSessionCreateResponse- 39, // 57: worker.SandboxWorker.ExecSessionList:output_type -> worker.ExecSessionListResponse- 42, // 58: worker.SandboxWorker.ExecSessionKill:output_type -> worker.ExecSessionKillResponse- 29, // 59: worker.SandboxWorker.HibernateSandbox:output_type -> worker.HibernateSandboxResponse- 31, // 60: worker.SandboxWorker.WakeSandbox:output_type -> worker.WakeSandboxResponse- 6, // 61: worker.SandboxWorker.RebootSandbox:output_type -> worker.RebootSandboxResponse- 8, // 62: worker.SandboxWorker.PowerCycleSandbox:output_type -> worker.PowerCycleSandboxResponse- 33, // 63: worker.SandboxWorker.SaveAsTemplate:output_type -> worker.SaveAsTemplateResponse- 46, // 64: worker.SandboxWorker.CreateCheckpoint:output_type -> worker.CreateCheckpointResponse- 48, // 65: worker.SandboxWorker.RestoreCheckpoint:output_type -> worker.RestoreCheckpointResponse- 35, // 66: worker.SandboxWorker.BuildTemplate:output_type -> worker.BuildTemplateResponse- 44, // 67: worker.SandboxWorker.GetSandboxStats:output_type -> worker.GetSandboxStatsResponse- 50, // 68: worker.SandboxWorker.SetSandboxLimits:output_type -> worker.SetSandboxLimitsResponse- 52, // 69: worker.SandboxWorker.PreCopyDrives:output_type -> worker.PreCopyDrivesResponse- 55, // 70: worker.SandboxWorker.PrepareMigrationIncoming:output_type -> worker.PrepareMigrationIncomingResponse- 57, // 71: worker.SandboxWorker.LiveMigrate:output_type -> worker.LiveMigrateResponse- 59, // 72: worker.SandboxWorker.CompleteMigrationIncoming:output_type -> worker.CompleteMigrationIncomingResponse- 61, // 73: worker.SandboxWorker.RebuildGoldenSnapshot:output_type -> worker.RebuildGoldenSnapshotResponse- 45, // [45:74] is the sub-list for method output_type- 16, // [16:45] is the sub-list for method input_type- 16, // [16:16] is the sub-list for extension type_name- 16, // [16:16] is the sub-list for extension extendee- 0, // [0:16] is the sub-list for field type_name++ 69, // 10: worker.PreCopyDrivesResponse.sealed_tokens:type_name -> worker.PreCopyDrivesResponse.SealedTokensEntry++ 70, // 11: worker.PreCopyDrivesResponse.token_hosts:type_name -> worker.PreCopyDrivesResponse.TokenHostsEntry++ 71, // 12: worker.PreCopyDrivesResponse.sealed_names:type_name -> worker.PreCopyDrivesResponse.SealedNamesEntry++ 72, // 13: worker.PrepareMigrationIncomingRequest.sealed_tokens:type_name -> worker.PrepareMigrationIncomingRequest.SealedTokensEntry++ 73, // 14: worker.PrepareMigrationIncomingRequest.token_hosts:type_name -> worker.PrepareMigrationIncomingRequest.TokenHostsEntry++ 74, // 15: worker.PrepareMigrationIncomingRequest.sealed_names:type_name -> worker.PrepareMigrationIncomingRequest.SealedNamesEntry++ 53, // 16: worker.PreCopyDrivesResponse.TokenHostsEntry.value:type_name -> worker.HostList++ 53, // 17: worker.PrepareMigrationIncomingRequest.TokenHostsEntry.value:type_name -> worker.HostList++ 1, // 18: worker.SandboxWorker.CreateSandbox:input_type -> worker.CreateSandboxRequest++ 3, // 19: worker.SandboxWorker.DestroySandbox:input_type -> worker.DestroySandboxRequest++ 9, // 20: worker.SandboxWorker.GetSandbox:input_type -> worker.GetSandboxRequest++ 11, // 21: worker.SandboxWorker.ListSandboxes:input_type -> worker.ListSandboxesRequest++ 13, // 22: worker.SandboxWorker.ExecCommand:input_type -> worker.ExecCommandRequest++ 13, // 23: worker.SandboxWorker.ExecCommandStream:input_type -> worker.ExecCommandRequest++ 16, // 24: worker.SandboxWorker.ReadFile:input_type -> worker.ReadFileRequest++ 18, // 25: worker.SandboxWorker.WriteFile:input_type -> worker.WriteFileRequest++ 20, // 26: worker.SandboxWorker.ListDir:input_type -> worker.ListDirRequest++ 23, // 27: worker.SandboxWorker.CreatePTY:input_type -> worker.CreatePTYRequest++ 25, // 28: worker.SandboxWorker.PTYStream:input_type -> worker.PTYInput++ 36, // 29: worker.SandboxWorker.ExecSessionCreate:input_type -> worker.ExecSessionCreateRequest++ 38, // 30: worker.SandboxWorker.ExecSessionList:input_type -> worker.ExecSessionListRequest++ 41, // 31: worker.SandboxWorker.ExecSessionKill:input_type -> worker.ExecSessionKillRequest++ 28, // 32: worker.SandboxWorker.HibernateSandbox:input_type -> worker.HibernateSandboxRequest++ 30, // 33: worker.SandboxWorker.WakeSandbox:input_type -> worker.WakeSandboxRequest++ 5, // 34: worker.SandboxWorker.RebootSandbox:input_type -> worker.RebootSandboxRequest++ 7, // 35: worker.SandboxWorker.PowerCycleSandbox:input_type -> worker.PowerCycleSandboxRequest++ 32, // 36: worker.SandboxWorker.SaveAsTemplate:input_type -> worker.SaveAsTemplateRequest++ 45, // 37: worker.SandboxWorker.CreateCheckpoint:input_type -> worker.CreateCheckpointRequest++ 47, // 38: worker.SandboxWorker.RestoreCheckpoint:input_type -> worker.RestoreCheckpointRequest++ 34, // 39: worker.SandboxWorker.BuildTemplate:input_type -> worker.BuildTemplateRequest++ 43, // 40: worker.SandboxWorker.GetSandboxStats:input_type -> worker.GetSandboxStatsRequest++ 49, // 41: worker.SandboxWorker.SetSandboxLimits:input_type -> worker.SetSandboxLimitsRequest++ 56, // 42: worker.SandboxWorker.UpdateSandboxSecret:input_type -> worker.UpdateSandboxSecretRequest++ 51, // 43: worker.SandboxWorker.PreCopyDrives:input_type -> worker.PreCopyDrivesRequest++ 54, // 44: worker.SandboxWorker.PrepareMigrationIncoming:input_type -> worker.PrepareMigrationIncomingRequest++ 58, // 45: worker.SandboxWorker.LiveMigrate:input_type -> worker.LiveMigrateRequest++ 60, // 46: worker.SandboxWorker.CompleteMigrationIncoming:input_type -> worker.CompleteMigrationIncomingRequest++ 62, // 47: worker.SandboxWorker.RebuildGoldenSnapshot:input_type -> worker.RebuildGoldenSnapshotRequest++ 2, // 48: worker.SandboxWorker.CreateSandbox:output_type -> worker.CreateSandboxResponse++ 4, // 49: worker.SandboxWorker.DestroySandbox:output_type -> worker.DestroySandboxResponse++ 10, // 50: worker.SandboxWorker.GetSandbox:output_type -> worker.GetSandboxResponse++ 12, // 51: worker.SandboxWorker.ListSandboxes:output_type -> worker.ListSandboxesResponse++ 14, // 52: worker.SandboxWorker.ExecCommand:output_type -> worker.ExecCommandResponse++ 15, // 53: worker.SandboxWorker.ExecCommandStream:output_type -> worker.ExecOutputChunk++ 17, // 54: worker.SandboxWorker.ReadFile:output_type -> worker.ReadFileResponse++ 19, // 55: worker.SandboxWorker.WriteFile:output_type -> worker.WriteFileResponse++ 22, // 56: worker.SandboxWorker.ListDir:output_type -> worker.ListDirResponse++ 24, // 57: worker.SandboxWorker.CreatePTY:output_type -> worker.CreatePTYResponse++ 27, // 58: worker.SandboxWorker.PTYStream:output_type -> worker.PTYOutput++ 37, // 59: worker.SandboxWorker.ExecSessionCreate:output_type -> worker.ExecSessionCreateResponse++ 39, // 60: worker.SandboxWorker.ExecSessionList:output_type -> worker.ExecSessionListResponse++ 42, // 61: worker.SandboxWorker.ExecSessionKill:output_type -> worker.ExecSessionKillResponse++ 29, // 62: worker.SandboxWorker.HibernateSandbox:output_type -> worker.HibernateSandboxResponse++ 31, // 63: worker.SandboxWorker.WakeSandbox:output_type -> worker.WakeSandboxResponse++ 6, // 64: worker.SandboxWorker.RebootSandbox:output_type -> worker.RebootSandboxResponse++ 8, // 65: worker.SandboxWorker.PowerCycleSandbox:output_type -> worker.PowerCycleSandboxResponse++ 33, // 66: worker.SandboxWorker.SaveAsTemplate:output_type -> worker.SaveAsTemplateResponse++ 46, // 67: worker.SandboxWorker.CreateCheckpoint:output_type -> worker.CreateCheckpointResponse++ 48, // 68: worker.SandboxWorker.RestoreCheckpoint:output_type -> worker.RestoreCheckpointResponse++ 35, // 69: worker.SandboxWorker.BuildTemplate:output_type -> worker.BuildTemplateResponse++ 44, // 70: worker.SandboxWorker.GetSandboxStats:output_type -> worker.GetSandboxStatsResponse++ 50, // 71: worker.SandboxWorker.SetSandboxLimits:output_type -> worker.SetSandboxLimitsResponse++ 57, // 72: worker.SandboxWorker.UpdateSandboxSecret:output_type -> worker.UpdateSandboxSecretResponse++ 52, // 73: worker.SandboxWorker.PreCopyDrives:output_type -> worker.PreCopyDrivesResponse++ 55, // 74: worker.SandboxWorker.PrepareMigrationIncoming:output_type -> worker.PrepareMigrationIncomingResponse++ 59, // 75: worker.SandboxWorker.LiveMigrate:output_type -> worker.LiveMigrateResponse++ 61, // 76: worker.SandboxWorker.CompleteMigrationIncoming:output_type -> worker.CompleteMigrationIncomingResponse++ 63, // 77: worker.SandboxWorker.RebuildGoldenSnapshot:output_type -> worker.RebuildGoldenSnapshotResponse++ 48, // [48:78] is the sub-list for method output_type++ 18, // [18:48] is the sub-list for method input_type++ 18, // [18:18] is the sub-list for extension type_name++ 18, // [18:18] is the sub-list for extension extendee++ 0, // [0:18] is the sub-list for field type_name}func init() { file_proto_worker_worker_proto_init() }@@@ -4086,7 -4104,7 +4257,7 @@@ func file_proto_worker_worker_proto_iniGoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_worker_worker_proto_rawDesc), len(file_proto_worker_worker_proto_rawDesc)),NumEnums: 1,- NumMessages: 67,- NumMessages: 70,++ NumMessages: 74,NumExtensions: 0,NumServices: 1,},diff --cc proto/worker/worker.protoindex 8ab840e3,f72b4378..5d68ac0b--- a/proto/worker/worker.proto+++ b/proto/worker/worker.proto@@@ -375,6 -367,22 +375,27 @@@ message PreCopyDrivesResponse// Used for actual-memory-based scheduling instead of committed/configured// memory (which over-reserves on idle sandboxes).int32 actual_memory_mb = 6;+ // Secrets-proxy session state for the migrating sandbox. Live migration+ // moves the QEMU process (which carries the in-VM env vars containing+ // sealed token IDs) but the proxy's plaintext-substitution map is+ // per-worker in-process state. Without these the destination worker has+ // no way to substitute the literal `osb_sealed_xxx` strings on outbound+ // HTTPS, so the guest's first secret-using call after migration fails+ // auth. Mirrors the SealedTokens/EgressAllowlist/TokenHosts fields the+ // hibernate path persists into snapshot-meta.json.+ map<string, string> sealed_tokens = 7; // sealed_id -> plaintext secret value+ repeated string egress_allowlist = 8; // host allowlist for the secrets proxy+ map<string, HostList> token_hosts = 9; // sealed_id -> per-token allowed hosts++ // env-var-name -> sealed_id index. Required so refresh-by-name++ // (UpdateSandboxSecret) keeps working on the destination worker after++ // migration. Without it, post-migration secret-store updates would silently++ // miss because the destination's session has no name → token mapping.++ map<string, string> sealed_names = 10;+ }++ // HostList is a wrapper because proto3 maps cannot have a repeated value type.+ message HostList {+ repeated string hosts = 1;}message PrepareMigrationIncomingRequest {@@@ -390,6 -398,13 +411,14 @@@bool overlay_mode = 10; // if true, rootfs is thin overlay — rebase to local golden on targetint32 target_memory_mb = 11; // final memory after scale — worker checks capacity and reserves atomicallystring source_golden_version = 12; // source's golden version — target rebases overlay if different from its own+ // Secrets-proxy session state captured from the source by PreCopyDrives.+ // Target re-registers these on its in-process secrets proxy BEFORE the+ // VM resumes (Cont) so the first outbound HTTPS request after migration+ // has its `osb_sealed_xxx` env vars correctly substituted.+ map<string, string> sealed_tokens = 13;+ repeated string egress_allowlist = 14;+ map<string, HostList> token_hosts = 15;++ map<string, string> sealed_names = 16;}message PrepareMigrationIncomingResponse {