File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,17 @@ resource "scaleway_rdb_instance" "main" {
2424}
2525
2626resource "random_password" "db_password" {
27- length = 16
28- special = true
27+ length = 20
28+ special = true
29+ upper = true
30+ lower = true
31+ numeric = true
32+ min_upper = 1
33+ min_lower = 1
34+ min_numeric = 1
35+ min_special = 1
36+ # Exclude characters that might cause issues in some contexts
37+ override_special = "!@#$%^&*()_+-=[]{}|;:,.<>?"
2938}
3039
3140resource "scaleway_rdb_user" "db_admin" {
@@ -48,7 +57,15 @@ The following arguments are supported:
4857
4958~ > ** Important:** Updates to ` name ` will recreate the database user.
5059
51- - ` password ` - (Required) database user password.
60+ - ` password ` - (Required) database user password. The password must meet the following requirements based on ISO27001 standards:
61+ - ** Length** : 8-128 characters
62+ - ** Character types required** :
63+ - At least 1 lowercase letter (a-z)
64+ - At least 1 uppercase letter (A-Z)
65+ - At least 1 digit (0-9)
66+ - At least 1 special character (!@#$%^&* ()_ +-=[ ] {}|;:,.<>?)
67+
68+ For secure password generation, consider using the ` random_password ` resource with appropriate parameters.
5269
5370- ` is_admin ` - (Optional) Grant admin permissions to the database user.
5471
You can’t perform that action at this time.
0 commit comments