rename to expandSecretReferences

This commit is contained in:
Maidul Islam
2024-05-04 22:05:57 -04:00
parent 61ae0e2fc7
commit ab79342743
3 changed files with 5 additions and 5 deletions
@@ -166,7 +166,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
workspaceSlug: z.string().trim().optional().describe(RAW_SECRETS.LIST.workspaceSlug), workspaceSlug: z.string().trim().optional().describe(RAW_SECRETS.LIST.workspaceSlug),
environment: z.string().trim().optional().describe(RAW_SECRETS.LIST.environment), environment: z.string().trim().optional().describe(RAW_SECRETS.LIST.environment),
secretPath: z.string().trim().default("/").transform(removeTrailingSlash).describe(RAW_SECRETS.LIST.secretPath), secretPath: z.string().trim().default("/").transform(removeTrailingSlash).describe(RAW_SECRETS.LIST.secretPath),
expand: z expandSecretReferences: z
.enum(["true", "false"]) .enum(["true", "false"])
.default("false") .default("false")
.transform((value) => value === "true") .transform((value) => value === "true")
@@ -238,7 +238,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
actor: req.permission.type, actor: req.permission.type,
actorOrgId: req.permission.orgId, actorOrgId: req.permission.orgId,
environment, environment,
expand: req.query.expand, expandSecretReferences: req.query.expandSecretReferences,
actorAuthMethod: req.permission.authMethod, actorAuthMethod: req.permission.authMethod,
projectId: workspaceId, projectId: workspaceId,
path: secretPath, path: secretPath,
@@ -886,7 +886,7 @@ export const secretServiceFactory = ({
actorAuthMethod, actorAuthMethod,
environment, environment,
includeImports, includeImports,
expand, expandSecretReferences,
recursive recursive
}: TGetSecretsRawDTO) => { }: TGetSecretsRawDTO) => {
const botKey = await projectBotService.getBotKey(projectId); const botKey = await projectBotService.getBotKey(projectId);
@@ -915,7 +915,7 @@ export const secretServiceFactory = ({
) )
})); }));
if (expand) { if (expandSecretReferences) {
const expandSecrets = interpolateSecrets({ const expandSecrets = interpolateSecrets({
folderDAL, folderDAL,
projectId, projectId,
+1 -1
View File
@@ -138,7 +138,7 @@ export type TDeleteBulkSecretDTO = {
} & TProjectPermission; } & TProjectPermission;
export type TGetSecretsRawDTO = { export type TGetSecretsRawDTO = {
expand?: boolean; expandSecretReferences?: boolean;
path: string; path: string;
environment: string; environment: string;
includeImports?: boolean; includeImports?: boolean;