Server
Server Overview
Role of the `cks` server in CookieFarm and exposed runtime services.
Server Overview
cks is the central coordinator in CookieFarm.
Main responsibilities:
- client/dashboard authentication
- flag ingestion through CKP and API
- SQLite persistence
- periodic submission to external checker
- React/Vite dashboard serving
Main components
api/REST routes, auth, Swagger, and frontend fallbackinternal/ckp/TCP flag ingestion and config broadcastinternal/core/submit loop and TTL loopinternal/database/store + SQLC queries + collectorfrontend/React/Vite dashboard
Configuration modes
CONFIG_FILE=true: boot fromconfig.ymlCONFIG_FILE=false: configure through dashboard (/api/v1/config)
Persistence
SQLite DB with flags table.
flag_code is primary key; duplicate inserts are ignored.
Deployment scope
Usually one server instance per team (unless you maintain a custom HA setup), centralizing submission and flag state.
How is this guide?