Expand description
The environment variables a didbot command reads a credential from.
The dispatcher removes every one of these before handing off to a verb,
so nothing reached through didbot <verb> inherits a credential the
caller’s shell happened to hold. A verb authenticates for itself.
Constants§
- ACCOUNT_
TOKEN - An agent account’s own token, for a host with no daemon.
- ACCOUNT_
TOKEN_ FILE - A file holding
ACCOUNT_TOKEN’s value. - CREDENTIALS
- Every variable the dispatcher scrubs.
- PDS
- The server’s origin, such as
https://pds.example, for a command that names its server through the environment rather than--server. Not a credential, so the dispatcher passes it through. - STATE
- The directory a host keeps its keys and account tokens in. A host
that leaves it unset gets a default under
$XDG_STATE_HOME.
Functions§
- server_
origin - The origin a server is reached at, from either spelling a person
uses: a URL as given, and
https://before a hostname. Every server this project runs terminates TLS, on a developer’s machine as much as anywhere else, so there is one scheme.--serverandPDSread the same way everywhere.