External Secrets Operator integrates with Password Depot API to sync Password Depot to secrets held on the Kubernetes cluster.
The API requires a username and password.
{% include 'password-depot-credentials-secret.yaml' %}
Be sure the passworddepot provider is listed in the Kind=SecretStore and host and database are set.
{% include 'passworddepot-secret-store.yaml' %}
To sync a Password Depot variable to a secret on the Kubernetes cluster, a Kind=ExternalSecret is needed.
{% include 'passworddepot-external-secret.yaml' %}
DataFrom can be used to get a variable as a JSON string and attempt to parse it.
{% include 'passworddepot-external-secret-json.yaml' %}
The operator will fetch the project variable and inject it as a Kind=Secret.
kubectl get secret passworddepot-secret-to-create -o jsonpath='{.data.secretKey}' | base64 -d