- Credentials of the privileged account which will be used for rotating other accounts
- under this resource
-
+
+
{
+ setEnabled(value);
+ if (value) {
+ setValue("rotationAccountCredentials.username", "", {
+ shouldDirty: true
+ });
+ setValue("rotationAccountCredentials.password", "", {
+ shouldDirty: true
+ });
+ } else {
+ setValue("rotationAccountCredentials", null, {
+ shouldDirty: true
+ });
+ }
+ }}
+ isChecked={enabled}
+ containerClassName="flex-row-reverse w-fit"
+ className="ml-0"
+ >
+ Credential Rotation
+
+
+ {enabled && (
+ <>
-
-
-
+
+
+ Credentials of the privileged account which will be used for rotating other accounts
+ under this resource
+
+ >
+ )}
+
);
};
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx
index efee5f313..46ff873b5 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/ActionBar.tsx
@@ -1281,7 +1281,7 @@ export const ActionBar = ({
subscription.slug === null
? "You can perform this action under an Enterprise license"
: `You can perform this action if you switch to Infisical's ${
- popUp.upgradePlan.data.isEnterpriseFeature ? "Enterprise" : "Pro"
+ popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"
} plan`
}
/>