fix(vault): remove NODE_ENV=test and VITEST auto-enable of insecure fallback so only explicit opt-in unlocks it

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 21:36:29 -04:00
1 parent cfe5f9ff73
commit aa1afd0db2
1 file changed
+1 -5
+1 -5
View File
@@ -87,10 +87,6 @@ export class SecretVault {
}
private allowInsecureVaultFallback() {
return (
process.env.AGENTCOMPANY_ALLOW_INSECURE_VAULT === "true" ||
process.env.NODE_ENV === "test" ||
process.env.VITEST === "true"
);
return process.env.AGENTCOMPANY_ALLOW_INSECURE_VAULT === "true";
}
}