# audit-core sender-registry store. Deploy on railiance01 (not the
# coulombcore ArgoCD kustomization — same interim pattern as
# openbao-email-connect / openbao-activity-core).
#
# Prereq: Secret external-secrets/openbao-audit-core-approle (role-id, secret-id)
# delivered by ops-mason plan audit-core-openbao-runtime-custody.
# Database leases use sibling store openbao-audit-core-database in the
# audit-core package (same AppRole, database mount).
apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
  name: openbao-audit-core
  labels:
    app.kubernetes.io/part-of: railiance-gitops
    railiance-platform/component: external-secrets
    app.kubernetes.io/name: audit-core
spec:
  provider:
    vault:
      server: http://openbao.openbao.svc:8200
      path: platform
      version: v2
      auth:
        appRole:
          path: approle
          roleRef:
            name: openbao-audit-core-approle
            namespace: external-secrets
            key: role-id
          secretRef:
            name: openbao-audit-core-approle
            namespace: external-secrets
            key: secret-id
  conditions:
    - namespaces:
        - audit-core
