Skip to content

Socrate v1.14.2

Choose a tag to compare

@github-actions github-actions released this 11 Oct 12:19
· 287 commits to main since this release
d586814

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.sh expects, 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, --apply to change): installs
    PostgreSQL 16 (PGDG on 22.04) and Caddy; creates the socrate, socrate-admin-bff and
    socrate-mon-bff users, the directories, the socrate role 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's done: OK ... migrations=<n>, with a daily
    cron) and the Caddy sites in the form socrate-caddy-update.sh edits. 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.sh runs 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;
    migrations 0001–0030), .env.example (no JWT_SECRET; token rate limit, _MS windows,
    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.