Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add pattern match for windmill stored secrets

Sunil Kumaraa019e15016d
diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.ts
index f633cb88e2..14ab37ea55 100644
--- a/backend/src/integrations/sync.ts
+++ b/backend/src/integrations/sync.ts
@@ -1993,7 +1993,8 @@ const syncSecretsWindmill = async ({
Object.keys(secrets).forEach(
(key) => {
- if(key.startsWith("u/") || key.startsWith("f/")) {
+ const pattern = new RegExp('^([a-zA-Z0-9])\/([a-zA-Z-0-9])+\/([a-zA-Z0-9])+')
+ if((key.startsWith("u/") || key.startsWith("f/")) && pattern.test(key)) {
if(secretsResList.includes(key)) {
modifiedFormatForUpdateSecretInjection.push({
path: key,