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

Enable password cannot have more than 2 repeated characters #516

Open
1 task done
kasirajans opened this issue Jan 20, 2024 · 0 comments
Open
1 task done

Enable password cannot have more than 2 repeated characters #516

kasirajans opened this issue Jan 20, 2024 · 0 comments

Comments

@kasirajans
Copy link

kasirajans commented Jan 20, 2024

Terraform CLI and Provider Versions

Terraform v1.6.6
on darwin_arm64

  • provider registry.terraform.io/hashicorp/random v3.6.0
  • provider registry.terraform.io/pingidentity/pingone v0.25.1

Your version of Terraform is out of date! The latest version
is 1.7.0. You can update by downloading from https://www.terraform.io/downloads.html

Use Cases or Problem Statement

We use PingOne provider for password generation and we have option to enable "password cannot have more than 2 repeated characters" . As per below output random_password.password["[email protected]"].result have "KK" value repeated so user creation is failing.

Terrafrom error

random_password.password["[email protected]"]: Creation complete after 0s [id=none]
pingone_user.admins["[email protected]"]: Creating...
│ Error: Error when calling `CreateUser`: The request could not be completed. One or more validation errors were in the request.
│ 
│   with pingone_user.admins["[email protected]"],
│   on users.tf line 1, in resource "pingone_user" "admins":
│    1: resource "pingone_user" "admins" {
│ 
│ PingOne Error Details:
│ ID: 78355ac7-870a-4ff8-ad01-765babcca2a1
│ Code: INVALID_DATA
│ Message: The request could not be completed. One or more validation errors were in the request.
│ Details object: [{"code":"INVALID_VALUE","innerError":{},"message":"User password did not satisfy password policy requirements","target":"password"}]

Terraform Sample [email protected] password string

    "<[email protected]>": {
      "bcrypt_hash": "<Removed>",
      "id": "none",
      "keepers": null,
      "length": 32,
      "lower": true,
      "min_lower": 3,
      "min_numeric": 3,
      "min_special": 3,
      "min_upper": 3,
      "number": true,
      "numeric": true,
      "override_special": "~!@#$%^*()&",
      "result": "kHkkKy7GO9#6Hc~lK7^h5wtaA*VSwC9#",
      "special": true,
      "upper": true
    }

Need option to have field for "password cannot have more than 2 field" in random_password.password

Proposal

Need option to have field for "password cannot have more than 2 field" in random_password.password

How much impact is this issue causing?

Low

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant