# rapp-qonto uses the private railiance01 OpenBao service. ESO retains the
# dedicated AppRole during the endpoint cutover; same-cluster Kubernetes auth
# is the follow-up steady-state identity.
#
# Prerequisite: Secret external-secrets/openbao-rapp-qonto-approle with keys
# role-id and secret-id, delivered by the approved ops-mason construction plan.
apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
  name: openbao-rapp-qonto
  labels:
    app.kubernetes.io/part-of: railiance-gitops
    railiance-platform/component: external-secrets
spec:
  provider:
    vault:
      server: http://openbao.openbao.svc:8200
      path: tenants
      version: v2
      auth:
        appRole:
          path: approle
          roleRef:
            name: openbao-rapp-qonto-approle
            namespace: external-secrets
            key: role-id
          secretRef:
            name: openbao-rapp-qonto-approle
            namespace: external-secrets
            key: secret-id
  conditions:
    - namespaces:
        - rapp-qonto
