Fixed: CSRF token required on first administrator creation
Root cause: the v0.13 global mutating-request middleware attempted to validate an authenticated administrator's CSRF token when a browser retained an old wg_session cookie. The first-admin /api/setup/bootstrap is pre-authentication, and users have no session-bound CSRF token at that point. v0.14 correctly exempts only this single-use-token endpoint from session CSRF; the endpoint still verifies the high-entropy Docker-host setup token, requires an empty administrator table, blocks cross-site Fetch Metadata and checks the request origin against the configured public URL. Normal authenticated mutations still require CSRF.
No database deletion, new trial, administrator reset or volume destruction is required. To verify: open a private browser session or existing session; run bash ./wg.sh setup-link preproduction; submit the setup link; verify login and wizard. A regression test specifically supplies a stale wg_session cookie.
Temporary v0.13 workaround: On a fresh installation, run bash ./wg.sh admin preproduction at the local Docker host to create the administrator interactively, then sign into the GUI. Alternatively clear only the site cookie or use a private window. Upgrade to v0.14 for the permanent fix; never disable CSRF globally.
Safe migration from v0.13
- Make a verified encrypted database backup; separately secure
/data/secrets/app,/data/tls, host network config and database recovery credentials. - Extract v0.14 into a NEW directory. Do not overwrite the old release or destroy Docker volumes.
- From v0.14 run
bash tools/upgrade_from_previous.sh /absolute/path/to/wesergate-nac-v0.13.0 preproductionat a local operator terminal. - Check
bash ./wg.sh status preproduction,bash ./wg.sh smoke preproduction, login, setup wizard, licensing ID, read-only switch discovery, audit verification and restored backup exercise. - The v0.14 bundled license verification key is rotated. A customer with a currently active v0.13 paid JSON license MUST have its old public verification key imported explicitly (
bash ./wg.sh license-trust-add preproduction /secure/v013-public.pem) before commercial activation is deemed restored. Obtain that public key from the trusted old software release and verify its fingerprint out of band. Do not import private keys. Consider the trust implications of the legacy evaluation key; revoke it after those grants expire. - The new offline vendor issuer signs schema-v3 licenses using the new evaluation key; replace that evaluation key with an operator-generated offline production key before commercial distribution and include its matching public verifier in your final build.
Capacity, backups and acceptance
bash ./wg.sh smoke preproductionprobes live Docker management and portal isolation after the operator has installed/runs the appliance. It cannot run if Docker is absent.bash ./wg.sh pg-benchmark preproductionruns a bounded synthetic PostgreSQL temporary-table baseline for 1,000 endpoints and 100,000 evidence observations. It is not an actual endpoint/switch load test or a latency SLA.python tools/hardware_acceptance.py --init pilot-checklist.jsoncreates an evidence checklist;--checkrejects unsubstantiated PASS values. No switch commands are sent automatically.python -m wesergate.cli verify-backup --file /data/backups/backup.wgbkauthenticates the encrypted backup in bounded memory.python -m wesergate.cli restore-drill --file /data/backups/backup.wgbk --output /data/backups/isolated-restore.dumpdecrypts into a new isolated file and validates its SQLite integrity or PostgreSQL custom archive table of contents. It does not overwrite the live database, and PostgreSQL must still be restored into a separate DB for a real drill. The decrypted file is sensitive plaintext, mode 0600; securely remove it after the test.
Release acceptance not yet completed
- Docker Engine and Caddy/PostgreSQL appliance boot: requires customer Linux/WSL host.
- Full PostgreSQL restore with real customer data: requires isolated PostgreSQL instance and protected keys.
- 1,000-device sustained profiling workload with representative hardware and events: requires controlled performance infrastructure.
- Actual EAP-TLS/PEAP/MAB with RADIUS, VLAN, CoA, AD, switch firmware: requires physical switches and endpoints; built-in RADIUS is still reject-all preflight.
- Independent penetration testing and dependency SBOM/CVE review: must be completed by an independent qualified security assessor.
- B2B EULA, support SLA, DPA decision and CRA applicability: counsel approval and company-specific details required; templates remain DRAFT.
This is pre-production software until those gates are satisfied. The tool never claims that a successful API result proves a switch VLAN changed.
en/docs/getting-started/v0-14-bootstrap-fix.mdRead documentation Not a certified production NAC. Physical switch/RADIUS enforcement and 1,000-device traffic remain unverified.

