-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Configuration to restrict the hosts and ports accessible by the http proxy servlet #7326
Conversation
@josegar74 core-geonetwork/web/src/main/webResources/WEB-INF/config-spring-geonetwork.xml Lines 257 to 264 in 6f2819a
It would be nice to only have to apply the proxy configuration in one location. |
Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
Not really @ianwallen. It is 2 different things. Here we want to limit proxy access to local resources for security reason. The mapservice config is about accessing remote resources with custom auth.
Sure we can work on that in another PR. I propose to merge this one as it is for next release. |
…ible by the http proxy servlet (#7326) * Configuration to restrict the hosts and ports accessible by the http proxy servlet --------- Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
Follow up of #7326 (Configuration to restrict the hosts and ports accessible by the http proxy servlet)
Follow up of #7326 Co-authored-by: Jose García <josegar74@gmail.com>
Follow up of geonetwork#7326 (Configuration to restrict the hosts and ports accessible by the http proxy servlet)
This change request adds configuration to restrict the hosts and ports accessible by the http proxy servlet, independently of the security mode configured.
proxy.excludeHosts
: Regular expression to match a set of host names / IP's that should not be allowed to access by the http proxy, for example, the ones related to localhost.By default, has been changed to only allow the proxy to access ports 80 and 443, additional ports can be configured in
proxy.allowPorts
These properties can be configured using multiple methods, not only as init parameter
in
web.xml
servlet's config, but also as environment variable, system property orconfig.properties
entry.