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
fix rotation account configured detection
x0322052b6fcb2564d6
diff --git a/backend/src/ee/services/pam-resource/pam-resource-schemas.ts b/backend/src/ee/services/pam-resource/pam-resource-schemas.tsindex 5b01991664..8f4752f4e6 100644--- a/backend/src/ee/services/pam-resource/pam-resource-schemas.ts+++ b/backend/src/ee/services/pam-resource/pam-resource-schemas.ts@@ -31,6 +31,8 @@ export const BasePamAccountSchemaWithResource = BasePamAccountSchema.extend({id: true,name: true,resourceType: true+ }).extend({+ rotationCredentialsConfigured: z.boolean()})});diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/PostgresAccountForm.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/PostgresAccountForm.tsxindex bbf7982fb1..5a2104275a 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/PostgresAccountForm.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/PostgresAccountForm.tsx@@ -54,7 +54,7 @@ export const PostgresAccountForm = ({ account, resourceId, onSubmit }: Props) =>} else {setRotationCredentialsConfigured(!!resource?.rotationAccountCredentials);}- }, [account]);+ }, [account, resource]);return (<FormProvider {...form}>diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/RotateAccountFields.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/RotateAccountFields.tsxindex 32a7040ec4..2739e1cd5c 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/RotateAccountFields.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/RotateAccountFields.tsx@@ -22,7 +22,10 @@ export const RotateAccountFields = ({const rotationEnabled = watch("rotationEnabled");return (- <Tooltip content="The resource which owns this account does not have rotation credentials configured.">+ <Tooltip+ isDisabled={rotationCredentialsConfigured}+ content="The resource which owns this account does not have rotation credentials configured."+ ><divclassName={twMerge("flex h-9 w-fit items-center gap-3",