Skip to content

Password generator

When you want the secret to be randomly generated you can use a Password generator. This generator returns a password that is generated based on its configuration.

The FLOW platform provides a ClusterGenerator resource that can be used by ExternalSecret objects throughout the cluster.

In order to set up an ExternalSecret backed by the FLOW ClusterGenerator you must define your ExternalSecret in the following way:

password-generator-es.yaml
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: example-external-secret
spec:
refreshInterval: "0"
target:
name: example-secret
creationPolicy: Owner
template:
type: Opaque
data:
secret: "{{ .password }}"
dataFrom:
- sourceRef:
generatorRef:
apiVersion: generators.external-secrets.io/v1alpha1
kind: ClusterGenerator
name: flow-password-generator