Protect against DOS'ing _local #499

Open
yaronyg opened this Issue Jan 27, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@yaronyg
Member

yaronyg commented Jan 27, 2016

A bad but authorized peer could try to create lots and lots of data inside of _local. This will be tracked by the quota manager but I'm not even sure at this point if we have a good way of figuring out what is in _local since it doesn't officially support an enumeration API. We would need to introduce one to PouchDB and then we would need to also associated with each _local entry what authenticated identity created the entry. That way we could clear out entries belonging to peers we no longer want to support. We can also detect peers who have an excessive number of entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment