about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-20T16·29+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-20T16·32+0100
commit7a2b64e55c7d57707f4d1ed54ee21bf69d0d0d16 (patch)
tree26b4270cdbbd180c0253e50310211ac29a4b1637 /src
parentea94a87493df0a60cadba291e31bbe7c6847c0c5 (diff)
binary-cache-public-keys -> trusted-public-keys
The name had become a misnomer since it's not only for substitution
from binary caches, but when adding/copying any
(non-content-addressed) path to a store.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/crypto.cc2
-rw-r--r--src/libstore/globals.hh7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/libstore/crypto.cc b/src/libstore/crypto.cc
index f56a6adab9c9..9ec8abd228e9 100644
--- a/src/libstore/crypto.cc
+++ b/src/libstore/crypto.cc
@@ -105,7 +105,7 @@ PublicKeys getDefaultPublicKeys()
 
     // FIXME: filter duplicates
 
-    for (auto s : settings.binaryCachePublicKeys.get()) {
+    for (auto s : settings.trustedPublicKeys.get()) {
         PublicKey key(s);
         publicKeys.emplace(key.name, key);
     }
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index a4aa842d70fd..70c01bb32665 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -259,10 +259,11 @@ public:
     Setting<bool> enforceDeterminism{this, true, "enforce-determinism",
         "Whether to fail if repeated builds produce different output."};
 
-    Setting<Strings> binaryCachePublicKeys{this,
+    Setting<Strings> trustedPublicKeys{this,
         {"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="},
-        "binary-cache-public-keys",
-        "Trusted public keys for secure substitution."};
+        "trusted-public-keys",
+        "Trusted public keys for secure substitution.",
+        {"binary-cache-public-keys"}};
 
     Setting<Strings> secretKeyFiles{this, {}, "secret-key-files",
         "Secret keys with which to sign local builds."};