Increase the default complexity of Cloud SQL DB passwords (#2886)

* Increase the default complexity of DB passwords in order to meet password_validation_policy.default_complexity

* Use password_validation_policy.min_length if provided

* Explicitly generate a root_password if not provided

* Use object (password, random_password) for root_password config

* Make root_password non-nullable, and add validation against specifying both a password and `random_password`.
Fix test for stronger password generation.

* Add example for root_password and password_validation_policy

* Rerun tfdoc.py

---------

Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
Simon Roberts
2025-02-18 21:46:29 +11:00
committed by GitHub
parent e8e7ad7fe9
commit 642ebfe9e9
4 changed files with 79 additions and 16 deletions

View File

@@ -49,10 +49,10 @@ values:
keepers: null
length: 16
lower: true
min_lower: 0
min_numeric: 0
min_special: 0
min_upper: 0
min_lower: 1
min_numeric: 1
min_special: 1
min_upper: 1
number: true
numeric: true
override_special: null