service library

The web request driver as a service of its own, which only the airlock's user may call. It runs as its own user, so a sign-in's secret is readable by this process and no other: not the airlock, not another driver.

A caller connects to the Unix socket, writes one Request in is_effects' JSON (encodeRequest) and closes its side; the service answers one line, the Outcome<WebResponse> (encodeOutcome), and closes. WebRequestDriverSocket is that caller.

Who is calling is read from the socket as the kernel reports it, never from the request.

Classes

WebRequestDriverService
WebRequestDriverSocket
CarriesOutWebRequests in another process: passes each request to the service at socket. Holds no secret.