Securing layers

We want to protect the data set contained in the Packt workspace from unauthorized access, while leaving the remaining layers freely available to all users. In this section, we will associate layers and roles:

  1. Under the Security section on the left pane, select Data. The rules list shows the two shipped with the default GeoServer configuration. Click on the Add new rule link:
The *.*.r rule is associated with the * roles. This means that every user, including the anonymous one, can access any layer from any workspace configured on GeoServer. The general form of the rule is then as in this code: workspace.layer.access_mode ...

Get GeoServer Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.