Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
import { generateKeyPairSync } from 'node:crypto'
/**
* Shared test fixture: a real, randomly generated RSA public key so config
* suites exercise the non-dev path without the removed historical default.
* Suites that verify missing-key behavior delete this variable explicitly.
*/
function testPublicKey(): string {
return generateKeyPairSync('rsa', {
modulusLength: 2048,
privateKeyEncoding: { type: 'pkcs8', format: 'pem' },
publicKeyEncoding: { type: 'spki', format: 'pem' },
}).publicKey
}
if (!process.env.EXTERNAL_REST_API_JWT_PUBLIC_KEY) {
process.env.EXTERNAL_REST_API_JWT_PUBLIC_KEY = testPublicKey()
}