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 6c430c9b1..8d3589a8a 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 23b05610f..131da7ef3 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;