mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
add pattern match for windmill stored secrets
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user