feat: changed dynamic secret mapping to new one, made optional secretname and tag in permission

This commit is contained in:
=
2024-10-18 00:33:38 +05:30
parent 154ea9e55d
commit 2383c93139
16 changed files with 122 additions and 124 deletions
@@ -92,9 +92,7 @@ export const secretImportServiceFactory = ({
ProjectPermissionActions.Read,
subject(ProjectPermissionSub.Secrets, {
environment: data.environment,
secretPath: data.path,
secretName: "",
secretTags: []
secretPath: data.path
})
);
if (isReplication) {
@@ -371,9 +369,7 @@ export const secretImportServiceFactory = ({
ProjectPermissionActions.Read,
subject(ProjectPermissionSub.Secrets, {
environment: secretImportDoc.importEnv.slug,
secretPath: secretImportDoc.importPath,
secretName: "",
secretTags: []
secretPath: secretImportDoc.importPath
})
);
@@ -548,9 +544,7 @@ export const secretImportServiceFactory = ({
ProjectPermissionActions.Read,
subject(ProjectPermissionSub.Secrets, {
environment: el.importEnv.slug,
secretPath: el.importPath,
secretName: "",
secretTags: []
secretPath: el.importPath
})
)
);
@@ -620,9 +614,7 @@ export const secretImportServiceFactory = ({
ProjectPermissionActions.Read,
subject(ProjectPermissionSub.Secrets, {
environment: el.importEnv.slug,
secretPath: el.importPath,
secretName: "",
secretTags: []
secretPath: el.importPath
})
)
);