diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-03-02 17:17:56 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-03-02 17:17:56 +0300 |
commit | ddd05772b5de242fc7ea2569779ffc5d37ec3443 (patch) | |
tree | ca7ee3036793740c1a5f6e78932d404126b687b5 /modules/deployment | |
parent | 9e3133a548b989045c33f67a3b7f8db591935347 (diff) | |
download | nixsap-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.nix | 2 |
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}") |