Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
address reviews
Andreyeef3936235de
diff --git a/backend/src/ee/services/pam-account-rotation/pam-account-rotation-service.ts b/backend/src/ee/services/pam-account-rotation/pam-account-rotation-service.tsindex 62ee28ac28..8057de539e 100644--- a/backend/src/ee/services/pam-account-rotation/pam-account-rotation-service.ts+++ b/backend/src/ee/services/pam-account-rotation/pam-account-rotation-service.ts@@ -868,6 +868,12 @@ export const pamAccountRotationServiceFactory = (deps: TPamAccountRotationServicaccount.accountType,rotator.encryptedCredentials);+ if (!rotatorCredentials.password) {+ throw new BadRequestError({+ message:+ "Rotation account authenticates without a password, so it cannot perform rotations. Choose an account that uses password authentication."+ });+ }if (toBareAccountName(rotatorCredentials.username).toLowerCase() ===toBareAccountName(targetCredentials.username).toLowerCase()diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.tsindex 3eb8e7cacd..ac0705ba9d 100644--- a/backend/src/ee/services/pam-account/pam-account-service.ts+++ b/backend/src/ee/services/pam-account/pam-account-service.ts@@ -636,6 +636,7 @@ export const pamAccountServiceFactory = (deps: TPamAccountServiceFactoryDep) =>// Forced fields cross the two groups, so a change to either side is resolved against the merged// view and both are rewrittenlet principalChanged = false;+ let authMethodChanged = false;let connectionTargetChanged = false;let effectiveConnectionDetails: Record<string, unknown> | null = null;let effectiveCredentials: Record<string, unknown> | null = null;@@ -673,10 +674,15 @@ export const pamAccountServiceFactory = (deps: TPamAccountServiceFactoryDep) =>const oldUsername = (existingCredentials as { username?: string }).username;const newUsername = (effectiveCredentials as { username?: string }).username;if (oldUsername !== newUsername) principalChanged = true;++ // Normalized on both sides so an older account without a stored auth method doesn't read as a change+ const oldAuthMethod = normalizeCredentialAuthMethod(accountType, existingCredentials).authMethod;+ if (oldAuthMethod !== (effectiveCredentials as { authMethod?: string }).authMethod) authMethodChanged = true;}const routingChanged =connectionTargetChanged ||+ authMethodChanged ||(gatewayId !== undefined && gatewayId !== existing.gatewayId) ||(gatewayPoolId !== undefined && gatewayPoolId !== existing.gatewayPoolId);if ((routingChanged || principalChanged) && existing.rotationAccountId) {