Loading nixos/modules/services/monitoring/grafana.nix +8 −2 Original line number Diff line number Diff line Loading @@ -876,13 +876,19 @@ in secret_key = mkOption { description = '' Secret key used for signing. Please note that the contents of this option Secret key used for signing data source settings like secrets and passwords. Set this to a unique, random string in production, generated for example by running `openssl rand -hex 32`. If you change this later you will need to update data source settings to re-encode them. <https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#secret_key> 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: <https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#file-provider> ''; default = "SW2YcwTIb9zpOOhoPsMm"; type = types.str; }; Loading nixos/tests/grafana/basic.nix +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ import ../make-test-python.nix ( security = { admin_user = "testadmin"; admin_password = "snakeoilpwd"; secret_key = "11111111111111111111"; }; }; }; Loading nixos/tests/grafana/provision/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ import ../../make-test-python.nix ( security = { admin_user = "testadmin"; admin_password = "$__file{${pkgs.writeText "pwd" "snakeoilpwd"}}"; secret_key = "11111111111111111111"; }; }; }; Loading Loading
nixos/modules/services/monitoring/grafana.nix +8 −2 Original line number Diff line number Diff line Loading @@ -876,13 +876,19 @@ in secret_key = mkOption { description = '' Secret key used for signing. Please note that the contents of this option Secret key used for signing data source settings like secrets and passwords. Set this to a unique, random string in production, generated for example by running `openssl rand -hex 32`. If you change this later you will need to update data source settings to re-encode them. <https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#secret_key> 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: <https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#file-provider> ''; default = "SW2YcwTIb9zpOOhoPsMm"; type = types.str; }; Loading
nixos/tests/grafana/basic.nix +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ import ../make-test-python.nix ( security = { admin_user = "testadmin"; admin_password = "snakeoilpwd"; secret_key = "11111111111111111111"; }; }; }; Loading
nixos/tests/grafana/provision/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ import ../../make-test-python.nix ( security = { admin_user = "testadmin"; admin_password = "$__file{${pkgs.writeText "pwd" "snakeoilpwd"}}"; secret_key = "11111111111111111111"; }; }; }; Loading