feat(rbac): removed audit log option for time being, v3 secret patch and reload permission flash screen fix

This commit is contained in:
Akhil Mohan
2023-09-14 21:34:13 +05:30
parent 18d843f3e6
commit 942e1a82c2
5 changed files with 14 additions and 42 deletions
@@ -55,6 +55,9 @@ export const getSecretsRaw = async (req: Request, res: Response) => {
secretPath = getFolderWithPathFromId(folder.nodes, folderId).folderPath;
}
if (!environment || !workspaceId)
throw BadRequestError({ message: "Missing environment or workspace id" });
let permissionCheckFn: (env: string, secPath: string) => boolean; // used to pass as callback function to import secret
if (req.user?._id) {
const { permission } = await getUserProjectPermissions(req.user._id, workspaceId);
+2 -2
View File
@@ -225,8 +225,8 @@ export const GetSecretsV2 = z.object({
export const GetSecretsRawV3 = z.object({
query: z.object({
workspaceId: z.string().trim(),
environment: z.string().trim(),
workspaceId: z.string().trim().optional(),
environment: z.string().trim().optional(),
secretPath: z.string().trim().default("/"),
folderId: z.string().trim().optional(),
include_imports: z