-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0a6156
commit 71eb8fa
Showing
13 changed files
with
149 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
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 |
---|---|---|
|
@@ -3,19 +3,16 @@ LABEL maintainer="Tyler Battle <[email protected]>" | |
|
||
# COPY m2 /root/.m2 | ||
COPY geoserver-geonode-ext /geoserver-geonode-ext | ||
WORKDIR /geoserver-geonode-ext | ||
WORKDIR /geoserver-geonode-ext/geoserver | ||
RUN mvn dependency:go-offline | ||
RUN mvn install -P boundless -DskipTests -Dmaven.gitcommitid.skip=true | ||
RUN mvn install -DskipTests -Dmaven.gitcommitid.skip=true | ||
|
||
COPY ms-gs-plugins /ms-gs-plugins | ||
WORKDIR /ms-gs-plugins | ||
RUN mvn dependency:go-offline | ||
RUN set -ex \ | ||
&& mvn install -DskipTests -Dmaven.gitcommitid.skip=true \ | ||
&& cp target/*.jar /geoserver-geonode-ext/target/geoserver/WEB-INF/lib/ | ||
|
||
# Remove any geofence configuration | ||
RUN rm -rf target/geoserver/data/security/auth/geofence | ||
&& cp target/*.jar /geoserver-geonode-ext/geoserver/web-app/target/geoserver/WEB-INF/lib/ | ||
|
||
|
||
FROM tomcat:9-jre8 AS runner | ||
|
@@ -53,7 +50,7 @@ RUN set -ex \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install GeoServer WAR | ||
COPY --from=builder /geoserver-geonode-ext/target/geoserver $WEBAPPS_DIR/geoserver | ||
COPY --from=builder /geoserver-geonode-ext/geoserver/web-app/target/geoserver $WEBAPPS_DIR/geoserver | ||
|
||
RUN mkdir /tmp/mapstory && mkdir /tmp/mapstory/geoserver | ||
|
||
|
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
Submodule geoserver-geonode-ext
updated
692 files
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### GeoFence Module configuration file | ||
### | ||
### GeoServer will read this file at boot time. | ||
### This file may be automatically regenerated by GeoServer, so any changes beside the property values may be lost. | ||
|
||
### GeoFence main configuration | ||
|
||
instanceName=default-gs | ||
servicesUrl=internal:/ | ||
allowRemoteAndInlineLayers=true | ||
allowDynamicStyles=true | ||
grantWriteToWorkspacesToAuthenticatedUsers=true | ||
useRolesToFilter=false | ||
acceptedRoles= | ||
|
||
|
||
### Cache configuration | ||
|
||
cacheSize=500000 | ||
cacheRefresh=6000000 | ||
cacheExpire=6000000 | ||
|
||
gwc.context.suffix=gwc | ||
org.geoserver.rest.DefaultUserGroupServiceName=geonode REST role service |
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,2 @@ | ||
gwc.context.suffix=gwc | ||
org.geoserver.rest.DefaultUserGroupServiceName=geonode REST role service |
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 @@ | ||
<geofence> | ||
<id>-6c153d14:158ced62d5d:-7ff5</id> | ||
<name>geofence</name> | ||
<className>org.geoserver.geoserver.authentication.auth.GeoFenceAuthenticationProvider</className> | ||
</geofence> |
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,32 @@ | ||
<geoNodeOauth2Authentication> | ||
<id>-313f4319:15766e137c9:-8000</id> | ||
<name>geonode-oauth2</name> | ||
<className>org.geoserver.security.oauth2.GeoNodeOAuthAuthenticationFilter</className> | ||
<roleSource class="org.geoserver.security.config.PreAuthenticatedUserNameFilterConfig$PreAuthenticatedUserNameRoleSource">RoleService</roleSource> | ||
<userGroupServiceName>default</userGroupServiceName> | ||
<roleServiceName>geonode REST role service</roleServiceName> | ||
<cliendId>{{ env "OAUTH_CLIENT_ID" }}</cliendId> | ||
<clientSecret>{{ env "OAUTH_CLIENT_SECRET" }}</clientSecret> | ||
|
||
<!-- GeoNode accessTokenUri --> | ||
<accessTokenUri>{{ env "PUBLIC_URL" }}/o/token/</accessTokenUri> | ||
|
||
<!-- GeoNode userAuthorizationUri --> | ||
<userAuthorizationUri>{{ env "PUBLIC_URL" }}/o/authorize/</userAuthorizationUri> | ||
|
||
<!-- GeoServer Public URL --> | ||
<redirectUri>{{ env "GEOSERVER_PROXY_URL" }}</redirectUri> | ||
|
||
<!-- GeoNode checkTokenEndpointUrl --> | ||
<checkTokenEndpointUrl>{{ env "PUBLIC_URL" }}/api/o/v4/tokeninfo/</checkTokenEndpointUrl> | ||
|
||
<!-- GeoNode logoutUri --> | ||
<logoutUri>{{ env "PUBLIC_URL" }}/account/logout/</logoutUri> | ||
|
||
<scopes>read,write,groups</scopes> | ||
<enableRedirectAuthenticationEntryPoint>false</enableRedirectAuthenticationEntryPoint> | ||
<forceAccessTokenUriHttps>false</forceAccessTokenUriHttps> | ||
<forceUserAuthorizationUriHttps>false</forceUserAuthorizationUriHttps> | ||
<loginEndpoint>/j_spring_oauth2_geonode_login</loginEndpoint> | ||
<logoutEndpoint>/j_spring_oauth2_geonode_logout</logoutEndpoint> | ||
</geoNodeOauth2Authentication> |
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,15 @@ | ||
<authKeyRESTRoleService> | ||
<id>-50305e8:158ced8e2ff:-7ff5</id> | ||
<name>geonode REST role service</name> | ||
<className>org.geoserver.security.GeoServerRestRoleService</className> | ||
<baseUrl>http://django:8000</baseUrl> | ||
<rolesRESTEndpoint>/api/roles</rolesRESTEndpoint> | ||
<adminRoleRESTEndpoint>/api/adminRole</adminRoleRESTEndpoint> | ||
<usersRESTEndpoint>/api/users</usersRESTEndpoint> | ||
<rolesJSONPath>$.groups</rolesJSONPath> | ||
<adminRoleJSONPath>$.adminRole</adminRoleJSONPath> | ||
<usersJSONPath>$.users[0].groups</usersJSONPath> | ||
<cacheConcurrencyLevel>0</cacheConcurrencyLevel> | ||
<cacheMaximumSize>0</cacheMaximumSize> | ||
<cacheExpirationTime>0</cacheExpirationTime> | ||
</authKeyRESTRoleService> |
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,53 +1,66 @@ | ||
<security> | ||
<roleServiceName>default</roleServiceName> | ||
<authProviderNames> | ||
<string>geonodeAuthProvider</string> | ||
<string>default</string> | ||
<string>geofence</string> | ||
</authProviderNames> | ||
<configPasswordEncrypterName>pbePasswordEncoder</configPasswordEncrypterName> | ||
<encryptingUrlParams>false</encryptingUrlParams> | ||
<filterChain> | ||
<filters name="web" class="org.geoserver.security.HtmlLoginFilterChain" interceptorName="interceptor" exceptionTranslationName="exception" path="/web/**,/gwc/rest/web/**,/" disabled="false" allowSessionCreation="true" ssl="false" matchHTTPMethod="false"> | ||
<filter>geonodeCookieFilter</filter> | ||
<filter>basic</filter> | ||
<filter>geonodeAnonymousFilter</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>rememberme</filter> | ||
<filter>form</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
<filters name="webLogin" class="org.geoserver.security.ConstantFilterChain" path="/j_spring_security_check,/j_spring_security_check/,/login" disabled="false" allowSessionCreation="true" ssl="false" matchHTTPMethod="false"> | ||
<filters name="webLogin" class="org.geoserver.security.ConstantFilterChain" path="/j_spring_security_check,/j_spring_security_check/,/j_spring_oauth2_geonode_login,/j_spring_oauth2_geonode_login/" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>form</filter> | ||
</filters> | ||
<filters name="webLogout" class="org.geoserver.security.LogoutFilterChain" path="/j_spring_security_logout,/j_spring_security_logout/,/logout" disabled="false" allowSessionCreation="true" ssl="false" matchHTTPMethod="false"> | ||
<filters name="webLogout" class="org.geoserver.security.LogoutFilterChain" path="/j_spring_security_logout,/j_spring_security_logout/,/j_spring_oauth2_geonode_logout,/j_spring_oauth2_geonode_logout/" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>formLogout</filter> | ||
</filters> | ||
<filters name="geogig" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="restInterceptor" exceptionTranslationName="exception" path="/geogig**,/geogig/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>geonodeCookieFilter</filter> | ||
<filter>basic</filter> | ||
<filter>geonodeAnonymousFilter</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
<filters name="rest" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="restInterceptor" exceptionTranslationName="exception" path="/rest/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>geonodeCookieFilter</filter> | ||
<filter>basic</filter> | ||
<filter>geonodeAnonymousFilter</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
<filters name="gwc" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="restInterceptor" exceptionTranslationName="exception" path="/gwc/rest/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>geonodeCookieFilter</filter> | ||
<filters name="gwc" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="restInterceptor" exceptionTranslationName="exception" path="/gwc/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>basic</filter> | ||
<filter>geonodeAnonymousFilter</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
<filters name="default" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="interceptor" exceptionTranslationName="exception" path="/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>geonodeCookieFilter</filter> | ||
<filter>basic</filter> | ||
<filter>geonodeAnonymousFilter</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
<filters name="geofence-rest" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="restInterceptor" exceptionTranslationName="exception" path="/geofence/rest/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>basic</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
<filters name="geofence" class="org.geoserver.security.ServiceLoginFilterChain" interceptorName="interceptor" exceptionTranslationName="exception" path="/geofence/**" disabled="false" allowSessionCreation="false" ssl="false" matchHTTPMethod="false"> | ||
<filter>basic</filter> | ||
<filter>geonode-oauth2</filter> | ||
<filter>anonymous</filter> | ||
</filters> | ||
</filterChain> | ||
<rememberMeService> | ||
<className>org.geoserver.security.rememberme.GeoServerTokenBasedRememberMeServices</className> | ||
<key>geoserver</key> | ||
</rememberMeService> | ||
</security> | ||
<bruteForcePrevention> | ||
<enabled>true</enabled> | ||
<minDelaySeconds>1</minDelaySeconds> | ||
<maxDelaySeconds>5</maxDelaySeconds> | ||
<maxBlockedThreads>100</maxBlockedThreads> | ||
<whitelistedMasks> | ||
<string>127.0.0.1</string> | ||
</whitelistedMasks> | ||
</bruteForcePrevention> | ||
</security> |