Expand description
How one supervision run reaches the server it runs under.
§A run is handed a credential of its own, and nothing else
Every run the port starts authenticates to the server’s API with a
credential minted for that run alone, bound to the agent class, the session
the run is in and the print the turn is about. The core mints it at the turn
boundary and revokes it when the turn returns; the port asks for it through
TurnAccess::issue immediately before each run, naming the session that
run is in — which is the port’s own to know, because a harness that refuses
to continue a session moves the turn into the next one.
The run is handed it through its environment alone, as SERVER_ENV and
CREDENTIAL_ENV: no file is written holding it, and the context command a
turn is given names no configuration file, so the command-line program the
agent runs reads no file either.
Structs§
- Turn
Pass - What one run is handed to reach the server with: where the server is, and the credential minted for that run.
- Turn
Session - The session one run is in, as a turn credential is bound to it: never blank, because the session is what a turn’s requests are held to claiming, and a run in no session is one no request could claim to be.
Constants§
- CREDENTIAL_
ENV - The variable a run is handed its own credential in.
- SERVER_
ENV - The variable a run is told where the server is in.
Traits§
- Turn
Access - Issues the runs of one supervision turn their credentials.