mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 17:27:16 +00:00
Remove pwd rotation stuff for now
This commit is contained in:
@@ -58,11 +58,19 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({
|
|||||||
credentials: MySQLAccountCredentialsSchema
|
credentials: MySQLAccountCredentialsSchema
|
||||||
});
|
});
|
||||||
|
|
||||||
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({
|
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.omit({
|
||||||
|
// We don't support pwd rotation for mysql yet
|
||||||
|
rotationEnabled: true,
|
||||||
|
rotationIntervalSeconds: true
|
||||||
|
}).extend({
|
||||||
credentials: MySQLAccountCredentialsSchema
|
credentials: MySQLAccountCredentialsSchema
|
||||||
});
|
});
|
||||||
|
|
||||||
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({
|
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.omit({
|
||||||
|
// We don't support pwd rotation for mysql yet
|
||||||
|
rotationEnabled: true,
|
||||||
|
rotationIntervalSeconds: true
|
||||||
|
}).extend({
|
||||||
credentials: MySQLAccountCredentialsSchema.optional()
|
credentials: MySQLAccountCredentialsSchema.optional()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -7,7 +7,6 @@ import { PamResourceType, TMySQLAccount } from "@app/hooks/api/pam";
|
|||||||
import { UNCHANGED_PASSWORD_SENTINEL } from "@app/hooks/api/pam/constants";
|
import { UNCHANGED_PASSWORD_SENTINEL } from "@app/hooks/api/pam/constants";
|
||||||
|
|
||||||
import { GenericAccountFields, genericAccountFieldsSchema } from "./GenericAccountFields";
|
import { GenericAccountFields, genericAccountFieldsSchema } from "./GenericAccountFields";
|
||||||
import { rotateAccountFieldsSchema } from "./RotateAccountFields";
|
|
||||||
import { BaseSqlAccountSchema } from "./shared/sql-account-schemas";
|
import { BaseSqlAccountSchema } from "./shared/sql-account-schemas";
|
||||||
import { SqlAccountFields } from "./shared/SqlAccountFields";
|
import { SqlAccountFields } from "./shared/SqlAccountFields";
|
||||||
|
|
||||||
@@ -18,7 +17,7 @@ type Props = {
|
|||||||
onSubmit: (formData: FormData) => Promise<void>;
|
onSubmit: (formData: FormData) => Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const formSchema = genericAccountFieldsSchema.extend(rotateAccountFieldsSchema.shape).extend({
|
const formSchema = genericAccountFieldsSchema.extend({
|
||||||
credentials: BaseSqlAccountSchema
|
credentials: BaseSqlAccountSchema
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user