mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
95bb5f9345
* Using Bitwarden notes for multiline secrets Signed-off-by: Laszlo Fogas <laszlo@gimlet.io> * Update docs/snippets/bitwarden-secret.yaml Signed-off-by: Moritz Johner <moolen@users.noreply.github.com> --------- Signed-off-by: Laszlo Fogas <laszlo@gimlet.io> Signed-off-by: Moritz Johner <moolen@users.noreply.github.com> Co-authored-by: Moritz Johner <moolen@users.noreply.github.com>
37 lines
910 B
YAML
37 lines
910 B
YAML
{% raw %}
|
|
---
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ClusterSecretStore
|
|
metadata:
|
|
name: bitwarden-login
|
|
spec:
|
|
provider:
|
|
webhook:
|
|
url: "http://bitwarden-cli:8087/object/item/{{ .remoteRef.key }}"
|
|
headers:
|
|
Content-Type: application/json
|
|
result:
|
|
jsonPath: "$.data.login.{{ .remoteRef.property }}"
|
|
---
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ClusterSecretStore
|
|
metadata:
|
|
name: bitwarden-fields
|
|
spec:
|
|
provider:
|
|
webhook:
|
|
url: "http://bitwarden-cli:8087/object/item/{{ .remoteRef.key }}"
|
|
result:
|
|
jsonPath: "$.data.fields[?@.name==\"{{ .remoteRef.property }}\"].value"
|
|
---
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ClusterSecretStore
|
|
metadata:
|
|
name: bitwarden-notes
|
|
spec:
|
|
provider:
|
|
webhook:
|
|
url: "http://bitwarden-cli:8087/object/item/{{ .remoteRef.key }}"
|
|
result:
|
|
jsonPath: "$.data.notes"
|
|
{% endraw %}
|