Thanks for your kind suggestions.
Sent from my Windows Phone
________________________________
From: Guan Wang
Sent: 3/11/2013 15:48
To: 'Andrea Aime'
Cc: Ivan Santiago; geoserver-users@lists.sourceforge.net; 'Simone Giannecchini'
Subject: RE: [Geoserver-users] Enabling only WMS on selected layers
Hi,
Andrea, could you please elaborate a bit on “it requires a way to express a security rule that involves at the same time layer and service”?
Ivan, another option you may have is to take advantage of whatever your proxy servers (if you use any), such as apache, nginx could offer and see if you could disable wfs on a layer by its url pattern, etc.
Guan
________________________________
From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Monday, March 11, 2013 3:31 PM
To: gwang@anonymised.com
Cc: Ivan Santiago; geoserver-users@lists.sourceforge.net; Simone Giannecchini
Subject: Re: [Geoserver-users] Enabling only WMS on selected layers
On Mon, Mar 11, 2013 at 8:23 PM, Guan Wang <gwang@anonymised.com<mailto:gwang@anonymised.com.609…>> wrote:
Or, you can set up user-based authentication on per layer basis for WMS and WFS. Say, you could publish layer A as WMS and then set a password for layer A for WFS. By doing so, you disable the access of WFS on layer A to all anonymous users.
That unfortunately it's not possible using the build-in security subsystem of GeoServer, it requires a way to express a security rule that involves at the same time layer and service.
There are two security plugins that can do that, one is publicly available, GeoShield, but it hasn't reached the 1.0 release level and I haven't seen any news in a long while (https://sites.google.com/site/geoshieldproject/home/news). The other is called GeoFence (formerly GeoRepository) and has been offered so far
as a bonus in GeoServer commercial support contracts (http://geo-solutions.blogspot.it/2011/05/preview-georepository-advanced.html)
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------