-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geoserver: protect web interface and ows routes behind magpie/twitcher #348
Changes from 17 commits
fa4d9e5
e55f2bb
d352bbe
71a25ad
25f82ac
8b1df81
9504d38
5439ded
c4f8d68
72a9ab4
22d006c
cea52e6
67b8d46
a096910
9e676f0
f99bda1
1bc0bab
65f4a2a
80c2e8a
ee4087f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
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 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,14 @@ export GEOSERVER_COMMUNITY_EXTENSIONS="geopkg-plugin" | |
# Must use single-quote for delayed eval. | ||
export GEOSERVER_DATA_DIR='${DATA_PERSIST_ROOT}/geoserver' | ||
|
||
# If set, requests to the geoserver endpoint will not be authorized through twitcher/magpie | ||
export GEOSERVER_SKIP_AUTH=False | ||
export GEOSERVER_SKIP_AUTH_PROXY_INCLUDE='$([ x"${GEOSERVER_SKIP_AUTH}" = x"True" ] && echo "return 200;")' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mishaschwartz Thanks for adding Can you eventually add a similar switch for THREDDS. Currently we are applying a custom hack on our fork of this repo for production to disable Twitcher in front of our Thredds. Performance increased between 3 and 4x. @fmigneault is there a DB upgrade? If no upgrade I won't need to deploy this PR to test and can approuve straight. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No DB upgrade in Magpie. The existing |
||
|
||
export DELAYED_EVAL=" | ||
$DELAYED_EVAL | ||
GEOSERVER_DATA_DIR | ||
GEOSERVER_SKIP_AUTH_PROXY_INCLUDE | ||
" | ||
|
||
# add any new variables not already in 'VARS' or 'OPTIONAL_VARS' that must be replaced in templates here | ||
|
@@ -44,4 +49,5 @@ OPTIONAL_VARS=" | |
\$GEOSERVER_VERSION | ||
\$GEOSERVER_TAGGED | ||
\$GEOSERVER_IMAGE | ||
\$GEOSERVER_SKIP_AUTH_PROXY_INCLUDE | ||
" |
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 |
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, the actual Magpie in this PR is 3.36 and not 3.35 !