Skip to content

Commit

Permalink
chore(k8s/amour/grafana): only pass unsigned plugins to allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas committed Jul 26, 2024
1 parent 8bad5f9 commit 4e35d78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k8s/amour/grafana/stateful_set_list.cue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ import (
let plugins = [{
name: "victoriametrics-datasource"
source: "https://github.com/VictoriaMetrics/victoriametrics-datasource/releases/download/v0.8.2/victoriametrics-datasource-v0.8.2.zip"
signed: false
}, {
name: "victorialogs-datasource"
source: "https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/v0.2.1/victorialogs-datasource-v0.2.1.zip;victorialogs-datasource"
signed: false
}]

#StatefulSetList: items: [{
Expand Down Expand Up @@ -66,7 +68,7 @@ let plugins = [{
}], ",")
}, {
name: "GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS"
value: strings.Join([for plugin in plugins {plugin.name}], ",")
value: strings.Join([for plugin in plugins if !plugin.signed != _|_ {plugin.name}], ",")
}]
volumeMounts: [{
name: "config"
Expand Down

0 comments on commit 4e35d78

Please sign in to comment.