apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: searxng-api-config
  namespace: searxng
  labels:
    app.kubernetes.io/name: searxng-api-config
    app.kubernetes.io/instance: searxng
    app.kubernetes.io/part-of: searxng
spec:
  provider: openbao
  parameters:
    baoAddress: "http://openbao-internal.openbao:8200"
    roleName: searxng
    objects: |
      - objectName: limiter.toml
        fileName: limiter.toml
        secretPath: secret/data/cl01tl/searxng/api
        secretKey: limiter.toml
      - objectName: settings.yml
        fileName: settings.yml
        secretPath: secret/data/cl01tl/searxng/api
        secretKey: settings.yml
