Dead simple secret generation for kubernetes.
helm repo add withlazers https://charts.withlazers.dev
helm install auto-secret-operator withlazers/auto-secret-operator
Just create an empty secret with the annotation auto-secret.k8s.eboland.de/gen: "PASSWORD: default"
:
apiVersion: v1
kind: Secret
metadata:
annotations:
auto-secret.k8s.eboland.de/gen: |
PASSWORD: default
name: auto-secret
namespace: default
type: Opaque
data:
USERNAME: dXNlcg==
auto-secret-operator will generate a random password and store it in the secret:
...
data:
USERNAME: dXNlcg==
PASSWORD: MzlkPjFfejJLMjw3NkZ3QWAieVZZQEdnfnt+Sj4rV1M=
...