You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a40f1be
Browse filesBrowse the repository at this point in the historyBrowse files
fix(redis): never credit the shared user counter from a buffer delete
An owner id is not proof of who wrote the bytes, so crediting the user counter
on clear let anyone able to name a stream decrement a ceiling they never
charged. That is the one direction that must not be possible: a counter driven
down grants writes rather than denying them.
The clear now drops the owner counter only. The user counter's fixed window
settles it instead — it already tolerates accruing bytes Redis has dropped, and
this is the same over-count bounded by the same window. The scope threading that
existed only to credit it is removed with it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments