From 0ac959463f25187c5be4116a2209411afd903d87 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 12 Dec 2023 15:21:18 +0000 Subject: [PATCH] fix: Fix issue preventing secrets from loading if the path contains - or / (#7988) ## Summary Fixes an issue preventing n8n from pulling secrets from Hashicorp Vault KV stores if the secret path contained a `-` or a `/`, An example provided was `integrations/n8n-workflows` which I have tested in my local instance of Vault. This still needs testing with Infisical to make sure nothing breaks there. --- packages/cli/src/ExternalSecrets/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ExternalSecrets/constants.ts b/packages/cli/src/ExternalSecrets/constants.ts index 0c21417851..3408cfac0b 100644 --- a/packages/cli/src/ExternalSecrets/constants.ts +++ b/packages/cli/src/ExternalSecrets/constants.ts @@ -2,4 +2,4 @@ export const EXTERNAL_SECRETS_DB_KEY = 'feature.externalSecrets'; export const EXTERNAL_SECRETS_INITIAL_BACKOFF = 10 * 1000; export const EXTERNAL_SECRETS_MAX_BACKOFF = 5 * 60 * 1000; -export const EXTERNAL_SECRETS_NAME_REGEX = /^[a-zA-Z0-9_]+$/; +export const EXTERNAL_SECRETS_NAME_REGEX = /^[a-zA-Z0-9\_\/]+$/;