Skip to content

password_policy support in google_sql_user #791

@mnacharov

Description

@mnacharov

TL;DR

Set a user password policy option isn't currently supported.

Terraform Resources

[google_sql_user](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_user)

Detailed design

Module should provide at least two options from the `password_policy` structure: `allowed_failed_attempts` and `enable_failed_attempts_check`. It will enhance the security of SQL instances.

Additional information

Google shows a warning about it in the Cloud Console:
Image

Adding a policy via gcloud does not help since the next terraform apply will remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions