-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Geoserver: protect web interface and ows routes behind magpie/twitcher (
#348) ## Overview Geoserver: protect web interface and ows routes behind magpie/twitcher Updates Magpie version to [3.35.0](https://github.com/Ouranosinc/Magpie/tree/3.35.0) in order to take advantage of updated Geoserver Service. The `geoserverwms` Magpie service is now deprecated. If a deployment is currently using this service, it is highly recommended that the permissions are transferred from the deprecated `geoserverwms` service to the `geoserver` service. The `/geoserver` endpoint is now protected by default. If a deployment currently assumes open access to Geoserver and would like to keep the same permissions after upgrading to this version, please update the permissions for the `geoserver` service in Magpie to allow the `anonymous` group access. A `Magpie` service named `geoserver` with type `wfs` exists already and must be manually deleted before the new `Magpie` service created here can take effect. The `optional-components/all-public-access` component provides full access to the `geoserver` service for the `anonymous` group in Magpie. Please note that this includes some permissions that will allow anonymous users to perform destructive operations. Because of this, please remember that enabling the `optional-components/all-public-access` component is not recommended in a production environment. Introduces the `GEOSERVER_SKIP_AUTH` environment variable. If set to `True`, then requests to the geoserver endpoint will not be authorized through twitcher/magpie at all. This is not recommended at all. However, it will slightly improve performance when accessing geoserver endpoints. ## Changes **Non-breaking changes** In order to provide public access to geoserver by default now, the `all-public-access` optional component must be enabled **Breaking changes** The current `wfs` Magpie service named `geoserver` must be deleted before the change here can take effect. ## Related Issue / Discussion - Resolves #333 ## Additional Information
- Loading branch information
Showing
16 changed files
with
164 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.36.0 2023-10-31T17:20:38Z | ||
1.37.0 2023-11-01T13:09:36Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
config/proxy/conf.extra-service.d/geoserver.conf | ||
config/canarie-api/canarie_api_monitoring.py | ||
config/magpie/providers.cfg | ||
service-config.json | ||
|
||
# Old paths. Keep these so that old config files remain uncommittable after updates. | ||
geoserver_canarie_api_monitoring.py | ||
geoserver-magpie-provider.cfg | ||
config/proxy/canarie_api_monitoring.py | ||
config/magpie/providers.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
providers: | ||
geoserver: | ||
# below URL is only used to fill in the required location in Magpie | ||
# actual auth validation is performed with Twitcher 'verify' endpoint without accessing this proxied URL | ||
url: http://proxy:80 | ||
title: geoserver | ||
type: geoserver | ||
configuration: | ||
wfs: true | ||
wms: true | ||
wps: false | ||
api: true |
16 changes: 0 additions & 16 deletions
16
birdhouse/config/geoserver/config/magpie/providers.cfg.template
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
birdhouse/optional-components/all-public-access/config/geoserver/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version: "3.4" | ||
services: | ||
magpie: | ||
volumes: | ||
- ./optional-components/all-public-access/config/geoserver/permissions.cfg:${MAGPIE_PERMISSIONS_CONFIG_PATH}/all-public-access-geoserver-permissions.cfg:ro |
70 changes: 70 additions & 0 deletions
70
birdhouse/optional-components/all-public-access/config/geoserver/permissions.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
permissions: | ||
- service: geoserver | ||
type: route | ||
permission: read | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: describestoredqueries | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: describelayer | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: dropstoredquery | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: lockfeature | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getmap | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getfeature | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getfeaturewithlock | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getfeatureinfo | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getgmlobject | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getpropertyvalue | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: transaction | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: createstoredquery | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getlegendgraphic | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: getcapabilities | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: describefeaturetype | ||
group: anonymous | ||
action: create | ||
- service: geoserver | ||
permission: liststoredqueries | ||
group: anonymous | ||
action: create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters