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:
- 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.
- In the rule editing page, select Packt as the Workspace. Leave * as a Layer. Since we want to protect all layers in this workspace, the Access mode should be Read. Select the PACKT_READER role and move it to the right list by clicking on...