Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(config): say a pepper locks existing keys out, not re-hashes them
Yudhi Armyndharisd0ca70a97d6c
diff --git a/src/config/bootstrap-security.ts b/src/config/bootstrap-security.tsindex 928a31374..beb15436e 100644--- a/src/config/bootstrap-security.ts+++ b/src/config/bootstrap-security.ts@@ -128,8 +128,8 @@ const FORBIDDEN_PROD_SECRETS = new Set([/*** Whether to warn that API_KEY_PEPPER is unset in production. Without a pepper, stored API-key hashes- * fall back to plain SHA-256 (still functional). Advisory only — enabling a pepper re-hashes keys and- * invalidates existing ones (see api-key-hash.ts), so it stays opt-in and must never be enforced.+ * fall back to plain SHA-256 (still functional). Advisory only: enabling a pepper on an install with keys+ * locks every key out (see api-key-hash.ts), so it stays opt-in and must never be enforced.*/export function isApiKeyPepperMissingInProduction(nodeEnv?: string, apiKeyPepper?: string): boolean {return nodeEnv === 'production' && !apiKeyPepper?.trim();