29 lines
781 B
YAML
29 lines
781 B
YAML
---
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: cloudflared
|
|
spec:
|
|
secretStoreRef:
|
|
kind: ClusterSecretStore
|
|
name: onepassword-connect
|
|
target:
|
|
name: cloudflared-tunnel-secret
|
|
creationPolicy: Owner
|
|
template:
|
|
engineVersion: v2
|
|
data:
|
|
credentials.json: |
|
|
{
|
|
"AccountTag": "{{ .cloudflare_tunnel_account_tag }}",
|
|
"TunnelSecret": "{{ .cloudflare_tunnel_secret }}",
|
|
"TunnelID": "{{ .cloudflare_tunnel_id }}"
|
|
}
|
|
dataFrom:
|
|
- extract:
|
|
key: Cloudflare
|
|
rewrite:
|
|
- regexp:
|
|
source: "(.*)"
|
|
target: "cloudflare_$1"
|