apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: talos-etcd-backup-remote-config
  namespace: talos
  labels:
    app.kubernetes.io/name: talos-etcd-backup-remote-config
    app.kubernetes.io/instance: talos
    app.kubernetes.io/part-of: talos
spec:
  provider: openbao
  parameters:
    baoAddress: "http://openbao-internal.openbao:8200"
    roleName: talos
    objects: |
      - objectName: .s3cfg
        fileName: .s3cfg
        secretPath: secret/data/garage/home-infra/talos-backups
        secretKey: s3cfg-remote
