Gateway: avoid double secrets activation at startup
This commit is contained in:
@@ -291,11 +291,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();
|
||||
|
||||
Reference in New Issue
Block a user