PasswordSpec controls the behavior of the password generator.
allowRepeat
boolean required
set AllowRepeat to true to allow repeating characters.
digits
integer
Digits specifies the number of digits in the generated
password. If omitted it defaults to 25% of the length of the password
encoding
string
Encoding specifies the encoding of the generated password.
Valid values are:
- "raw" (default): no encoding
- "base64": standard base64 encoding
- "base64url": base64url encoding
- "base32": base32 encoding
- "hex": hexadecimal encoding
enum: base64, base64url, base32, hex, raw
length
integer required
Length of the password to be generated.
Defaults to 24
noUpper
boolean required
Set NoUpper to disable uppercase characters
secretKeys
[]string
SecretKeys defines the keys that will be populated with generated passwords.
Defaults to "password" when not set.
minItems: 1
symbolCharacters
string
SymbolCharacters specifies the special characters that should be used
in the generated password.
symbols
integer
Symbols specifies the number of symbol characters in the generated
password. If omitted it defaults to 25% of the length of the password