Expand description
Getting the first agents onto a server that has no admin UI yet.
Until accounts and token issuing arrive with the people milestone, the operator declares agents in the environment:
KASL_AGENTS=alice@example.com:s3cr3t-token,bob@example.com:another-tokenOn startup each entry becomes a user and an agent holding that token’s hash. Deliberately not a public enrollment endpoint: a server whose only way in is a secret the operator already knows cannot be joined by anyone who does not.
This is a bootstrap, and it says so - when the admin UI issues tokens, the variable stops being the way in and the ingest contract does not change.
Structs§
- Agent
Seed - One
email:tokenpair from the environment.
Functions§
- apply_
seeds - Creates or updates the declared users and agents.
- ensure_
admin - Creates the first administrator, or resets an existing one’s password.
- parse_
admin - Parses
KASL_ADMIN, which isemail:password. - parse_
seeds - Parses
KASL_AGENTS. An empty or absent value yields nothing, which is the normal state of a server whose agents are already in the database.