1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00
nix/src/libstore
John Ericson a47e055e09 Move trustedUsers and allowedUsers to separate config struct
These settings are not needed for libstore at all, they are just used by
the nix daemon *command* for authorization on unix domain sockets. My
moving them to a new configuration struct just in that file, we avoid
them leaking anywhere else.

Also, it is good to break up the mammoth `Settings` struct in general.
Issue #5638 tracks this.

The message is not changed because I do not want to regress in
convenience to the user. Just saying "this connection is not trusted"
doesn't tell them out to fix the issue. The ideal thing to do would be
to somehow parameterize `processCommand` on how the error should be
displayed, so different sorts of connections can display different
information to the user based on how authentication is performed for the
connection in question. This, however, is a good bit more work, so it is
left for the future.

This came up with me thinking about the tcp:// store (#5265). The larger
project is not TCP *per se*, but the idea that it should be possible for
something else to manage access control to services like the Nix Daemon,
and those services simply trust or trust the incoming connection as they
are told. This is a more capability-oriented way of thinking about trust
than "every server implements its own auth separately" as we are used to today.

Its very great that libstore itself already implements just this model,
and so via this refactor I basically want to "enshrine" that so it
continues to be the case.
2023-02-02 14:17:24 -05:00
..
build Merge pull request #7203 from graham33/feature/cpp20 2023-02-01 15:41:04 +01:00
builtins Fix error message 2023-01-01 12:37:43 +10:00
tests Make per-variant Arbitrary impls too 2023-01-30 10:56:00 -05:00
binary-cache-store.cc Merge pull request #7203 from graham33/feature/cpp20 2023-02-01 15:41:04 +01:00
binary-cache-store.hh getBuildLog: factor out resolving derivations 2022-12-15 15:58:54 -05:00
build-result.hh
builtins.hh
ca-specific-schema.sql
content-address.cc
content-address.hh
crypto.cc
crypto.hh
daemon.cc Move trustedUsers and allowedUsers to separate config struct 2023-02-02 14:17:24 -05:00
daemon.hh
derivations.cc Split OutputsSpec and ExtendedOutputsSpec, use the former more 2023-01-11 18:57:18 -05:00
derivations.hh Better-scope Store forward declarations 2023-01-23 07:05:50 -05:00
derived-path.cc Split OutputsSpec and ExtendedOutputsSpec, use the former more 2023-01-11 18:57:18 -05:00
derived-path.hh More property tests 2023-01-29 17:09:59 -05:00
dummy-store.cc
export-import.cc
filetransfer.cc Move isUri() and resolveUri() out of filetransfer.cc 2022-12-12 14:05:35 +01:00
filetransfer.hh Move isUri() and resolveUri() out of filetransfer.cc 2022-12-12 14:05:35 +01:00
fs-accessor.hh
gc-store.hh
gc.cc Fix deadlock between auto-GC and addTempRoot() 2023-01-03 15:20:21 +01:00
globals.cc Merge pull request #7203 from graham33/feature/cpp20 2023-02-01 15:41:04 +01:00
globals.hh Move trustedUsers and allowedUsers to separate config struct 2023-02-02 14:17:24 -05:00
http-binary-cache-store.cc
legacy-ssh-store.cc Delete dead code 2023-01-30 11:29:01 -05:00
local-binary-cache-store.cc
local-fs-store.cc getBuildLog: factor out resolving derivations 2022-12-15 15:58:54 -05:00
local-fs-store.hh getBuildLog: factor out resolving derivations 2022-12-15 15:58:54 -05:00
local-store.cc Move the default profiles to the user’s home 2023-01-17 14:17:28 +01:00
local-store.hh Move the default profiles to the user’s home 2023-01-17 14:17:28 +01:00
local.mk Include macOS sandbox files in the Nix binary 2023-01-04 04:36:07 -08:00
lock.cc On macOS with auto-uid-allocation and sandboxing, use the correct gid 2023-01-05 04:58:55 -08:00
lock.hh On macOS with auto-uid-allocation and sandboxing, use the correct gid 2023-01-05 04:58:55 -08:00
log-store.cc Move the getBuildLog implementation to its own implementation file 2023-01-13 11:05:44 +01:00
log-store.hh Move the getBuildLog implementation to its own implementation file 2023-01-13 11:05:44 +01:00
machines.cc
machines.hh
make-content-addressed.cc
make-content-addressed.hh
misc.cc Try to fix build failure 2023-01-15 15:16:14 -05:00
names.cc
names.hh
nar-accessor.cc
nar-accessor.hh
nar-info-disk-cache.cc [PDT] TDE-3114: prevent a race-condition when creating the S3 cache 2022-12-21 04:50:40 -05:00
nar-info-disk-cache.hh
nar-info.cc
nar-info.hh
nix-store.pc.in
optimise-store.cc
outputs-spec.cc Test store paths, with property tests 2023-01-23 07:05:50 -05:00
outputs-spec.hh Assert on construction that OutputsSpec::Names is non-empty 2023-01-12 20:52:29 -05:00
parsed-derivations.cc Merge pull request #3600 from NixOS/auto-uid-allocation 2022-11-29 14:01:42 +01:00
parsed-derivations.hh
path-info.cc Move ValidPathInfo defintions to path-info.cc 2023-01-13 15:39:19 -05:00
path-info.hh Delete dead code 2023-01-30 11:29:01 -05:00
path-regex.hh Test store paths, with property tests 2023-01-23 07:05:50 -05:00
path-with-outputs.cc Merge pull request #6815 from obsidiansystems/better-wanted-outputs 2023-01-13 16:03:12 +01:00
path-with-outputs.hh Improve OutputsSpec slightly 2023-01-11 18:54:50 -05:00
path.cc Test store paths, with property tests 2023-01-23 07:05:50 -05:00
path.hh Separate path.hh from content-address.hh 2023-01-30 10:14:03 -05:00
pathlocks.cc
pathlocks.hh
profiles.cc Keep the default profile the same 2023-01-17 14:17:28 +01:00
profiles.hh Move the default profiles to the user’s home 2023-01-17 14:17:28 +01:00
realisation.cc
realisation.hh Separate path.hh from content-address.hh 2023-01-30 10:14:03 -05:00
references.cc
references.hh
remote-fs-accessor.cc
remote-fs-accessor.hh
remote-store.cc Don't send plugin-files to the daemon. 2023-02-01 20:05:56 -05:00
remote-store.hh
repair-flag.hh
s3-binary-cache-store.cc
s3-binary-cache-store.hh
s3.hh
schema.sql
serve-protocol.hh
sqlite.cc src/libstore: Print the reason opening the DB failed 2022-12-23 02:55:51 +02:00
sqlite.hh Improve sqlite error messages 2022-12-17 14:51:37 +01:00
ssh-store.cc getBuildLog: factor out resolving derivations 2022-12-15 15:58:54 -05:00
ssh.cc
ssh.hh
store-api.cc Remove an unused capture 2023-02-01 20:27:35 +01:00
store-api.hh Separate path.hh from content-address.hh 2023-01-30 10:14:03 -05:00
store-cast.hh
uds-remote-store.cc
uds-remote-store.hh
worker-protocol.hh