Gateway: avoid double secrets activation at startup

This commit is contained in:
joshavant 2026-02-21 13:23:29 -08:00 committed by Peter Steinberger
parent b50c4c2c44
commit b1533bc80c
1 changed files with 2 additions and 3 deletions

View File

@ -306,11 +306,10 @@ export async function startGatewayServer(
: "Unknown validation issue.";
throw new Error(`Invalid config at ${freshSnapshot.path}.\n${issues}`);
}
const prepared = await activateRuntimeSecrets(freshSnapshot.config, {
await activateRuntimeSecrets(freshSnapshot.config, {
reason: "startup",
activate: true,
activate: false,
});
cfgAtStart = prepared.config;
}
cfgAtStart = loadConfig();