Repository navigation
Socrate v1.14.2
Patch release on the v1.x line: documentation and deploy tooling, no server code change. The
release kit gains the one-time VPS preparation script socrate-vps-prep.sh that the installer
expects; the README, the API reference (token exchange, DPoP, conditional discovery values,
loopback admin port), the deploy and env templates, the OP contract and the VPS runbook catch up
with the code; PostgreSQL 16 is the only supported version. No migration, no environment variable,
no change of default, no token-contract change; the binary behaves exactly as v1.14.1.
Added
deploy/release-kit/socrate-vps-prep.sh: the one-time VPS preparation that
socrate-vps-install.shexpects, which was missing from the kit, so a fresh host could not
follow it. On Ubuntu 22.04/24.04, as root (dry run by default,--applyto change): installs
PostgreSQL 16 (PGDG on 22.04) and Caddy; creates thesocrate,socrate-admin-bffand
socrate-mon-bffusers, the directories, thesocraterole and database, and the three env
files (ports 8080/8082/8090/8092, secrets generated on the host and never printed, the console
clients left as the placeholder the installer replaces when it registers them); writes
/usr/local/sbin/socrate-backup.sh(the runbook'sdone: OK ... migrations=<n>, with a daily
cron) and the Caddy sites in the formsocrate-caddy-update.shedits. Idempotent: nothing
that exists is overwritten. ufw only with--firewall, SSH allowed first.socrate-release.sh
ships it next to the installer and the runbook gains a "new VPS only" step;
test-vps-prep.shruns it in CI against a fake root with stub system commands. No server
change, no migration, no environment variable.
Documentation
- Docs brought up to date with the code. README (features: policy decision point, webhooks,
admin confinement modes,prompt, per-client TTL; limitations; backendkit v1.26.1; PostgreSQL 16 only, also in the VPS runbook and test configuration;
migrations0001–0030),.env.example(noJWT_SECRET; token rate limit,_MSwindows,
FROM_NAME, GeoIP,AUTO_MIGRATE), the deploy env template (remaining opt-in modes),
docs/API.md(token exchange, DPoP, conditional discovery values, loopback admin port,
endpoint index), the OP contract and its prompt copy,ALERT-RULES.md(/alerts/history), the
deploy README (migrations, container bind), test strategy and runbook. No code change.