Password CRD allows to generate alpha-numeric passwords. The default charset includes lowercase characters, uppercase characters and digits.
spec fields:
length(optional; default is 40) number of characterssecretTemplatedigits(optional; default is 0) minimun number of digits in the generated passwordlowercaseLetters(optional; default is 0) minimun number of lowercase letters in the generated passworduppercaseLetters(optional; default is 0) minimun number of uppercase letters in the generated passwordsymbols(optional; default is 0) minimun number of symbols in the generated passwordsymbolCharSet(optional, string) list of characters available when generating a password with symbols
Available variables:
$(value)
apiVersion: secretgen.k14s.io/v1alpha1
kind: Password
metadata:
name: long-user-password
spec:
length: 124With custom secret projection:
apiVersion: secretgen.k14s.io/v1alpha1
kind: Password
metadata:
name: long-user-password
spec:
length: 124
secretTemplate:
type: Opaque
stringData:
postgresql-password: $(value)With custom specification:
apiVersion: secretgen.k14s.io/v1alpha1
kind: Password
metadata:
name: custom-user-password
spec:
length: 27
digits: 2
uppercaseLetters: 4
lowercaseLetters: 10
symbols: 3 With only symbols and specific symbol charset specification:
apiVersion: secretgen.k14s.io/v1alpha1
kind: Password
metadata:
name: only-symbols-user-password
spec:
length: 7
symbols: 7
symbolCharSet: "!$#%"