mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
665f112570
Signed-off-by: KAZYPinkSaurus <kazuya.arai@sansan.com> Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
28 lines
No EOL
667 B
YAML
28 lines
No EOL
667 B
YAML
{% raw %}
|
|
apiVersion: generators.external-secrets.io/v1alpha1
|
|
kind: Webhook
|
|
metadata:
|
|
name: webhook
|
|
spec:
|
|
url: "http://httpbin.org/get?parameter={{ .auth.param }}"
|
|
result:
|
|
jsonPath: "$.args"
|
|
headers:
|
|
Content-Type: application/json
|
|
Authorization: Basic {{ print .auth.username ":" .auth.password | b64enc }}
|
|
secrets:
|
|
- name: auth
|
|
secretRef:
|
|
name: webhook-credentials
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: webhook-credentials
|
|
labels:
|
|
external-secrets.io/type: webhook #Needed to allow webhook to use this secret
|
|
data:
|
|
username: dGVzdA== # "test"
|
|
password: dGVzdA== # "test"
|
|
param: dGVzdA== # "test"
|
|
{% endraw %} |