[Geoserver-users] Hide the WFS source of a rendered WMS content

We want to serve some sensible data. It's OK to give it openly as a rendered
WMS layer, but we can't affor sending the vector data related to it.
Nevertheless, to cete a WMS content render I need to create a Feature type
that is automatically available.

Is there any way to hide this content??

Thank you very much.
Mariano.
--
View this message in context: http://www.nabble.com/Hide-the-WFS-source-of-a-rendered-WMS-content-tp20975396p20975396.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Mariano,

You should be able to disable wfs all together so that any wfs access results in an exception. From the welcome page go to Config -> WFS -> Contents and check off enabled.

Note that if you use GeoServer 1.7.x this did not work until 1.7.1 just released.

-Justin

marjancek wrote:

We want to serve some sensible data. It's OK to give it openly as a rendered
WMS layer, but we can't affor sending the vector data related to it.
Nevertheless, to cete a WMS content render I need to create a Feature type
that is automatically available.

Is there any way to hide this content??

Thank you very much.
Mariano.

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Well, I do need some WFS layers! :frowning:

Of course, I could have 2 intances of GeoServer, but I was hoping for
something simpler.
Is there any other way to block only a couple of WFS features?

Thanks a lot,
Mariano.

Justin Deoliveira-6 wrote:

Hi Mariano,

You should be able to disable wfs all together so that any wfs access
results in an exception. From the welcome page go to Config -> WFS ->
Contents and check off enabled.

Note that if you use GeoServer 1.7.x this did not work until 1.7.1 just
released.

-Justin

marjancek wrote:

We want to serve some sensible data. It's OK to give it openly as a
rendered
WMS layer, but we can't affor sending the vector data related to it.
Nevertheless, to cete a WMS content render I need to create a Feature
type
that is automatically available.

Is there any way to hide this content??

Thank you very much.
Mariano.

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Hide-the-WFS-source-of-a-rendered-WMS-content-tp20975396p20999811.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

marjancek ha scritto:

Well, I do need some WFS layers! :frowning:

Of course, I could have 2 intances of GeoServer, but I was hoping for
something simpler.
Is there any other way to block only a couple of WFS features?

Nope, none at all. You can either stop a service request completely
using the service level security, or make a dataset read only,
but you cannot combine the two.

Look at the GeoServer security configuration here:
http://geoserver.org/display/GEOSDOC/2.6+Security+subsystem

How would you suggest we add into the picture the configuration
of service level security for a single layer? (syntax wise)

For those two layers, you sure you cannot have the client application
authenticate before accessing them?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea Aime-4 wrote:

How would you suggest we add into the picture the configuration
of service level security for a single layer? (syntax wise)

Ciao, Andrea.

regarding the sintaxis, it could be something like this:

wms.topp.poly_landmarks=*
wfs.topp.poly_landmarks.r=LAND_USER_ROLE
wfs.topp.poly_landmarks.w=LAND_MANAGER_ROLE
topp.poly_places.rw=LAND_MANAGER_ROLE

Where wms is always read_only, and you can set roles for wms(read), wfs read
and wfs write sparatelly, al all together (as in poly_places, where write
would imply wms and wfs read)

But more important than the sintaxis, is the implementation of such thing.

I know I could have the client authenticate, but that's exactly what I'm
trying to avoid.

Grazzie per il tuo messagio.
M.
--
View this message in context: http://www.nabble.com/Hide-the-WFS-source-of-a-rendered-WMS-content-tp20975396p21032205.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

marjancek ha scritto:

Andrea Aime-4 wrote:

How would you suggest we add into the picture the configuration
of service level security for a single layer? (syntax wise)

Ciao, Andrea.

regarding the sintaxis, it could be something like this:

wms.topp.poly_landmarks=*
wfs.topp.poly_landmarks.r=LAND_USER_ROLE
wfs.topp.poly_landmarks.w=LAND_MANAGER_ROLE
topp.poly_places.rw=LAND_MANAGER_ROLE

Where wms is always read_only, and you can set roles for wms(read), wfs read
and wfs write sparatelly, al all together (as in poly_places, where write
would imply wms and wfs read)

But more important than the sintaxis, is the implementation of such thing.

Implementation wise someone would have to modify
DefaultDataAccessManager and SecureTreeNode classes in the GeoServer
"main" module to consider the current service being used, something we
don't have as a straight parameter but it's available as a thread
local calling Dispatcher.REQUEST.get()
If you have enough java programming compentence in your organisation
that should get you started (if you need more details just ask,
either here on on IRC, GeoServer channel).

Otherwise... hmmm... I don't have a mandate to work on this
now, but you can consider contacting companies that can do the
work for you here:
http://geoserver.org/display/GEOS/Commercial+Support

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea Aime-4 wrote:

Implementation wise someone would have to modify
DefaultDataAccessManager and SecureTreeNode classes in the GeoServer
"main" module to consider the current service being used, something we
don't have as a straight parameter but it's available as a thread
local calling Dispatcher.REQUEST.get()
If you have enough java programming compentence in your organisation
that should get you started (if you need more details just ask,
either here on on IRC, GeoServer channel).

I guess we could get our hands dirty with the code, but probably the simples
solution will be to have a service to pass the requests to GeoServer, only
if it's requesting public information. That will give as much more
flexibility if we wish to implement some IP-based premissions, or anything
else.

Thanks Adrea, for all the info.
Mariano.
--
View this message in context: http://www.nabble.com/Hide-the-WFS-source-of-a-rendered-WMS-content-tp20975396p21089937.html
Sent from the GeoServer - User mailing list archive at Nabble.com.