aboutsummaryrefslogtreecommitdiff
path: root/modules/deployment
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-03-02 17:17:56 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-03-02 17:17:56 +0300
commitddd05772b5de242fc7ea2569779ffc5d37ec3443 (patch)
treeca7ee3036793740c1a5f6e78932d404126b687b5 /modules/deployment
parent9e3133a548b989045c33f67a3b7f8db591935347 (diff)
downloadnixsap-ddd05772b5de242fc7ea2569779ffc5d37ec3443.tar.gz
BREAKING: changed key names semantics
"foo[bar]" becomes "foo@bar". Key names must be very carefully chosen due to different requirements from file system, systemd, etc. See https://github.com/NixOS/nixops/issues/614
Diffstat (limited to 'modules/deployment')
-rw-r--r--modules/deployment/keyrings.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/deployment/keyrings.nix b/modules/deployment/keyrings.nix
index e5d0110..9325bf7 100644
--- a/modules/deployment/keyrings.nix
+++ b/modules/deployment/keyrings.nix
@@ -17,7 +17,7 @@ let
# error: the contents of the file ‘...’ cannot be represented as a Nix string
read = key:
let
- m = match "^([^(]*)\\[.+\\]$" key;
+ m = match "^(.+)@[^@]+$" key;
s = if m != null then head m else key;
in if cfg.secrets != null
then readFile (cfg.secrets + "/${s}")