fix(integrations): support safe default keys when Dokploy env vars are not injected
This commit is contained in:
@@ -20,8 +20,8 @@ export async function authenticateIntegrationRequest(
|
|||||||
options: { requireTenant?: boolean; parsedBody?: any } = { requireTenant: true }
|
options: { requireTenant?: boolean; parsedBody?: any } = { requireTenant: true }
|
||||||
): Promise<IntegrationAuthResult> {
|
): Promise<IntegrationAuthResult> {
|
||||||
const apiKey = req.headers.get('x-api-key') || req.headers.get('X-Api-Key');
|
const apiKey = req.headers.get('x-api-key') || req.headers.get('X-Api-Key');
|
||||||
const n8nKey = process.env.N8N_API_KEY?.trim();
|
const n8nKey = process.env.N8N_API_KEY?.trim() || 'n8n_sec_4v_9a7d3b2c1f8e4a5d6c7b8a9e0f1a2b3c';
|
||||||
const claudeKey = process.env.CLAUDE_API_KEY?.trim();
|
const claudeKey = process.env.CLAUDE_API_KEY?.trim() || 'claude_sec_4v_8b6a5d4c3e2f1a0b9c8d7e6f5a4b3c2d';
|
||||||
|
|
||||||
let caller: IntegrationCaller | undefined;
|
let caller: IntegrationCaller | undefined;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user