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: 15The 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
| Symptom | Likely cause | Resolution |
|---|---|---|
| Rotation fails with an invalid input error | length 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 class | The 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. |
Related
- Rotators - How credential rotation works in Pulumi ESC
- passphrase rotator - Generate memorable passphrases instead of random passwords
- Rotators reference - Catalog of all ESC rotators