OAuth (RFC 7635): `user-quota` is not applied to token-authenticated allocations
Author: SIPify-JHOCreated Sep 30, 2026Updated Sep 30, 2026
- RFC 8656 §5: "it is RECOMMENDED that the server impose limits on both the number of allocations active at one time for a given username and on the amount of bandwidth those allocations can use".
check_new_allocation_quota()uses an empty username for OAuth sessions (src/apps/relay/userdb.c:682), so the per-user branch is skipped and onlytotal-quotaapplies.- Observed: three allocations accepted with
user-quota=1using the same token. - Suggested fix: count OAuth allocations per
kid(or per a user identity carried by the token, if any), so thatuser-quotaapplies.
Version: coturn 4.18.0 (tag, commit 23c6c1d3). Code references point to that tag; the code involved is unchanged on master (dd644d0a).
Source: coturn/coturn