apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: matrix-synapse-mautrix-discord-config
  namespace: matrix-synapse
  labels:
    app.kubernetes.io/name: matrix-synapse-mautrix-discord-config
    app.kubernetes.io/instance: matrix-synapse
    app.kubernetes.io/part-of: matrix-synapse
spec:
  provider: openbao
  parameters:
    baoAddress: "http://openbao-internal.openbao:8200"
    roleName: matrix-synapse
    objects: |
      - objectName: mautrix-discord-registration.yaml
        fileName: mautrix-discord-registration.yaml
        secretPath: secret/data/cl01tl/matrix-synapse/mautrix-discord
        secretKey: mautrix-discord-registration.yaml
