grafana / grafana-operator

An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
https://grafana.github.io/grafana-operator/
Apache License 2.0
863 stars 384 forks source link

GrafanaContactPoint doesn't support values from secretkeyref #1595

Open jacobaccumulus opened 2 months ago

jacobaccumulus commented 2 months ago

Is your feature request related to a problem? Please describe. Trying to add pagerduty contact point, realized I cannot inject the integration key from a kubernetes secret.

Describe the solution you'd like valuesfrom secretkeyref functionality identical to that in the GrafanaDataource CR

Describe alternatives you've considered Potentially possible to work around with env vars but not ideal or consistent with best practices.

audriusb commented 1 month ago

yes please. i'd like that as well.

joelp172 commented 1 month ago

+1. Currently the only way to create a slack contact point is to hardcode the webhook and commit it to git. This is not secure and against all best practice. In a similar way to data sources, been able to specify values from secrets would be the solution.

Fantaztig commented 3 weeks ago

Same for webhooks! Not sure about the other use cases, could it be enough to allow referencing a Secret in a 'secureSettings' field?

sanketgawade commented 5 hours ago

We are also looking for this since, we are trying setup PagerDuty contactpoints and have to put keys as plain text. Is this work in progress ?