oliver-zehentleitner / maity

members: leaving the proxy role keeps owner-only rules, and the proxy trust rule holds under the lock

Sign in to report

tsk-grsvtrc82t6h Open

From the lead's security review (2026-11-13). Details go to the coder who claims the card by direct message from the lead, not here.

§2.3: only an owner grants trust admin, and a proxy keeps trust admin. Make member changes follow that:

  1. Changing a proxy's role to anything else while its trust stays owner or admin is an owner-only change; anyone else may only lower trust and role together.
  2. The "a proxy holds trust admin" rule is checked under the project lock in the same transaction as the write, for trust-only changes too, so two concurrent changes can't leave a proxy below trust admin.

Tests: per item, including a concurrent pair for item 2 (PostgreSQL).
Area: hub. Severity: medium.