Skip to content

password ​

The password rotator enables you to rotate any user-defined key by generating random passwords.

INFO

If you want to generate memorable passphrases use the passphrase rotator

Example ​

The password rotator can be configured for any user-defined key.

yaml
values:
  mypassword:
    fn::rotate::password:
      inputs:
        minLower: 2
        minUpper: 3
        minSpecial: 5
        overrideSpecial: "!@#$%&*()-_=+[]{}<>:"
        length: 15

The previous example will generate passwords like: wn#ZQH}z$[H_&h*

When you open the environment, you should see output similar to the following:

json
{
  "mypassword": {
    "current": "[secret]",
    "previous": "[secret]"
  }
}

Schema reference ​

Inputs ​

State ​

Outputs ​

Troubleshooting ​

SymptomLikely causeResolution
Rotation fails with an invalid input errorlength is outside 8–100, or the sum of minLower, minUpper, minNumeric, and minSpecial exceeds length.Set length within range and lower the minimum-count inputs so they fit within the password length.
Generated passwords are missing a character classThe class is disabled (lower, upper, numeric, or special set to false) or its minimum is 0.Enable the character class and set its corresponding minimum to require at least one character.

Content from the official Pulumi documentation (github.com/pulumi/docs).