[Geoserver-devel] Geoserver user authorization idea

Hi,
My question is regarding user level authorization.
What we would like to be able to do is:

  1. create a user base with their allowed polygon and filters. When the same user logs in for and fires the WMS or WFS query he only gets the data filtered by the assigned filter.

  2. We would also like to be able to trigger some user related activity; i.e when a user asks for a big data related query we would like to be able to prepare the data in database and provide the prepared data in the layer(in WMS or WFS)

Is a module like that currently exists? Or is it being planned in the future?

We are using geoserver and have currently modified the code base to achieve what I have asked in the question. But with each changing version it gets trickier to migrate our changes to the newer version.
The way we have currently implemented the above two requirements is:
1 implementation ) When a user asks for a WMS/WFS layer; we get the corresponding filter and add that to the layer’s existing filter.
2 implementation) When a user asks for a WMS/WFS layer for which the data is not present; we prepare the data and send the key’s via viewparams.

Is it the best way to approach this problem?

Thanks
…Manas