feat: add v02 device-pod env reuse boot path
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { createServer } from "node:http";
|
||||
import { randomUUID } from "node:crypto";
|
||||
|
||||
import { runtimeIdentityFromEnv } from "../../internal/build-metadata.mjs";
|
||||
import { jsonResponse, listen, parsePort, readJson } from "../../internal/sim/http.mjs";
|
||||
|
||||
const SERVICE_ID = "hwlab-device-pod";
|
||||
@@ -78,6 +79,7 @@ function healthPayload() {
|
||||
acceptsUserAuthority: false,
|
||||
fake: false,
|
||||
gatewayAdapter: gatewayAdapterState(),
|
||||
runtime: runtimeIdentityFromEnv(process.env),
|
||||
source: sourcePayload(),
|
||||
note: "Profile, grant, lease, and user-facing job authority live in hwlab-cloud-api; this service only exposes the internal executor boundary."
|
||||
};
|
||||
@@ -351,7 +353,14 @@ function isInternalCaller(request) {
|
||||
}
|
||||
|
||||
function sourcePayload() {
|
||||
return { kind: "INTERNAL_EXECUTOR", serviceId: SERVICE_ID, authority: "hwlab-cloud-api", fake: false, devLiveEvidence: false };
|
||||
return {
|
||||
kind: "INTERNAL_EXECUTOR",
|
||||
serviceId: SERVICE_ID,
|
||||
authority: "hwlab-cloud-api",
|
||||
fake: false,
|
||||
devLiveEvidence: false,
|
||||
runtime: runtimeIdentityFromEnv(process.env)
|
||||
};
|
||||
}
|
||||
|
||||
function gatewayAdapterBlocker(summary) {
|
||||
|
||||
Reference in New Issue
Block a user