rancher / quickstart

378 stars 328 forks source link

Add password policy hint as comment in terraform.tfvars.example #195

Closed acwwat closed 2 years ago

acwwat commented 2 years ago

While setting up Rancher using the quickstart on DigitalOcean for the first time, it failed because of the length of the password I provided. The specific error message is:

Error: [ERROR] Updating Admin password: [ERROR] Setting admin password: Bad response statusCode [422]. Status [422 Unprocessable Entity]. Body: [message=Password must be at least 12 characters, baseType=error, code=InvalidBodyContent] from [https://rancher.<IP address redacted>.sslip.io/v3/users/user-r9zs7?action=setpassword]
│
│   with module.rancher_common.rancher2_bootstrap.admin,
│   on ..\rancher-common\rancher.tf line 4, in resource "rancher2_bootstrap" "admin":
│    4: resource "rancher2_bootstrap" "admin" {

It would be nice if we could add a comment in terraform.tfvars.example to mention that the password length must be at least 12 characters. This probably applies to all providers since it's the Rancher admin password. I would add a comment like:

# - Must be at least 12 characters

If you prefer a PR from me, let me know.

bashofmann commented 2 years ago

Yes, would be great, if you could submit a PR.

acwwat commented 2 years ago

Submitted PR, please review and approve workflow run. Thanks.