Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

rename to expandSecretReferences

Maidul Islamab79342743a6
diff --git a/backend/src/server/routes/v3/secret-router.ts b/backend/src/server/routes/v3/secret-router.ts
index 4f64176a65..cae51f8583 100644
--- a/backend/src/server/routes/v3/secret-router.ts
+++ b/backend/src/server/routes/v3/secret-router.ts
@@ -166,7 +166,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
workspaceSlug: z.string().trim().optional().describe(RAW_SECRETS.LIST.workspaceSlug),
environment: z.string().trim().optional().describe(RAW_SECRETS.LIST.environment),
secretPath: z.string().trim().default("/").transform(removeTrailingSlash).describe(RAW_SECRETS.LIST.secretPath),
- expand: z
+ expandSecretReferences: z
.enum(["true", "false"])
.default("false")
.transform((value) => value === "true")
@@ -238,7 +238,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
actor: req.permission.type,
actorOrgId: req.permission.orgId,
environment,
- expand: req.query.expand,
+ expandSecretReferences: req.query.expandSecretReferences,
actorAuthMethod: req.permission.authMethod,
projectId: workspaceId,
path: secretPath,
diff --git a/backend/src/services/secret/secret-service.ts b/backend/src/services/secret/secret-service.ts
index c61792a13c..3f647d8a9b 100644
--- a/backend/src/services/secret/secret-service.ts
+++ b/backend/src/services/secret/secret-service.ts
@@ -886,7 +886,7 @@ export const secretServiceFactory = ({
actorAuthMethod,
environment,
includeImports,
- expand,
+ expandSecretReferences,
recursive
}: TGetSecretsRawDTO) => {
const botKey = await projectBotService.getBotKey(projectId);
@@ -915,7 +915,7 @@ export const secretServiceFactory = ({
)
}));
- if (expand) {
+ if (expandSecretReferences) {
const expandSecrets = interpolateSecrets({
folderDAL,
projectId,
diff --git a/backend/src/services/secret/secret-types.ts b/backend/src/services/secret/secret-types.ts
index 3f872092eb..df0af5b5d8 100644
--- a/backend/src/services/secret/secret-types.ts
+++ b/backend/src/services/secret/secret-types.ts
@@ -138,7 +138,7 @@ export type TDeleteBulkSecretDTO = {
} & TProjectPermission;
export type TGetSecretsRawDTO = {
- expand?: boolean;
+ expandSecretReferences?: boolean;
path: string;
environment: string;
includeImports?: boolean;