# activity-core reads runtime secrets from the private railiance01 OpenBao
# service. Kubernetes auth remains the preferred follow-up identity.
#
# Prereq: Secret external-secrets/openbao-activity-core-eso-token (key: token)
# with a policy-limited OpenBao token that can read
# platform/workloads/issue-core/issue-core/issue-core-runtime (ISSUE_CORE_API_KEY).
# Bootstrap: activity-core scripts/openbao-eso-token-apply.sh
apiVersion: external-secrets.io/v1beta1
kind: ClusterSecretStore
metadata:
  name: openbao-activity-core
  labels:
    app.kubernetes.io/part-of: railiance-gitops
    railiance-platform/component: external-secrets
spec:
  provider:
    vault:
      server: http://openbao.openbao.svc:8200
      path: platform
      version: v2
      auth:
        tokenSecretRef:
          name: openbao-activity-core-eso-token
          namespace: external-secrets
          key: token
  conditions:
    - namespaces:
        - activity-core
