Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add min_lower param to password #10

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ No modules.
| <a name="input_lc_ctype"></a> [lc\_ctype](#input\_lc\_ctype) | Character classification `LC_CTYPE` to use in the database | `string` | `"C"` | no |
| <a name="input_make_owner"></a> [make\_owner](#input\_make\_owner) | Set role as an owner of database | `bool` | `false` | no |
| <a name="input_name"></a> [name](#input\_name) | The name of the database | `string` | n/a | yes |
| <a name="input_password"></a> [password](#input\_password) | Owner role's password parameters | <pre>object({<br> length = optional(number, 20)<br> special = optional(bool, false)<br> min_numeric = optional(number, 2)<br> })</pre> | `{}` | no |
| <a name="input_password"></a> [password](#input\_password) | Owner role's password parameters | <pre>object({<br> length = optional(number, 20)<br> special = optional(bool, false)<br> min_numeric = optional(number, 2)<br> min_lower = optional(number, 2)<br> })</pre> | `{}` | no |
| <a name="input_privileges"></a> [privileges](#input\_privileges) | The list of privileges to grant role for the database | `list(string)` | <pre>[<br> "CONNECT",<br> "CREATE",<br> "TEMPORARY"<br>]</pre> | no |
| <a name="input_role"></a> [role](#input\_role) | The name of the role, default - name of database | `string` | `null` | no |

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "random_password" "password" {
length = var.password.length
special = var.password.special
min_numeric = var.password.min_numeric
min_lower = var.password.min_lower
}

resource "postgresql_role" "role" {
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ variable "password" {
length = optional(number, 20)
special = optional(bool, false)
min_numeric = optional(number, 2)
min_lower = optional(number, 2)
})
default = {}
}
Expand Down