You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: Switch to random_password instead of random_id (#308)
* use random_password instead of random_id
- random_id byte_length = 8 (integers) contains 26.6 bits of
entropy. hex encoding does not change that entropy.
Instead use random_password length = 32 restricted to (upper,
lower, int) which contains 190.5 bits of entropy.
- Restrict random_password to special = false to prevent issues
with allowed characters.
* upgrade guide for default pass
Co-authored-by: Michael Cook <[email protected]>
Copy file name to clipboardExpand all lines: docs/upgrading_to_sql_db_11.0.0.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ The 11.0.0 release of SQL DB is a backward incompatible release. This incompatib
4
4
5
5
## Migration Instructions
6
6
7
+
### Add support for setting disk_autoresize_limit
8
+
7
9
Prior to the 11.0.0 release, all instances could only be created without a limit.
8
10
9
11
```hcl
@@ -91,3 +93,23 @@ module "pg" {
91
93
]
92
94
}
93
95
```
96
+
97
+
### Switched to using random_password to generate default passwords
98
+
99
+
With the 11.0.0 release, the `random_id` resource used to generate default passwords has been replaced with `random_password` resource. This improves the default behavior by generating stronger passwords as defaults. To continue using the previously generated password and prevent updates to the `google_sql_user` resources, specify the old password via `user_password` variable or `additional_users.password`. It is recommended to store this value in [Secret Manager](https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets#secretmanager-create-secret-gcloud) as opposed to passing it in via plain text.
100
+
101
+
```diff
102
+
+ data "google_secret_manager_secret_version" "user_password" {
0 commit comments