Function |new_plain_access
work/access::|new_plain_access
Usage
|new_plain_access(ip, port, remote_key, self_key)
Parameters
↳ ip: Vec<Ip> (net/ip::Ip)
↳ port: u16
↳ remote_key: Secret<string>
↳ self_key: Secret<string>
Return
↴ Access
Build an Access value for a worker listening without TLS (melodium dist --disable-tls).
Everything is sent readable, authentication keys included, so only loopback addresses are accepted. Secrets cannot be sent by value over such a connection.
ip: list of IP addresses the worker can be reached on, loopback ones only.port: TCP port the worker listens on.remote_key: UUID the worker expects to receive (melodium dist --recv-key-file).self_key: UUID the worker sends back (melodium dist --send-key-file).
The keys are revealed when connecting, where malformed UUIDs make distrib::start fail.