Public Member Functions | |
bool | operator== (const ClientHandshakeInfo &) const =default |
Public Attributes | |
std::optional< std::string > | daemonNixVersion |
std::optional< TrustedFlag > | remoteTrustsUs |
std::optional<std::string> nix::WorkerProto::ClientHandshakeInfo::daemonNixVersion |
The version of the Nix daemon that is processing our requests.
Do note, it may or may not communicating with another daemon, rather than being an "end" LocalStore
or similar.
std::optional<TrustedFlag> nix::WorkerProto::ClientHandshakeInfo::remoteTrustsUs |
Whether the remote side trusts us or not.
3 values: "yes", "no", or std::nullopt
for "unknown".
Note that the "remote side" might not be just the end daemon, but also an intermediary forwarder that can make its own trusting decisions. This would be the intersection of all their trust decisions, since it takes only one link in the chain to start denying operations.