SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
807 stars 171 forks source link

Arbitrary request filtering #180

Closed hannomalie closed 7 years ago

hannomalie commented 7 years ago

Hey guys :)

Using Identity- and AccessManager for security purposes works very well. Now we would like to have (simple) arbitrary filtering for our application. More precisely: We would like to intercept all requests and generate metrics for all usages. Is there a way to use request filters with restheart?

The only workaround we see currently, is to implement the filter logic in our AccessManager. But it wouldn't be the right place for the logic.

Thanks :)

ujibang commented 7 years ago

Hi @hannespernpeintner

I'm not sure I get what you mean by "request filter"...

...however a way to intercept requests (and collect metrics) would be implementing an hook.

hannomalie commented 7 years ago

Ah, seems to be exactly what I wanted. Mea culpa, I overlooked it :( Thanks!