Skip to content

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

Fix linter issues

Fang-Pen Lindd713fbe612e
diff --git a/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts b/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts
index 6c430c9b1d..8d3589a8ab 100644
--- a/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts
+++ b/backend/src/ee/services/pam-resource/mysql/mysql-resource-schemas.ts
@@ -59,9 +59,7 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({
});
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({
- credentials: MySQLAccountCredentialsSchema,
- // We don't support pwd rotation for mysql yet
- rotationEnabled: z.boolean().default(false)
+ credentials: MySQLAccountCredentialsSchema
});
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx
index 23b05610f3..131da7ef36 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/MySQLAccountForm.tsx
@@ -18,7 +18,10 @@ type Props = {
};
const formSchema = genericAccountFieldsSchema.extend({
- credentials: BaseSqlAccountSchema
+ credentials: BaseSqlAccountSchema,
+ // We don't support rotation for now, just feed a false value to
+ // make the schema happy
+ rotationEnabled: z.boolean().default(false)
});
type FormData = z.infer<typeof formSchema>;