go-neb's secretFile
support changes the semantics of the template options
#151422
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Describe the bug
The syntax inside templates is different depending on if secretFile is used or not, this makes the templates non-portable and produces confusing results.
For example, without a secret file the template in this config is valid:
However, after adding a
secretFile
we get startup errors:What is happening? In the rendered config,
$severity
has been replaced with an empty string:To fix this, I must change
$severity
to$$severity
. However,$$severity
is not valid if I don't specify a secretFile.Expected behavior
The templates I provide should be valid whether or not I provide a
secretFile
.Notify maintainers
cc @Mic92, @mweinelt
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 5.10.84, NixOS, 21.11 (Porcupine)
yes
yes
nix-env (Nix) 2.4pre20210810_a6ba313
/nix/store/33zzxrj3kzlyv22qm3p7a703dp69cshd-source
Maintainer information:
The text was updated successfully, but these errors were encountered: