mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-29 16:15:51 +00:00
WIN-1978's tightening of the `g/<groupname>` owner branch only verified that the group exists in the target workspace. The default `all` group is provisioned in every workspace, so any forged `owner=g/all` token paired with an arbitrary `workspace_id` still passed the existence check and authenticated as a group user there — including for an email that was not a member of that workspace. Additionally require the token holder's email to be a non-disabled member of the target workspace, mirroring the spirit of the `u/` branch's `usr` lookup. Adds an integration regression covering both the forged non-member case and the legitimate member case. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>