fix: honor an installation HTTP private-host allowlist for Evidence

This commit is contained in:
2026-08-11 19:48:13 +02:00
parent 0986125327
commit 657c117425
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -436,7 +436,7 @@ async function setupFixtures(ctx) {
read_timeout_ms: 30001,
max_bytes: 65536,
max_redirects: 2,
allow_private_hosts: false,
allow_private_hosts: true,
max_cache_bytes: 65536,
},
}),
@@ -765,6 +765,7 @@ async function writeInstallationFiles(ctx) {
`THT_WS_P2_DWH_DWH_API_KEY_SOURCE=${ctx.secretPaths.dwh}`,
`THT_WS_P2_DWH_EVIDENCE_SIGNED_URLS_SOURCE=${ctx.secretPaths.signed}`,
`THT_WS_P2_FILESYSTEM_DWH_API_KEY_SOURCE=${ctx.secretPaths.filesystemDwh}`,
`THT_EVIDENCE_PRIVATE_HOST_ALLOWLIST=host.docker.internal`,
].join("\n") + "\n";
await atomicWrite(operatorEnvPath, operatorEnv);
await atomicWrite(join(ctx.run.root, "installation", "pi-auth.json"), JSON.stringify({ fixture: true }));