GeoServer Admin Guide
This guide provides information for SDL Administrators on managing GeoServer authentication, user roles, and system configuration.
User Administration
Making a User a GeoServer Administrator
| This is only applicable if you already have an admin account in Keycloak. Otherwise ask an SDL admin to make you a GeoServer administrator. |
-
Log in to Keycloak with existing admin credentials
-
Create a new user/update an existing user
-
Select the
Role Mappingstab -
Add the
GEOSERVER_ADMINrole
Authentication Configuration
OIDC Configuration
UI Location
-
Navigate to
Security > Authentication -
Look for
oidcauthentication filter
| For the OIDC filter to work, the following environment variable had to be set: |
- name: DISABLE_SECURITY_FILTER
value: "true"
Setting this variable will disable the antiClickJackingOption security filter from the Tomcat configuration.
Important configuration files are located at:
-
Web config:
/build_data/web.xml -
Auth filter config:
/opt/geoserver/data_dir/security/config.xml -
OIDC config:
/opt/geoserver/data_dir/security/filter/oidc/config.xml -
Keycloak config:
/opt/geoserver/data_dir/security/role/keycloak_service/config.xml
Troubleshooting
Layer Classification Misconfiguration
Layer classification misconfigation occurs when a user saves an invalid classfication string as a layer’s classication keyword, or when a user sets multiple classifications on a layer. If a user misconfgures a layer’s classification, the SDL user will need to refer to a user’s support ticket for the intended layer classification and correct their issue via the following steps:
-
In the
Layersview, identify the misconfigured error — the misconfigured layer’s name should be in the ticket -
Enter the layer’s configuration page and navigate to the
Keywordssection and delete all classification keywords present on the layer -
Create the correct classification:
-
Type the layer classification into the
New Keywordtext box -
In the dropdown, select "English"
-
Type "Classification" into the
Vocabularytext box
-
-
Click
Add Keyword -
Click
Saveat the bottom of the page.