apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: talos-etcd-backup-local-config
  namespace: talos
  labels:
    app.kubernetes.io/name: talos-etcd-backup-local-config
    app.kubernetes.io/instance: talos
    app.kubernetes.io/part-of: talos
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao
  data:
    - secretKey: AWS_ACCESS_KEY_ID
      remoteRef:
        key: /garage/home-infra/talos-backups
        property: ACCESS_KEY_ID
    - secretKey: AWS_SECRET_ACCESS_KEY
      remoteRef:
        key: /garage/home-infra/talos-backups
        property: ACCESS_SECRET_KEY
    - secretKey: AWS_REGION
      remoteRef:
        key: /garage/home-infra/talos-backups
        property: ACCESS_REGION
    - secretKey: BUCKET_NAME
      remoteRef:
        key: /garage/home-infra/talos-backups
        property: BUCKET
    - secretKey: BUCKET
      remoteRef:
        key: /garage/home-infra/talos-backups
        property: BUCKET_PATH
    - secretKey: AGE_X25519_PUBLIC_KEY
      remoteRef:
        key: /cl01tl/talos/etcd-backup
        property: AGE_X25519_PUBLIC_KEY
