Reimplement trusted-substituters (aka trusted-binary-caches)

This commit is contained in:
Eelco Dolstra 2017-04-20 13:20:49 +02:00
parent 9cc8047f44
commit 76cb3c702c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 46 additions and 6 deletions

View file

@ -239,6 +239,10 @@ public:
"Additional URIs of substituters.",
{"extra-binary-caches"}};
Setting<StringSet> trustedSubstituters{this, {}, "trusted-substituters",
"Disabled substituters that may be enabled via the substituters option by untrusted users.",
{"trusted-binary-caches"}};
Setting<Strings> trustedUsers{this, {"root"}, "trusted-users",
"Which users or groups are trusted to ask the daemon to do unsafe things."};