Skip to content

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

add account info to metadata

x0322053463d0d03c38
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index 7d766a5321..41a049debb 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -498,9 +498,17 @@ export const pamAccountServiceFactory = ({
projectId: account.projectId
});
+ const accountPath = await getFullPamFolderPath({
+ pamFolderDAL,
+ folderId: account.folderId,
+ projectId: resource.projectId
+ });
+
metadata = {
username: credentials.username,
- database: connectionCredentials.database
+ database: connectionCredentials.database,
+ accountName: account.name,
+ accountPath
};
}
break;