mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
- admit_and_record_guest_jwt commits the guest_activity row before the best-effort audit, on a separate connection. The EE audit writer swallows an audit_partitioned failure but the failing statement still aborts its transaction, so auditing before the commit would roll the activity row back while the arm returned success, admitting a guest uncounted and past the allowance. - The share-link guest marker is now the prefix `guest.` glued to the token (`/a/<path>/guest.<jwt>`, `/public/<ws>/<secret>/guest.<jwt>`). The `.` cannot appear in a custom-path or secret segment, so an external-JWT link whose custom path ends in a `guest` segment (`/a/foo/guest/<jwt>`) is read as before rather than hijacked. Removed the unused SHARE_LINK_SEGMENT constant. - Moved the JWT allowance test to its own binary (app_guest_jwt_allowance.rs): set_plan flips a process-global license key, so a test sharing the binary with the existing allowance test would race under --test-threads. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VF3v6LA9399gNphmZaHYG3