Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PasswordValidationPolicy

import type { PasswordValidationPolicy } from "https://googleapis.deno.dev/v1/sqladmin:v1.ts";

Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access.

interface PasswordValidationPolicy {
complexity?: "COMPLEXITY_UNSPECIFIED" | "COMPLEXITY_DEFAULT";
disallowCompromisedCredentials?: boolean;
disallowUsernameSubstring?: boolean;
enablePasswordPolicy?: boolean;
minLength?: number;
passwordChangeInterval?: number;
reuseInterval?: number;
}

§Properties

§
complexity?: "COMPLEXITY_UNSPECIFIED" | "COMPLEXITY_DEFAULT"
[src]

The complexity of the password.

§
disallowCompromisedCredentials?: boolean
[src]

This field is deprecated and will be removed in a future version of the API.

§
disallowUsernameSubstring?: boolean
[src]

Disallow username as a part of the password.

§
enablePasswordPolicy?: boolean
[src]

Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.

§
minLength?: number
[src]

Minimum number of characters allowed.

§
passwordChangeInterval?: number
[src]

Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.

§
reuseInterval?: number
[src]

Number of previous passwords that cannot be reused.