<p>I'm using Grafana based on the helm chart, at the moment I have all the configurations as code, the main configuration is placed into the <code>vales.yaml</code> as part of the <code>grafana.ini</code> values, the dashboards and datasources are placed into configmaps per each datasource or dashboard and the sidecar container is in charge of taking them based on the labels.</p>

<p>Now I want to use apps and the first app I'm trying is the Cloudflare app from <a href="https://grafana.com/grafana/plugins/cloudflare-app" rel="noreferrer">here</a>, the app is installed correctly using the plugins section in the chart <code>values.yaml</code> but I  don't see any documentation of how to pass the email and token of CloudFlare API by configMap or json.</p>

<p>Is it possible? or do I have to configure it manually inside the app settings?</p>

<p><a href="https://grafana.com/docs/grafana/latest/plugins/developing/auth-for-datasources/#api-key-http-header-authentication" rel="nofollow noreferrer">Grafana plugins</a> are provisionable <a href="https://grafana.com/docs/grafana/latest/administration/provisioning/#example-datasource-config-file" rel="nofollow noreferrer">datasources</a>.</p>

<p>The <a href="https://github.com/cloudflare/cloudflare-grafana-app/blob/v0.1.4/dist/plugin.json" rel="nofollow noreferrer">CloudFlare App plugin</a> uses <code>"{{.SecureJsonData.token}}"</code> for <code>X-Auth-Key</code> and <code>"{{.JsonData.email}}"}</code> for <code>X-Auth-Email</code>.</p>

<p>You could provision the Cloudflare app plugin datasource with <code>jsonData</code> and <code>secureJsonData</code>  you like to use.</p>

<p>The datasource <code>name</code> is the <code>id</code> given in Cloudflare app plugin <code>plugin.yaml</code> file. </p>

<p>You may configure <code>jsonData</code> and <code>secureJsonData</code> for this datasource in <code>datasources</code> field in <code>values.yaml</code>.</p>

<p>For example,</p>

<pre><code>datasources: 
  datasources.yaml:
    apiVersion: 1
    datasources:
    - name: cloudflare-app
      jsonData:
        email: bilbo@shi.re
      secureJsonData:
        token: extra-tolkien
</code></pre>
