Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 1.64 KB

password.md

File metadata and controls

74 lines (59 loc) · 1.64 KB

Password

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 characters
  • secretTemplate
  • digits (optional; default is 0) minimun number of digits in the generated password
  • lowercaseLetters (optional; default is 0) minimun number of lowercase letters in the generated password
  • uppercaseLetters (optional; default is 0) minimun number of uppercase letters in the generated password
  • symbols (optional; default is 0) minimun number of symbols in the generated password
  • symbolCharSet(optional, string) list of characters available when generating a password with symbols

Secret Template

Available variables:

  • $(value)

Examples

apiVersion: secretgen.k14s.io/v1alpha1
kind: Password
metadata:
  name: long-user-password
spec:
  length: 124

With 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: "!$#%"