import { Controller, useFormContext } from "react-hook-form"; import { TSecretRotationV2Form } from "@app/components/secret-rotations-v2/forms/schemas"; import { FormControl, Input } from "@app/components/v2"; import { SecretRotation } from "@app/hooks/api/secretRotationsV2"; import { DEFAULT_PASSWORD_REQUIREMENTS } from "../schemas/shared"; export const RedisCredentialsRotationParametersFields = () => { const { control } = useFormContext< TSecretRotationV2Form & { type: SecretRotation.RedisCredentials; } >(); return ( <>
(

This is the access control permissions that will be set for the issued Redis users. The format must be a valid Redis ACL pattern.

The default value is{" "} ~* +@all . You can modify it to suit your needs.

For more information, please refer to the{" "} Redis ACL documentation .

} label="Permission Scope" isError={Boolean(error)} errorText={error?.message} > )} />
Password Requirements
( field.onChange(Number(e.target.value))} /> )} /> ( field.onChange(Number(e.target.value))} /> )} /> ( field.onChange(Number(e.target.value))} /> )} /> ( field.onChange(Number(e.target.value))} /> )} /> ( field.onChange(Number(e.target.value))} /> )} /> ( field.onChange(e.target.value)} /> )} />
); };