Skip to main content

Crate kasl_server

Crate kasl_server 

Source
Expand description

kasl-server as a library.

The binary is a thin wrapper: configuration, a pool, migrations, then app::router. Everything else lives here so integration tests can drive the real router and the real provisioning path instead of a copy that drifts from what ships.

Modules§

admin
Managing people and the agents that report for them.
app
audit
The audit log: who did what, to whom, and when.
auth
Agent authentication: who is allowed to upload, and on whose behalf.
backup
kasl-server backup and restore: the installation’s data as one file.
config
department
Departments: the boundary a manager’s authority is measured in.
error
One error shape for the whole API.
import
Importing an agent’s local history.
ingest
The upload endpoints: POST /api/v1/days and /days/batch.
login
The login endpoints and the extractor that guards everything behind them.
me
What a person can read about themselves: GET /api/v1/me/days.
model
The domain the server stores: the shapes behind migrations/.
privacy
The privacy manifest: what this installation stores about a person, and the setting that decides it.
provision
Getting the first agents onto a server that has no admin UI yet.
session
Passwords and browser sessions.
team
What a manager may read about other people: GET /api/v1/team/days and GET /api/v1/users/{id}/days.
web
Serving the web UI.

Functions§

migrator
The embedded migrations, applied on startup and by the tests.