Skip to content

passphrase ​

The passphrase rotator enables you to rotate any user-defined key in your ESC environment by generating memorable passphrases.

INFO

If you want to generate random passwords use the password rotator

Example ​

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

yaml
values:
  mypassphrase:
    fn::rotate::passphrase:
      inputs:
        separator: "%"
        capitalize: true
        length: 4

This configuration will generate passphrases like Mouth%Purebred%Headstone%Plausibly.

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

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

Schema reference ​

Inputs ​

State ​

Outputs ​

Troubleshooting ​

SymptomLikely causeResolution
Rotation fails with an invalid input errorlength is outside 3–15, or separator is not a single character.Set length within range and separator to a single character, then rotate again.
The generated passphrase is shorter or longer than expectedlength counts words, not characters.Adjust length to the desired number of words; the character count varies with the words chosen.

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