mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 19:26:38 +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(
|
Object.keys(secrets).forEach(
|
||||||
(key) => {
|
(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)) {
|
if(secretsResList.includes(key)) {
|
||||||
modifiedFormatForUpdateSecretInjection.push({
|
modifiedFormatForUpdateSecretInjection.push({
|
||||||
path: key,
|
path: key,
|
||||||
|
|||||||
Reference in New Issue
Block a user