From 34c2ea6750b976ad85410ea3964184567aaecec0 Mon Sep 17 00:00:00 2001 From: KFears Date: Tue, 20 Sep 2022 00:56:07 +0400 Subject: nixos/grafana: deprecate notifiers --- nixos/modules/services/monitoring/grafana.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'nixos/modules/services/monitoring/grafana.nix') diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index 2cea038b861..f8af84c4085 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -250,7 +250,13 @@ let secure_settings = mkOption { type = types.nullOr types.attrs; default = null; - description = lib.mdDoc "Secure settings for the notifier type."; + description = lib.mdDoc '' + Secure settings for the notifier type. Please note that the contents of this option + will end up in a world-readable Nix store. Use the file provider + pointing at a reasonably secured file in the local filesystem + to work around that. Look at the documentation for details: + + ''; }; }; }; @@ -775,7 +781,7 @@ in { ) "Datasource passwords will be stored as plaintext in the Nix store! Use file provider instead.") (optional ( any (x: x.secure_settings != null) cfg.provision.notifiers - ) "Notifier secure settings will be stored as plaintext in the Nix store!") + ) "Notifier secure settings will be stored as plaintext in the Nix store! Use file provider instead.") (optional ( builtins.isList cfg.provision.datasources ) '' @@ -790,6 +796,12 @@ in { Use `services.grafana.provision.dashboards.settings` or `services.grafana.provision.dashboards.path` instead. '') + (optional ( + cfg.provision.notifiers != [] + ) '' + Notifiers are deprecated upstream and will be removed in Grafana 10. + Use `services.grafana.provision.alerting.contactPoints` instead. + '') ]; environment.systemPackages = [ cfg.package ]; -- cgit 1.4.1